78 VkCommandBuffer
handle()
const;
81 operator bool ()
const;
95 ONE_TIME_SUBMIT = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT,
96 RENDER_PASS_CONTINUE = VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT,
97 SIMULTANEOUS_USE = VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT
105 VkResult
begin ( std::uint32_t flags = 0 );
121 d_commandBufferHandle ( commandBufferHandle ),
122 d_pPrevContext ( s_pThis )
129 s_pThis = d_pPrevContext;
132 static inline VkCommandBuffer getCommandBufferHandle()
136 "Invalid command call in non-rendering context. " 137 "Perhaps you forgot to specify command buffer explicitly." );
139 return s_pThis->d_commandBufferHandle;
144 VkCommandBuffer d_commandBufferHandle;
152 #endif // INC_VPPCOMMANDBUFFER_HPP VkResult release()
Frees individual command buffer.
VkResult end()
Ends command recording for this buffer.
The VPP namespace.
Definition: main.hpp:1
VkResult begin(std::uint32_t flags=0)
Sets the buffer in the recording state.
Represents a sequence of Vulkan commands.
Definition: vppCommandBuffer.hpp:68
VkCommandBuffer handle() const
Retrieves the Vulkan handle.
Definition: vppCommandBuffer.hpp:117
CommandBuffer()
Constructs a null, invalid command buffer.
VkResult reset()
Resets the state of individual command buffer for reusing.