sandbox
Loading...
Searching...
No Matches
sbx::graphics::command_buffer Class Reference

Classes

struct  wait_data
 

Public Member Functions

 command_buffer (bool should_begin=true, VkQueueFlagBits queue_type=VK_QUEUE_GRAPHICS_BIT, VkCommandBufferLevel buffer_level=VK_COMMAND_BUFFER_LEVEL_PRIMARY)
 
auto handle () const noexcept -> const VkCommandBuffer &
 
 operator const VkCommandBuffer & () const noexcept
 
auto is_running () const noexcept -> bool
 
auto begin (VkCommandBufferUsageFlags usage=VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT) -> void
 
auto end () -> void
 
auto submit_idle () -> void
 
auto submit (const std::vector< wait_data > &wait_data={}, const VkSemaphore &signal_semaphore=nullptr, const VkFence &fence=nullptr) -> void
 
auto copy_buffer (const VkBuffer &source, const VkBuffer &destination, const VkBufferCopy &region) -> void
 
auto set_viewport (const VkViewport &viewport) -> void
 
auto set_scissor (const VkRect2D &scissor) -> void
 
auto bind_vertex_buffer (std::uint32_t first_binding, const VkBuffer &buffer) -> void
 
auto bind_index_buffer (const VkBuffer &buffer, VkDeviceSize offset, VkIndexType index_type) -> void
 
auto draw (std::uint32_t vertex_count, std::uint32_t instance_count, std::uint32_t first_vertex, std::uint32_t first_instance) -> void
 
auto draw_indexed (std::uint32_t index_count, std::uint32_t instance_count, std::uint32_t first_index, std::int32_t vertex_offset, std::uint32_t first_instance) -> void
 
auto begin_render_pass (const VkRenderPassBeginInfo &renderpass_begin_info, VkSubpassContents subpass_contents) -> void
 
auto end_render_pass () -> void
 

The documentation for this class was generated from the following files: