LiteFX::Rendering::ICommandBuffer::traceRays¶
Executes a query on a ray-tracing pipeline.
Synopsis¶
Declared in <litefx/rendering_api.hpp>
[[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;
Description¶
This method is only supported if the GraphicsDeviceFeatures::RayTracing feature is enabled.
Parameters¶
| Name | Description |
|---|---|
| width | The width of the ray-tracing query. |
| height | The height of the ray-tracing query. |
| depth | The depth of the ray-tracing query. |
| offsets | The offsets, sizes and strides for each shader binding table. |
| rayGenerationShaderBindingTable | The shader binding table that contains the ray generation shader. |
| missShaderBindingTable | The shader binding table that contains the miss shaders. |
| hitShaderBindingTable | The shader binding table that contains the hit shaders. |
| callableShaderBindingTable | The shader binding table that contains the callable shaders. |