Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


indexBuffer

The index buffer that Unity uses to define geometries used by ray tracing instances.
Read time 1 minuteLast updated 10 days ago

Definition

public GraphicsBuffer indexBuffer { readonly get; set; }

Remarks

You can use a common index buffer as a pool to define multiple geometries used by ray tracing instances that have different properties (for example different materials). Use RayTracingMultiGeometryInstanceConfig.subGeometries array to configure index ranges for each geometry.
Specify
GraphicsBuffer.Target.Raw
for the GraphicsBuffer.Target parameter when you create the index buffer from scripts. If the buffer is also used in rasterization, then add the
GraphicsBuffer.Target.Index
flag.