![]() |
Fling Engine
0.00.1
Fling Engine is a game engine written in Vulkan
|
Encapsulates functionality of a Vulkan Command buffer. More...
#include <CommandBuffer.h>
Public Types | |
| enum | ResetMode { ResetMode::ResetPool, ResetMode::ResetIndividually, ResetMode::AlwaysAllocate } |
| enum | State { State::Invalid, State::Initial, State::Recording, State::Executable } |
Public Member Functions | |
| CommandBuffer (const LogicalDevice *t_Device, VkCommandPool t_CmdPool) | |
| ~CommandBuffer () | |
| VkCommandBuffer | GetHandle () const |
| const LogicalDevice * | GetDevice () const |
| const VkCommandPool & | GetPoolHandle () const |
| void | Begin (VkCommandBufferUsageFlagBits t_Usage=VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT) |
| Begin recording for this command buffer. More... | |
| void | BeginRenderPass (FrameBuffer &t_frameBuf, const std::vector< VkClearValue > &t_ClearVales) |
| void | NextSubpass () |
| void | BindPipeline (VkPipelineBindPoint t_BindPoint, VkPipeline t_Pipeline) |
| void | SetViewport (UINT32 first_viewport, const std::vector< VkViewport > &viewports) |
| void | SetScissor (UINT32 first_scissor, const std::vector< VkRect2D > &scissors) |
| void | EndRenderPass () |
| void | End () |
| Stop recording commands to the command buffer. More... | |
| bool | IsRecording () const |
Private Attributes | |
| const LogicalDevice * | m_Device |
| const VkCommandPool | m_Pool |
| VkCommandBuffer | m_Handle = VK_NULL_HANDLE |
| State | m_State = State::Initial |
Encapsulates functionality of a Vulkan Command buffer.
|
strong |
|
strong |
| Fling::CommandBuffer::CommandBuffer | ( | const LogicalDevice * | t_Device, |
| VkCommandPool | t_CmdPool | ||
| ) |
| Fling::CommandBuffer::~CommandBuffer | ( | ) |
| void Fling::CommandBuffer::Begin | ( | VkCommandBufferUsageFlagBits | t_Usage = VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT | ) |
Begin recording for this command buffer.
| void Fling::CommandBuffer::BeginRenderPass | ( | FrameBuffer & | t_frameBuf, |
| const std::vector< VkClearValue > & | t_ClearVales | ||
| ) |
| void Fling::CommandBuffer::BindPipeline | ( | VkPipelineBindPoint | t_BindPoint, |
| VkPipeline | t_Pipeline | ||
| ) |
| void Fling::CommandBuffer::End | ( | ) |
Stop recording commands to the command buffer.
| void Fling::CommandBuffer::EndRenderPass | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| void Fling::CommandBuffer::NextSubpass | ( | ) |
| void Fling::CommandBuffer::SetScissor | ( | UINT32 | first_scissor, |
| const std::vector< VkRect2D > & | scissors | ||
| ) |
| void Fling::CommandBuffer::SetViewport | ( | UINT32 | first_viewport, |
| const std::vector< VkViewport > & | viewports | ||
| ) |
|
private |
|
private |
|
private |
|
private |
1.8.13