Command Buffers Flashcards

1
Q

Declaration of vkCreateCommandPool:

A

VkResult vkCreateCommadPool(
VkDevice device,
const VkCommandPoolCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkCommandPool* pCommandPool);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Declaration of vkResetCommandPool:

A

VkResult vkResetCommandPool(
VkDevice device,
VkCommandPool commandPool,
VkCommandPoolResetFlags flags);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Declaration of vkDestroyCommandPool:

A

VkResult vkDestroyCommandPool(
VkDevice device,
VkCommandPool commandPool,
const VkAllocationCallbacks* pAllocator);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Definition of VkCommandPoolCreateInfo:

A

typedef struct VkCommandPoolCreateInfo{
VkStructureType sType;
const void* pNext;
VkCommandPoolCreateFlags flags;
uint32_t queueFamilyIndex;
} VkCommandPoolCreateInfo;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Definition of VkCommandPoolCreateFlagBits:

A

typedef enum VkCommandPoolCreateFlagBits{
VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
} VkCommandPoolCreateFlagBits;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Definition of VkCommandPoolResetFlagBits:

A

typedef enum VkCommandPoolResetFlagBits{
VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
} VkCommandPoolResetFlagBits;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Declaration of vkAllocateCommandBuffers:

A

VkResult vkAllocateCommandBuffers(
VkDevice device,
VkCommandBufferAllocateInfo* pAllocateInfo,
VkCommandBuffer* pCommandBuffers);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Definition of VkCommandBufferAllocateInfo:

A

typedef struct VkCommandBufferAllocateInfo{
VkStructureType sType;
const void* pNext;
VkCommandPool commandPool;
VkCommandBufferLevel level;
uint32_t bufferCount;
} VkCommandBufferAllocateInfo;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Definition of VkCommandBufferLevel:

A

typedef enum VkCommandBufferLevel{
VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
} VkCommandBufferLevel;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Declaration of vkResetCommandBuffer:

A

VkResult vkResetCommandBuffer(
VkCommandBuffer commandBuffer,
VkCommandBufferResetFlags flags);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Definition of VkCommandBufferResetFlagBIts:

A

VkCommandBufferResetFlagBIts{
VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
} VkCommandBufferResetFlagBits;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Declaration of vkFreeCommandBuffers:

A

VkResult vkFreeCommandBuffers(
VkDevice device,
VkCommandPool commandPool,
uint32_t commandBufferCount,
VkCommandBuffer* pCommandBuffers);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Declaration of vkBeginCommandBuffer:

A
VkResult vkBeginCommandBuffer(
 VkCommandBuffer commandBuffers,
 const VkCommandBufferBeginInfo\* pBeginInfo);
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Definition of VkCommandBufferBeginInfo:

A

typedef struct VkCommandBufferBeginInfo{
VkStructureType sType;
const void* pNext;
VkCommandBufferUsageFlags flags;
VkRenderPass renderPass;
uint32_t subpass;
VkFramebuffer framebuffer;
VkBool32 occlusionQueryEnable;
VkQueryPipelineStatisticFlags pipelineStatistics;
} VkCommandBufferBeginInfo;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Definition of VkCommandBufferUsageFlagBits:

A

typedef enum VkCommandBufferUsageFlagBits{
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 1,
VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 2,
VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 4,
} VkCommandBufferUsageFlagBits;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly