Skip to content

LiteFX::Rendering::ITopLevelAccelerationStructure::Instance

Represents an instance of an IBottomLevelAccelerationStructure.

Synopsis

Declared in <litefx/rendering_api.hpp>

struct [[alignas(16)]] Instance final

Data Members

NameDescription
BottomLevelAccelerationStructure The bottom-level acceleration structure that contains the geometries of this instance.
Flags The flags that control the behavior of this instance.
HitGroupOffset An offset added to the address of the shader-local data of the shader record that is invoked for the instance, after the IBottomLevelAccelerationStructure indexing rules have been applied.
Id The instance ID used in shaders to identify the instance.
Mask A user-defined mask value that is matched with another mask value during ray-tracing to include or discard the instance.
Transform The transformation matrix for the instance.