Skip to content

KDGpu::CommandRecorder

Module: Public API

CommandRecorder.

#include <command_recorder.h>

Public Functions

Name
~CommandRecorder()
CommandRecorder(CommandRecorder && other)
CommandRecorder & operator=(CommandRecorder && other)
CommandRecorder(const CommandRecorder & ) =delete
CommandRecorder & operator=(const CommandRecorder & ) =delete
const Handle< CommandRecorder_t > & handle() const
bool isValid() const
operator Handle< CommandRecorder_t >() const
RenderPassCommandRecorder beginRenderPass(const RenderPassCommandRecorderOptions & options) const
RenderPassCommandRecorder beginRenderPass(const RenderPassCommandRecorderWithRenderPassOptions & options) const
RenderPassCommandRecorder beginRenderPass(const RenderPassCommandRecorderWithDynamicRenderingOptions & options) const
ComputePassCommandRecorder beginComputePass(const ComputePassCommandRecorderOptions & options ={}) const
RayTracingPassCommandRecorder beginRayTracingPass(const RayTracingPassCommandRecorderOptions & options ={}) const
TimestampQueryRecorder beginTimestampRecording(const TimestampQueryRecorderOptions & options ={}) const
void blitTexture(const TextureBlitOptions & options) const
void clearBuffer(const BufferClear & clear) const
void clearColorTexture(const ClearColorTexture & clear) const
void clearDepthStencilTexture(const ClearDepthStencilTexture & clear) const
void copyBuffer(const BufferCopy & copy) const
void copyBufferToTexture(const BufferToTextureCopy & copy) const
void copyTextureToBuffer(const TextureToBufferCopy & copy) const
void copyTextureToTexture(const TextureToTextureCopy & copy) const
void updateBuffer(const BufferUpdate & update) const
void memoryBarrier(const MemoryBarrierOptions & options) const
void bufferMemoryBarrier(const BufferMemoryBarrierOptions & options) const
void textureMemoryBarrier(const TextureMemoryBarrierOptions & options) const
void executeSecondaryCommandBuffer(const Handle< CommandBuffer_t > & secondaryCommandBuffer) const
void resolveTexture(const TextureResolveOptions & options) const
void buildAccelerationStructures(const BuildAccelerationStructureOptions & options) const
void beginDebugLabel(const DebugLabelOptions & options) const
void endDebugLabel() const
CommandBuffer finish() const

Protected Functions

Name
CommandRecorder(GraphicsApi * api, const Handle< Device_t > & device, const CommandRecorderOptions & options)

Protected Attributes

Name
GraphicsApi * m_api
Handle< Device_t > m_device
Handle< CommandRecorder_t > m_commandRecorder
CommandBufferLevel m_level

Friends

Name
class Device
class Queue

Public Functions Documentation

function ~CommandRecorder

1
~CommandRecorder()

function CommandRecorder

1
2
3
CommandRecorder(
    CommandRecorder && other
)

function operator=

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

function CommandRecorder

1
2
3
CommandRecorder(
    const CommandRecorder & 
) =delete

function operator=

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

function handle

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

function isValid

1
inline bool isValid() const

function operator Handle< CommandRecorder_t >

1
inline operator Handle< CommandRecorder_t >() const

function beginRenderPass

1
2
3
RenderPassCommandRecorder beginRenderPass(
    const RenderPassCommandRecorderOptions & options
) const

function beginRenderPass

1
2
3
RenderPassCommandRecorder beginRenderPass(
    const RenderPassCommandRecorderWithRenderPassOptions & options
) const

function beginRenderPass

1
2
3
RenderPassCommandRecorder beginRenderPass(
    const RenderPassCommandRecorderWithDynamicRenderingOptions & options
) const

function beginComputePass

1
2
3
ComputePassCommandRecorder beginComputePass(
    const ComputePassCommandRecorderOptions & options ={}
) const

function beginRayTracingPass

1
2
3
RayTracingPassCommandRecorder beginRayTracingPass(
    const RayTracingPassCommandRecorderOptions & options ={}
) const

function beginTimestampRecording

1
2
3
TimestampQueryRecorder beginTimestampRecording(
    const TimestampQueryRecorderOptions & options ={}
) const

function blitTexture

1
2
3
void blitTexture(
    const TextureBlitOptions & options
) const

function clearBuffer

1
2
3
void clearBuffer(
    const BufferClear & clear
) const

function clearColorTexture

1
2
3
void clearColorTexture(
    const ClearColorTexture & clear
) const

function clearDepthStencilTexture

1
2
3
void clearDepthStencilTexture(
    const ClearDepthStencilTexture & clear
) const

function copyBuffer

1
2
3
void copyBuffer(
    const BufferCopy & copy
) const

function copyBufferToTexture

1
2
3
void copyBufferToTexture(
    const BufferToTextureCopy & copy
) const

function copyTextureToBuffer

1
2
3
void copyTextureToBuffer(
    const TextureToBufferCopy & copy
) const

function copyTextureToTexture

1
2
3
void copyTextureToTexture(
    const TextureToTextureCopy & copy
) const

function updateBuffer

1
2
3
void updateBuffer(
    const BufferUpdate & update
) const

function memoryBarrier

1
2
3
void memoryBarrier(
    const MemoryBarrierOptions & options
) const

function bufferMemoryBarrier

1
2
3
void bufferMemoryBarrier(
    const BufferMemoryBarrierOptions & options
) const

function textureMemoryBarrier

1
2
3
void textureMemoryBarrier(
    const TextureMemoryBarrierOptions & options
) const

function executeSecondaryCommandBuffer

1
2
3
void executeSecondaryCommandBuffer(
    const Handle< CommandBuffer_t > & secondaryCommandBuffer
) const

function resolveTexture

1
2
3
void resolveTexture(
    const TextureResolveOptions & options
) const

function buildAccelerationStructures

1
2
3
void buildAccelerationStructures(
    const BuildAccelerationStructureOptions & options
) const

function beginDebugLabel

1
2
3
void beginDebugLabel(
    const DebugLabelOptions & options
) const

function endDebugLabel

1
void endDebugLabel() const

function finish

1
CommandBuffer finish() const

Protected Functions Documentation

function CommandRecorder

1
2
3
4
5
explicit CommandRecorder(
    GraphicsApi * api,
    const Handle< Device_t > & device,
    const CommandRecorderOptions & options
)

Protected Attributes Documentation

variable m_api

1
GraphicsApi * m_api { nullptr };

variable m_device

1
Handle< Device_t > m_device;

variable m_commandRecorder

1
Handle< CommandRecorder_t > m_commandRecorder;

variable m_level

1
CommandBufferLevel m_level;

Friends

friend Device

1
2
3
friend class Device(
    Device 
);

friend Queue

1
2
3
friend class Queue(
    Queue 
);

Updated on 2025-12-31 at 00:05:02 +0000