Skip to content

LiteFX::Rendering::CommandBuffer::traceRays

Executes a query on a ray-tracing pipeline.

Synopses

Declared in <litefx/rendering.hpp>

Executes a query on a ray-tracing pipeline.

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

» more...

Executes a query on a ray-tracing pipeline.

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;

» more...

Executes a query on a ray-tracing pipeline.

[[dllimport, dllexport]] void traceRays(
    UInt32 width,
    UInt32 height,
    UInt32 depth,
    ShaderBindingTableOffsets const& offsets,
    IBuffer const& rayGenerationShaderBindingTable,
    IBuffer const* missShaderBindingTable = nullptr,
    IBuffer const* hitShaderBindingTable = nullptr,
    IBuffer const* callableShaderBindingTable = nullptr) const noexcept;

» more...

Executes a query on a ray-tracing pipeline.

virtual void traceRays(
    UInt32 width,
    UInt32 height,
    UInt32 depth,
    ShaderBindingTableOffsets const& offsets,
    buffer_type const& rayGenerationShaderBindingTable,
    buffer_type const* missShaderBindingTable,
    buffer_type const* hitShaderBindingTable,
    buffer_type const* callableShaderBindingTable) const noexcept = 0;

» more...

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.
widthThe width of the ray-tracing query.
heightThe height of the ray-tracing query.
depthThe depth of the ray-tracing query.