Command Buffers Flashcards
Declaration of vkCreateCommandPool:
VkResult vkCreateCommadPool(
VkDevice device,
const VkCommandPoolCreateInfo* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkCommandPool* pCommandPool);
Declaration of vkResetCommandPool:
VkResult vkResetCommandPool(
VkDevice device,
VkCommandPool commandPool,
VkCommandPoolResetFlags flags);
Declaration of vkDestroyCommandPool:
VkResult vkDestroyCommandPool(
VkDevice device,
VkCommandPool commandPool,
const VkAllocationCallbacks* pAllocator);
Definition of VkCommandPoolCreateInfo:
typedef struct VkCommandPoolCreateInfo{
VkStructureType sType;
const void* pNext;
VkCommandPoolCreateFlags flags;
uint32_t queueFamilyIndex;
} VkCommandPoolCreateInfo;
Definition of VkCommandPoolCreateFlagBits:
typedef enum VkCommandPoolCreateFlagBits{
VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
} VkCommandPoolCreateFlagBits;
Definition of VkCommandPoolResetFlagBits:
typedef enum VkCommandPoolResetFlagBits{
VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
} VkCommandPoolResetFlagBits;
Declaration of vkAllocateCommandBuffers:
VkResult vkAllocateCommandBuffers(
VkDevice device,
VkCommandBufferAllocateInfo* pAllocateInfo,
VkCommandBuffer* pCommandBuffers);
Definition of VkCommandBufferAllocateInfo:
typedef struct VkCommandBufferAllocateInfo{
VkStructureType sType;
const void* pNext;
VkCommandPool commandPool;
VkCommandBufferLevel level;
uint32_t bufferCount;
} VkCommandBufferAllocateInfo;
Definition of VkCommandBufferLevel:
typedef enum VkCommandBufferLevel{
VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
} VkCommandBufferLevel;
Declaration of vkResetCommandBuffer:
VkResult vkResetCommandBuffer(
VkCommandBuffer commandBuffer,
VkCommandBufferResetFlags flags);
Definition of VkCommandBufferResetFlagBIts:
VkCommandBufferResetFlagBIts{
VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
} VkCommandBufferResetFlagBits;
Declaration of vkFreeCommandBuffers:
VkResult vkFreeCommandBuffers(
VkDevice device,
VkCommandPool commandPool,
uint32_t commandBufferCount,
VkCommandBuffer* pCommandBuffers);
Declaration of vkBeginCommandBuffer:
VkResult vkBeginCommandBuffer( VkCommandBuffer commandBuffers, const VkCommandBufferBeginInfo\* pBeginInfo);
Definition of VkCommandBufferBeginInfo:
typedef struct VkCommandBufferBeginInfo{
VkStructureType sType;
const void* pNext;
VkCommandBufferUsageFlags flags;
VkRenderPass renderPass;
uint32_t subpass;
VkFramebuffer framebuffer;
VkBool32 occlusionQueryEnable;
VkQueryPipelineStatisticFlags pipelineStatistics;
} VkCommandBufferBeginInfo;
Definition of VkCommandBufferUsageFlagBits:
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;