Class that represents a command buffer.
More...
#include <CommandBuffer.hpp>
|
| | CommandBuffer (const LogicalDevice *logicalDevice, bool begin=true, VkQueueFlagBits queueType=VK_QUEUE_GRAPHICS_BIT, VkCommandBufferLevel bufferLevel=VK_COMMAND_BUFFER_LEVEL_PRIMARY) |
| |
| void | Begin (VkCommandBufferUsageFlags usage=VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT) |
| |
| void | End () |
| |
| void | SubmitIdle () |
| |
| void | Submit (const VkSemaphore &waitSemaphore=VK_NULL_HANDLE, const VkSemaphore &signalSemaphore=VK_NULL_HANDLE, VkFence fence=VK_NULL_HANDLE) |
| |
|
| operator const VkCommandBuffer & () const |
| |
|
const VkCommandBuffer & | GetCommandBuffer () const |
| |
|
bool | IsRunning () const |
| |
Class that represents a command buffer.
◆ CommandBuffer()
| PixelBullet::CommandBuffer::CommandBuffer |
( |
const LogicalDevice * | logicalDevice, |
|
|
bool | begin = true, |
|
|
VkQueueFlagBits | queueType = VK_QUEUE_GRAPHICS_BIT, |
|
|
VkCommandBufferLevel | bufferLevel = VK_COMMAND_BUFFER_LEVEL_PRIMARY ) |
|
explicit |
Creates a new command buffer.
- Parameters
-
| begin | If recording will start right away, if true CommandBuffer#Begin is called. |
| queueType | The queue to run this command buffer on. |
| bufferLevel | The buffer level. |
◆ Begin()
| void PixelBullet::CommandBuffer::Begin |
( |
VkCommandBufferUsageFlags | usage = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT | ) |
|
Begins the recording state for this command buffer.
- Parameters
-
| usage | How this command buffer will be used. |
◆ End()
| void PixelBullet::CommandBuffer::End |
( |
| ) |
|
Ends the recording state for this command buffer.
◆ Submit()
| void PixelBullet::CommandBuffer::Submit |
( |
const VkSemaphore & | waitSemaphore = VK_NULL_HANDLE, |
|
|
const VkSemaphore & | signalSemaphore = VK_NULL_HANDLE, |
|
|
VkFence | fence = VK_NULL_HANDLE ) |
Submits the command buffer.
- Parameters
-
| waitSemaphore | A optional semaphore that will waited upon before the command buffer is executed. |
| signalSemaphore | A optional that is signaled once the command buffer has been executed. |
| fence | A optional fence that is signaled once the command buffer has completed. |
◆ SubmitIdle()
| void PixelBullet::CommandBuffer::SubmitIdle |
( |
| ) |
|
Submits the command buffer to the queue and will hold the current thread idle until it has finished.
The documentation for this class was generated from the following files:
- engine/src/PixelBullet/Graphics/Commands/CommandBuffer.hpp
- engine/src/PixelBullet/Graphics/Commands/CommandBuffer.cpp