Skip to content

LiteFX::Rendering::Backends::VulkanCommandBuffer::traceRays

Executes a query on a ray-tracing pipeline.

Synopsis

Declared in <litefx/rendering.hpp>

[[dllimport]] void traceRays(
    Vector3u const& dimensions,
    ShaderBindingTableOffsets const& offsets,
    buffer_type const& rayGenerationShaderBindingTable,
    buffer_type const* missShaderBindingTable,
    buffer_type const* hitShaderBindingTable,
    buffer_type const* callableShaderBindingTable) const noexcept;

Description

This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.

Parameters

NameDescription
dimensionsThe dimensions of the ray-tracing query.
offsetsThe offsets, sizes and strides for each shader binding table.
rayGenerationShaderBindingTableThe shader binding table that contains the ray generation shader.
missShaderBindingTableThe shader binding table that contains the miss shaders.
hitShaderBindingTableThe shader binding table that contains the hit shaders.
callableShaderBindingTableThe shader binding table that contains the callable shaders.