Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Merge requests
!97
Resolve "Dokumentation vervollständigen"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Dokumentation vervollständigen"
96-dokumentation-vervollstandigen
into
develop
Overview
0
Commits
73
Pipelines
36
Changes
1
Merged
Tobias Frisch
requested to merge
96-dokumentation-vervollstandigen
into
develop
3 years ago
Overview
0
Commits
73
Pipelines
36
Changes
1
Expand
Closes
#96 (closed)
Edited
2 years ago
by
Tobias Frisch
0
0
Merge request reports
Viewing commit
f892820c
Prev
Next
Show latest version
1 file
+
45
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f892820c
[
#96
] add docu to queueManager
· f892820c
Sebastian Gaida
authored
3 years ago
include/vkcv/QueueManager.hpp
+
45
−
4
Options
@@ -14,23 +14,64 @@ namespace vkcv {
class
QueueManager
{
public:
/**
* creates a QueueManager with the given queue pairs
* @param device device that holds the queues that are specified in the queue pairs
* @param queuePairsGraphics graphic queue pairs of queueFamily and queueIndex
* @param queuePairsCompute compute queue pairs of queueFamily and queueIndex
* @param queuePairsTransfer transfer queue pairs of queueFamily and queueIndex
* @return a QueueManager with the specified queuePairs
*/
static
QueueManager
create
(
vk
::
Device
device
,
std
::
vector
<
std
::
pair
<
int
,
int
>>
&
queuePairsGraphics
,
std
::
vector
<
std
::
pair
<
int
,
int
>>
&
queuePairsCompute
,
std
::
vector
<
std
::
pair
<
int
,
int
>>
&
queuePairsTransfer
);
/**
* returns the default presentQueue. Recommended to use the presentQueue in the Swapchain
* @return a default presentQueue
*/
[[
nodiscard
]]
const
Queue
&
getPresentQueue
()
const
;
/**
* returns all queues with the graphics flag
* @return vector of graphic queues
*/
[[
nodiscard
]]
const
std
::
vector
<
Queue
>
&
getGraphicsQueues
()
const
;
/**
* returns all queues with the compute flag
* @return vector of compute queues
*/
[[
nodiscard
]]
const
std
::
vector
<
Queue
>
&
getComputeQueues
()
const
;
/**
* returns all queues with the transfer flag
* @return vector of transfer queues
*/
[[
nodiscard
]]
const
std
::
vector
<
Queue
>
&
getTransferQueues
()
const
;
/**
* Given the @p physicalDevice and the @p queuePriorities, the @p queueCreateInfos are computed. First, the requested
* queues are sorted by priority depending on the availability of queues in the queue families of the given
* @p physicalDevice. Then check, if all requested queues are creatable. If so, the @p queueCreateInfos will be computed.
* Furthermore, lists of index pairs (queueFamilyIndex, queueIndex) for later referencing of the separate queues will
* be computed.
* @param[in] physicalDevice The physical device
* @param[in] queuePriorities The queue priorities used for the computation of @p queueCreateInfos
* @param[in] queueFlags The queue flags requesting the queues
* @param[in,out] queueCreateInfos The queue create info structures to be created
* @param[in,out] queuePairsGraphics The list of index pairs (queueFamilyIndex, queueIndex) of queues of type
* vk::QueueFlagBits::eGraphics
* @param[in,out] queuePairsCompute The list of index pairs (queueFamilyIndex, queueIndex) of queues of type
* vk::QueueFlagBits::eCompute
* @param[in,out] queuePairsTransfer The list of index pairs (queueFamilyIndex, queueIndex) of queues of type
* vk::QueueFlagBits::eTransfer
* @throws std::runtime_error If the requested queues from @p queueFlags are not creatable due to insufficient availability.
*/
static
void
queueCreateInfosQueueHandles
(
vk
::
PhysicalDevice
&
physicalDevice
,
const
std
::
vector
<
float
>
&
queuePriorities
,
const
std
::
vector
<
vk
::
QueueFlagBits
>
&
queueFlags
,
Loading