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
!31
Resolve "Command Submit Interface"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Command Submit Interface"
39-command-submit-interface
into
develop
Overview
0
Commits
4
Pipelines
4
Changes
8
Merged
Ghost User
requested to merge
39-command-submit-interface
into
develop
3 years ago
Overview
0
Commits
4
Pipelines
4
Changes
8
Expand
Closes
#39 (closed)
Edited
3 years ago
by
Ghost User
0
0
Merge request reports
Compare
develop
version 2
81e274ed
3 years ago
version 1
3562675c
3 years ago
develop (base)
and
latest version
latest version
a49c1c0c
4 commits,
3 years ago
version 2
81e274ed
3 commits,
3 years ago
version 1
3562675c
2 commits,
3 years ago
8 files
+
201
−
92
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
include/vkcv/CommandResources.hpp
+
17
−
4
Options
#pragma once
#pragma once
#include
<vulkan/vulkan.hpp>
#include
<vulkan/vulkan.hpp>
#include
<unordered_set>
#include
"QueueManager.hpp"
namespace
vkcv
{
namespace
vkcv
{
struct
CommandResources
{
struct
CommandResources
{
vk
::
CommandPool
commandPool
;
std
::
vector
<
vk
::
CommandPool
>
cmdPoolPerQueueFamily
;
vk
::
CommandBuffer
commandBuffer
;
};
};
CommandResources
createDefaultCommandResources
(
const
vk
::
Device
&
device
,
const
int
graphicFamilyIndex
);
std
::
unordered_set
<
int
>
generateQueueFamilyIndexSet
(
const
QueueManager
&
queueManager
);
void
destroyCommandResources
(
const
vk
::
Device
&
device
,
const
CommandResources
&
resources
);
CommandResources
createCommandResources
(
const
vk
::
Device
&
device
,
const
std
::
unordered_set
<
int
>
&
familyIndexSet
);
void
destroyCommandResources
(
const
vk
::
Device
&
device
,
const
CommandResources
&
resources
);
vk
::
CommandBuffer
allocateCommandBuffer
(
const
vk
::
Device
&
device
,
const
vk
::
CommandPool
cmdPool
);
vk
::
CommandPool
chooseCmdPool
(
const
Queue
&
queue
,
const
CommandResources
&
cmdResources
);
Queue
getQueueForSubmit
(
const
QueueType
type
,
const
QueueManager
&
queueManager
);
void
beginCommandBuffer
(
const
vk
::
CommandBuffer
cmdBuffer
,
const
vk
::
CommandBufferUsageFlags
flags
);
void
submitCommandBufferToQueue
(
const
vk
::
Queue
queue
,
const
vk
::
CommandBuffer
cmdBuffer
,
const
vk
::
Fence
fence
,
const
std
::
vector
<
vk
::
Semaphore
>&
waitSemaphores
,
const
std
::
vector
<
vk
::
Semaphore
>&
signalSemaphores
);
}
}
\ No newline at end of file
Loading