Skip to content

KDGpu::VulkanComputePassCommandRecorder

Module: Vulkan

VulkanComputePassCommandRecorder.

#include <vulkan_compute_pass_command_recorder.h>

Public Functions

Name
VulkanComputePassCommandRecorder(VkCommandBuffer _commandBuffer, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
void setPipeline(const Handle< ComputePipeline_t > & pipeline)
void setBindGroup(uint32_t group, const Handle< BindGroup_t > & bindGroup, const Handle< PipelineLayout_t > & pipelineLayout, const std::vector< uint32_t > & dynamicBufferOffsets)
void dispatchCompute(const ComputeCommand & command)
void dispatchCompute(const std::vector< ComputeCommand > & commands)
void dispatchComputeIndirect(const ComputeCommandIndirect & command)
void dispatchComputeIndirect(const std::vector< ComputeCommandIndirect > & commands)
void pushConstant(const PushConstantRange & constantRange, const void * data)
void end()

Public Attributes

Name
VkCommandBuffer commandBuffer
VulkanResourceManager * vulkanResourceManager
Handle< Device_t > deviceHandle
Handle< ComputePipeline_t > pipeline

Public Functions Documentation

function VulkanComputePassCommandRecorder

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

function setPipeline

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

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 dispatchCompute

1
2
3
void dispatchCompute(
    const ComputeCommand & command
)

function dispatchCompute

1
2
3
void dispatchCompute(
    const std::vector< ComputeCommand > & commands
)

function dispatchComputeIndirect

1
2
3
void dispatchComputeIndirect(
    const ComputeCommandIndirect & command
)

function dispatchComputeIndirect

1
2
3
void dispatchComputeIndirect(
    const std::vector< ComputeCommandIndirect > & commands
)

function pushConstant

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

function end

1
void end()

Public Attributes Documentation

variable commandBuffer

1
VkCommandBuffer commandBuffer { VK_NULL_HANDLE };

variable vulkanResourceManager

1
VulkanResourceManager * vulkanResourceManager { nullptr };

variable deviceHandle

1
Handle< Device_t > deviceHandle;

variable pipeline

1
Handle< ComputePipeline_t > pipeline;

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