Skip to content

KDGpu::VulkanRayTracingPassCommandRecorder

Module: Vulkan

VulkanRayTracingPassCommandRecorder.

#include <vulkan_raytracing_pass_command_recorder.h>

Inherits from KDGpu::ApiRayTracingPassCommandRecorder

Public Functions

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

Reimplements: KDGpu::ApiRayTracingPassCommandRecorder::setPipeline

function setBindGroup

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

Reimplements: KDGpu::ApiRayTracingPassCommandRecorder::setBindGroup

function traceRays

1
2
3
virtual void traceRays(
    const RayTracingCommand & rayTracingCommand
)

Reimplements: KDGpu::ApiRayTracingPassCommandRecorder::traceRays

function pushConstant

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

Reimplements: KDGpu::ApiRayTracingPassCommandRecorder::pushConstant

function end

1
virtual void end()

Reimplements: KDGpu::ApiRayTracingPassCommandRecorder::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:08:03 +0000