Skip to content

KDGpu::VulkanRayTracingPassCommandRecorder

Module: Vulkan

VulkanRayTracingPassCommandRecorder.

#include <vulkan_raytracing_pass_command_recorder.h>

Public Functions

Name
VulkanRayTracingPassCommandRecorder(VkCommandBuffer _commandBuffer, VulkanResourceManager * _vulkanResourceManager, const Handle< Device_t > & _deviceHandle)
void setPipeline(const Handle< RayTracingPipeline_t > & pipeline)
void setBindGroup(uint32_t group, const Handle< BindGroup_t > & bindGroup, const Handle< PipelineLayout_t > & pipelineLayout, const std::vector< uint32_t > & dynamicBufferOffsets)
void traceRays(const RayTracingCommand & rayTracingCommand)
void pushConstant(const PushConstantRange & constantRange, const void * data)
void end()

Public Attributes

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

Public Functions Documentation

function VulkanRayTracingPassCommandRecorder

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

function setPipeline

1
2
3
void setPipeline(
    const Handle< RayTracingPipeline_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 traceRays

1
2
3
void traceRays(
    const RayTracingCommand & rayTracingCommand
)

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< RayTracingPipeline_t > pipeline;

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