Skip to content

RDAccelerationStructureInstance

Inherits: RefCounted < Object

Acceleration structure instance (used by RenderingDevice).

RDAccelerationStructureInstance describes an instance of a Bottom-Level Acceleration Structure (BLAS) used in the RenderingDevice.tlas_build() method.

Type Name Default
RID blas RID()
BitField[RenderingDevice.AccelerationStructureInstanceFlagBits] flags 0
int hit_sbt_range 0
int id 0
int mask 255
Transform3D transform Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)

blas

RID blas = RID()

The BLAS referenced by this instance. If null, the instance is treated as a placeholder but still contributes to gl_InstanceIndex in GLSL.

flags

BitField[RenderingDevice.AccelerationStructureInstanceFlagBits] flags = 0

Flags for the instance.

hit_sbt_range

int hit_sbt_range = 0

Hit shader binding table range used for this instance, allocated using the RenderingDevice.hit_sbt_range_alloc() method.

id

int id = 0

Custom instance ID that can be accessed in GLSL using gl_InstanceCustomIndexEXT.

mask

int mask = 255

Visibility mask used to control which rays can intersect this instance.

transform

Transform3D transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)

Transform applied to the referenced BLAS for this instance.