UgCommandBuffer
Single-use and reusable command buffer wrapper
It
Thin wrapper around a Vulkan command buffer handle
struct It {
VkCommandBuffer handle;
};begin
Begin recording commands into the command buffer
U0 begin(UgCommandBuffer.It& cmd);Parameters
cmd— Command buffer to begin
end
End recording commands into the command buffer
U0 end(UgCommandBuffer.It& cmd);Parameters
cmd— Command buffer to end
destroy
Free the command buffer
U0 destroy(UgContext.It& ctx, UgCommandBuffer.It& cmd);Parameters
ctx— Vulkan contextcmd— Command buffer to destroy
create
Allocate a new command buffer from the context's command pool
UgCommandBuffer.It create(UgContext.It& ctx);Parameters
ctx— Vulkan context
Returns — Allocated command buffer