Skip to content

KDGpu::VulkanRenderPassCommandRecorder

Module: Vulkan

VulkanRenderPassCommandRecorder.

#include <vulkan_render_pass_command_recorder.h>

Public Functions

Name
VulkanRenderPassCommandRecorder(VkCommandBuffer _commandBuffer, VkRect2D _renderArea, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
void setPipeline(const Handle< GraphicsPipeline_t > & pipeline)
void setVertexBuffer(uint32_t index, const Handle< Buffer_t > & buffer, DeviceSize offset)
void setIndexBuffer(const Handle< Buffer_t > & buffer, DeviceSize offset, IndexType indexType)
void setBindGroup(uint32_t group, const Handle< BindGroup_t > & bindGroup, const Handle< PipelineLayout_t > & pipelineLayout, const std::vector< uint32_t > & dynamicBufferOffsets)
void setViewport(const Viewport & viewport)
void setScissor(const Rect2D & scissor)
void setStencilReference(StencilFaceFlags faceMask, int reference)
void draw(const DrawCommand & drawCommand)
void draw(const std::vector< DrawCommand > & drawCommands)
void drawIndexed(const DrawIndexedCommand & drawCommand)
void drawIndexed(const std::vector< DrawIndexedCommand > & drawCommands)
void drawIndirect(const DrawIndirectCommand & drawCommand)
void drawIndirect(const std::vector< DrawIndirectCommand > & drawCommands)
void drawIndexedIndirect(const DrawIndexedIndirectCommand & drawCommand)
void drawIndexedIndirect(const std::vector< DrawIndexedIndirectCommand > & drawCommands)
void drawMeshTasks(const DrawMeshCommand & drawCommand)
void drawMeshTasks(const std::vector< DrawMeshCommand > & drawCommands)
void drawMeshTasksIndirect(const DrawMeshIndirectCommand & drawCommand)
void drawMeshTasksIndirect(const std::vector< DrawMeshIndirectCommand > & drawCommands)
void pushConstant(const PushConstantRange & constantRange, const void * data, const Handle< PipelineLayout_t > & pipelineLayout ={})
void nextSubpass()
void end()

Public Attributes

Name
VkCommandBuffer commandBuffer
VkRect2D renderArea
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle
Handle< GraphicsPipeline_t > pipeline
bool firstPipelineWasSet

Public Functions Documentation

function VulkanRenderPassCommandRecorder

1
2
3
4
5
6
explicit VulkanRenderPassCommandRecorder(
    VkCommandBuffer _commandBuffer,
    VkRect2D _renderArea,
    VulkanResourceManager * _vulkanResourceManager,
    const Handle< Device_t > & _deviceHandle
)

function setPipeline

1
2
3
void setPipeline(
    const Handle< GraphicsPipeline_t > & pipeline
)

function setVertexBuffer

1
2
3
4
5
void setVertexBuffer(
    uint32_t index,
    const Handle< Buffer_t > & buffer,
    DeviceSize offset
)

function setIndexBuffer

1
2
3
4
5
void setIndexBuffer(
    const Handle< Buffer_t > & buffer,
    DeviceSize offset,
    IndexType indexType
)

function setBindGroup

1
2
3
4
5
6
void setBindGroup(
    uint32_t group,
    const Handle< BindGroup_t > & bindGroup,
    const Handle< PipelineLayout_t > & pipelineLayout,
    const std::vector< uint32_t > & dynamicBufferOffsets
)

function setViewport

1
2
3
void setViewport(
    const Viewport & viewport
)

function setScissor

1
2
3
void setScissor(
    const Rect2D & scissor
)

function setStencilReference

1
2
3
4
void setStencilReference(
    StencilFaceFlags faceMask,
    int reference
)

function draw

1
2
3
void draw(
    const DrawCommand & drawCommand
)

function draw

1
2
3
void draw(
    const std::vector< DrawCommand > & drawCommands
)

function drawIndexed

1
2
3
void drawIndexed(
    const DrawIndexedCommand & drawCommand
)

function drawIndexed

1
2
3
void drawIndexed(
    const std::vector< DrawIndexedCommand > & drawCommands
)

function drawIndirect

1
2
3
void drawIndirect(
    const DrawIndirectCommand & drawCommand
)

function drawIndirect

1
2
3
void drawIndirect(
    const std::vector< DrawIndirectCommand > & drawCommands
)

function drawIndexedIndirect

1
2
3
void drawIndexedIndirect(
    const DrawIndexedIndirectCommand & drawCommand
)

function drawIndexedIndirect

1
2
3
void drawIndexedIndirect(
    const std::vector< DrawIndexedIndirectCommand > & drawCommands
)

function drawMeshTasks

1
2
3
void drawMeshTasks(
    const DrawMeshCommand & drawCommand
)

function drawMeshTasks

1
2
3
void drawMeshTasks(
    const std::vector< DrawMeshCommand > & drawCommands
)

function drawMeshTasksIndirect

1
2
3
void drawMeshTasksIndirect(
    const DrawMeshIndirectCommand & drawCommand
)

function drawMeshTasksIndirect

1
2
3
void drawMeshTasksIndirect(
    const std::vector< DrawMeshIndirectCommand > & drawCommands
)

function pushConstant

1
2
3
4
5
void pushConstant(
    const PushConstantRange & constantRange,
    const void * data,
    const Handle< PipelineLayout_t > & pipelineLayout ={}
)

function nextSubpass

1
void nextSubpass()

function end

1
void end()

Public Attributes Documentation

variable commandBuffer

1
VkCommandBuffer commandBuffer { VK_NULL_HANDLE };

variable renderArea

1
VkRect2D renderArea {};

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable deviceHandle

1
Handle< Device_t > deviceHandle;

variable pipeline

1
Handle< GraphicsPipeline_t > pipeline;

variable firstPipelineWasSet

1
bool firstPipelineWasSet { false };

Updated on 2024-12-22 at 00:01:23 +0000