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¶
| Name | Description |
|---|---|
| dimensions | The dimensions 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. |