indexBuffer
The index buffer that Unity uses to define geometries used by ray tracing instances.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
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 for the GraphicsBuffer.Target parameter when you create the index buffer from scripts. If the buffer is also used in rasterization, then add the flag.
GraphicsBuffer.Target.RawGraphicsBuffer.Target.Index