HDK
|
#include <RV_VKCommandBuffer.h>
Public Types | |
using | Callback = UT_Function< void(RV_Instance *)> |
Public Member Functions | |
VkCommandBuffer | getVkCmdBuf () |
RV_VKCommandPool * | getCmdPool () |
void | beginRecording () |
void | endRecording () |
void | addWaitSemaphore (VkSemaphore sem, VkPipelineStageFlags stage) |
void | addSignalSemaphore (VkSemaphore sem, VkPipelineStageFlags stage) |
bool | waitForFinish () |
bool | isRecording () const |
bool | isExecuting () |
void | handleCompletionCallbacks (RV_Instance *inst) |
void | handleSubmissionCallbacks (RV_Instance *inst) |
void | addCompletionCallback (const Callback &callback) |
void | addSubmissionCallback (const Callback &callback) |
void | invalidateState () |
~RV_VKCommandBuffer () | |
RV_VKCommandBuffer (const RV_VKCommandBuffer &)=delete | |
RV_VKCommandBuffer & | operator= (const RV_VKCommandBuffer &)=delete |
Static Public Member Functions | |
static RV_VKCommandBuffer * | allocate (RV_Instance *inst, RV_VKCommandPool *cmd_pool) |
Public Attributes | |
RV_VKPipelineStateInfo | myPipeState |
Protected Member Functions | |
RV_VKCommandBuffer (RV_Instance *inst, RV_VKCommandPool *cmd_pool, VkCommandBuffer cmd_buf, const VkCommandBufferAllocateInfo &info, VkFence fence) | |
Protected Attributes | |
VkCommandBuffer | myVkCmdBuf |
class RV_VKCommandPool * | myCmdPool |
RV_Instance * | myInst = nullptr |
VkCommandBufferLevel | myLevel = VK_COMMAND_BUFFER_LEVEL_PRIMARY |
bool | myIsRecording = false |
VkFence | myCompleteFence |
UT_Array< VkPipelineStageFlags > | myWaitStages |
UT_Array< VkSemaphore > | myWaitSems |
UT_Array< VkPipelineStageFlags > | mySignalStages |
UT_Array< VkSemaphore > | mySignalSems |
UT_Array< Callback > | myCompletionCallbacks |
UT_Array< Callback > | mySubmissionCallbacks |
Friends | |
class | RV_Instance |
class | RV_VKCommandPool |
class | RV_VKQueue |
Definition at line 32 of file RV_VKCommandBuffer.h.
using RV_VKCommandBuffer::Callback = UT_Function<void(RV_Instance*)> |
Definition at line 63 of file RV_VKCommandBuffer.h.
RV_VKCommandBuffer::~RV_VKCommandBuffer | ( | ) |
|
delete |
|
inlineprotected |
Definition at line 150 of file RV_VKCommandBuffer.h.
Definition at line 95 of file RV_VKCommandBuffer.h.
void RV_VKCommandBuffer::addSignalSemaphore | ( | VkSemaphore | sem, |
VkPipelineStageFlags | stage | ||
) |
Definition at line 100 of file RV_VKCommandBuffer.h.
void RV_VKCommandBuffer::addWaitSemaphore | ( | VkSemaphore | sem, |
VkPipelineStageFlags | stage | ||
) |
|
static |
void RV_VKCommandBuffer::beginRecording | ( | ) |
void RV_VKCommandBuffer::endRecording | ( | ) |
|
inline |
Definition at line 45 of file RV_VKCommandBuffer.h.
|
inline |
Definition at line 39 of file RV_VKCommandBuffer.h.
|
inline |
Definition at line 65 of file RV_VKCommandBuffer.h.
|
inline |
Definition at line 83 of file RV_VKCommandBuffer.h.
|
inline |
Definition at line 107 of file RV_VKCommandBuffer.h.
bool RV_VKCommandBuffer::isExecuting | ( | ) |
bool RV_VKCommandBuffer::isRecording | ( | ) | const |
|
delete |
bool RV_VKCommandBuffer::waitForFinish | ( | ) |
|
friend |
Definition at line 164 of file RV_VKCommandBuffer.h.
|
friend |
Definition at line 165 of file RV_VKCommandBuffer.h.
|
friend |
Definition at line 166 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 128 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 138 of file RV_VKCommandBuffer.h.
Definition at line 147 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 129 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 135 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 132 of file RV_VKCommandBuffer.h.
RV_VKPipelineStateInfo RV_VKCommandBuffer::myPipeState |
Definition at line 120 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 144 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 143 of file RV_VKCommandBuffer.h.
Definition at line 148 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 127 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 141 of file RV_VKCommandBuffer.h.
|
protected |
Definition at line 140 of file RV_VKCommandBuffer.h.