RayTracingGeometryInstanceConfig.indexBuffer

public GraphicsBuffer indexBuffer;

Description

The index buffer that Unity uses to define the ray tracing geometry instance.

You can use a common index buffer and vertex buffer to define multiple geometry instances with different properties (for example different materials).

Use GraphicsBuffer.Target.Index | GraphicsBuffer.Target.Raw for the Target parameter when creating the index buffer from scripts.


Did you find this page useful? Please give it a rating: