KDGpu::VulkanRenderPassCommandRecorderBase
Module: Vulkan
Base class for Vulkan render pass command recorders. More...
#include <vulkan_render_pass_command_recorder_base.h>
Inherited by KDGpu::VulkanDynamicRenderPassCommandRecorder, KDGpu::VulkanRenderPassCommandRecorder
Public Functions
|
Name |
|
VulkanRenderPassCommandRecorderBase(VkCommandBuffer _commandBuffer, VkRect2D _renderArea, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle) |
| virtual |
~VulkanRenderPassCommandRecorderBase() =default |
| void |
setPipeline(const Handle< GraphicsPipeline_t > & pipeline) |
| void |
setVertexBuffer(uint32_t index, const Handle< Buffer_t > & buffer, DeviceSize offset) const |
| void |
setIndexBuffer(const Handle< Buffer_t > & buffer, DeviceSize offset, IndexType indexType) const |
| void |
setBindGroup(uint32_t group, const Handle< BindGroup_t > & bindGroup, const Handle< PipelineLayout_t > & pipelineLayout, std::span< const uint32_t > dynamicBufferOffsets) const |
| void |
setViewport(const Viewport & viewport) const |
| void |
setScissor(const Rect2D & scissor) const |
| void |
setStencilReference(StencilFaceFlags faceMask, int reference) const |
| void |
draw(const DrawCommand & drawCommand) const |
| void |
draw(std::span< const DrawCommand > drawCommands) const |
| void |
drawIndexed(const DrawIndexedCommand & drawCommand) const |
| void |
drawIndexed(std::span< const DrawIndexedCommand > drawCommands) const |
| void |
drawIndirect(const DrawIndirectCommand & drawCommand) const |
| void |
drawIndirect(std::span< const DrawIndirectCommand > drawCommands) const |
| void |
drawIndexedIndirect(const DrawIndexedIndirectCommand & drawCommand) const |
| void |
drawIndexedIndirect(std::span< const DrawIndexedIndirectCommand > drawCommands) const |
| void |
drawMeshTasks(const DrawMeshCommand & drawCommand) const |
| void |
drawMeshTasks(std::span< const DrawMeshCommand > drawCommands) const |
| void |
drawMeshTasksIndirect(const DrawMeshIndirectCommand & drawCommand) const |
| void |
drawMeshTasksIndirect(std::span< const DrawMeshIndirectCommand > drawCommands) const |
| void |
pushConstant(const PushConstantRange & constantRange, const void * data, const Handle< PipelineLayout_t > & pipelineLayout ={}) const |
| void |
pushBindGroup(uint32_t group, std::span< const BindGroupEntry > bindGroupEntries, const Handle< PipelineLayout_t > & pipelineLayout ={}) const |
| virtual void |
end() const =0 |
Public Attributes
Detailed Description
| struct KDGpu::VulkanRenderPassCommandRecorderBase;
|
Base class for Vulkan render pass command recorders.
Contains common functionality shared between legacy VkRenderPass-based rendering and modern dynamic rendering implementations.
Public Functions Documentation
function VulkanRenderPassCommandRecorderBase
| explicit VulkanRenderPassCommandRecorderBase(
VkCommandBuffer _commandBuffer,
VkRect2D _renderArea,
VulkanResourceManager * _vulkanResourceManager,
const Handle< Device_t > & _deviceHandle
)
|
function ~VulkanRenderPassCommandRecorderBase
| virtual ~VulkanRenderPassCommandRecorderBase() =default
|
function setPipeline
| void setPipeline(
const Handle< GraphicsPipeline_t > & pipeline
)
|
function setVertexBuffer
| void setVertexBuffer(
uint32_t index,
const Handle< Buffer_t > & buffer,
DeviceSize offset
) const
|
function setIndexBuffer
| void setIndexBuffer(
const Handle< Buffer_t > & buffer,
DeviceSize offset,
IndexType indexType
) const
|
function setBindGroup
| void setBindGroup(
uint32_t group,
const Handle< BindGroup_t > & bindGroup,
const Handle< PipelineLayout_t > & pipelineLayout,
std::span< const uint32_t > dynamicBufferOffsets
) const
|
function setViewport
| void setViewport(
const Viewport & viewport
) const
|
function setScissor
| void setScissor(
const Rect2D & scissor
) const
|
function setStencilReference
| void setStencilReference(
StencilFaceFlags faceMask,
int reference
) const
|
function draw
| void draw(
const DrawCommand & drawCommand
) const
|
function draw
| void draw(
std::span< const DrawCommand > drawCommands
) const
|
function drawIndexed
| void drawIndexed(
const DrawIndexedCommand & drawCommand
) const
|
function drawIndexed
| void drawIndexed(
std::span< const DrawIndexedCommand > drawCommands
) const
|
function drawIndirect
| void drawIndirect(
const DrawIndirectCommand & drawCommand
) const
|
function drawIndirect
| void drawIndirect(
std::span< const DrawIndirectCommand > drawCommands
) const
|
function drawIndexedIndirect
| void drawIndexedIndirect(
const DrawIndexedIndirectCommand & drawCommand
) const
|
function drawIndexedIndirect
| void drawIndexedIndirect(
std::span< const DrawIndexedIndirectCommand > drawCommands
) const
|
function drawMeshTasks
| void drawMeshTasks(
const DrawMeshCommand & drawCommand
) const
|
function drawMeshTasks
| void drawMeshTasks(
std::span< const DrawMeshCommand > drawCommands
) const
|
function drawMeshTasksIndirect
| void drawMeshTasksIndirect(
const DrawMeshIndirectCommand & drawCommand
) const
|
function drawMeshTasksIndirect
| void drawMeshTasksIndirect(
std::span< const DrawMeshIndirectCommand > drawCommands
) const
|
function pushConstant
| void pushConstant(
const PushConstantRange & constantRange,
const void * data,
const Handle< PipelineLayout_t > & pipelineLayout ={}
) const
|
function pushBindGroup
| void pushBindGroup(
uint32_t group,
std::span< const BindGroupEntry > bindGroupEntries,
const Handle< PipelineLayout_t > & pipelineLayout ={}
) const
|
function end
| virtual void end() const =0
|
Reimplemented by: KDGpu::VulkanDynamicRenderPassCommandRecorder::end, KDGpu::VulkanRenderPassCommandRecorder::end
Public Attributes Documentation
variable commandBuffer
| VkCommandBuffer commandBuffer { VK_NULL_HANDLE };
|
variable renderArea
variable vulkanResourceManager
| VulkanResourceManager * vulkanResourceManager { nullptr };
|
variable deviceHandle
| Handle< Device_t > deviceHandle;
|
variable pipeline
| Handle< GraphicsPipeline_t > pipeline;
|
variable firstPipelineWasSet
| bool firstPipelineWasSet { false };
|
Updated on 2026-11-07 at 00:01:27 +0000