ドキュメント

Unity Engine

Unity Engine

indexBuffer

The index buffer that Unity uses to define geometries used by ray tracing instances.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.