Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the autogenerated index of the primitive within the geometry inside the bottom-level acceleration structure instance.
Syntax
uint PrimitiveIndex();
Remarks
For D3D12_RAYTRACING_GEOMETRY_TYPE_TRIANGLES, this is the triangle index within the geometry object.
For D3D12_RAYTRACING_GEOMETRY_TYPE_PROCEDURAL_PRIMITIVE_AABBS, this is the index into the AABB array defining the geometry object.
This function can be called from the following raytracing shader types: