Skip to content

KDGpu::RenderPassCommandRecorder

Module: Public API

RenderPassCommandRecorder.

#include <render_pass_command_recorder.h>

Public Functions

Name
~RenderPassCommandRecorder()
RenderPassCommandRecorder(RenderPassCommandRecorder && other)
RenderPassCommandRecorder & operator=(RenderPassCommandRecorder && other)
RenderPassCommandRecorder(const RenderPassCommandRecorder & ) =delete
RenderPassCommandRecorder & operator=(const RenderPassCommandRecorder & ) =delete
const Handle< RenderPassCommandRecorder_t > & handle() const
bool isValid() const
operator Handle< RenderPassCommandRecorder_t >() const
void setPipeline(const Handle< GraphicsPipeline_t > & pipeline)
void setVertexBuffer(uint32_t index, const Handle< Buffer_t > & buffer, DeviceSize offset =0)
void setIndexBuffer(const Handle< Buffer_t > & buffer, DeviceSize offset =0, IndexType indexType =IndexType::Uint32)
void setBindGroup(uint32_t group, const Handle< BindGroup_t > & bindGroup, const Handle< PipelineLayout_t > & pipelineLayout =Handle< PipelineLayout_t >(), 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 pushConstant(const PushConstantRange & constantRange, const void * data)
void end()

Friends

Name
class CommandRecorder

Public Functions Documentation

function ~RenderPassCommandRecorder

1
~RenderPassCommandRecorder()

function RenderPassCommandRecorder

1
2
3
RenderPassCommandRecorder(
    RenderPassCommandRecorder && other
)

function operator=

1
2
3
RenderPassCommandRecorder & operator=(
    RenderPassCommandRecorder && other
)

function RenderPassCommandRecorder

1
2
3
RenderPassCommandRecorder(
    const RenderPassCommandRecorder & 
) =delete

function operator=

1
2
3
RenderPassCommandRecorder & operator=(
    const RenderPassCommandRecorder & 
) =delete

function handle

1
inline const Handle< RenderPassCommandRecorder_t > & handle() const

function isValid

1
inline bool isValid() const

function operator Handle< RenderPassCommandRecorder_t >

1
inline operator Handle< RenderPassCommandRecorder_t >() const

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 =0
)

function setIndexBuffer

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

function setBindGroup

1
2
3
4
5
6
void setBindGroup(
    uint32_t group,
    const Handle< BindGroup_t > & bindGroup,
    const Handle< PipelineLayout_t > & pipelineLayout =Handle< PipelineLayout_t >(),
    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 pushConstant

1
2
3
4
void pushConstant(
    const PushConstantRange & constantRange,
    const void * data
)

function end

1
void end()

Friends

friend CommandRecorder

1
2
3
friend class CommandRecorder(
    CommandRecorder 
);

Updated on 2024-12-22 at 00:08:03 +0000