Version: 2023.2
public GraphicsBuffer indexBuffer ;

描述

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.