vertexBuffer
The vertex buffer that Unity uses to define geometries used by ray tracing instances.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public GraphicsBuffer vertexBuffer { readonly get; set; }
Remarks
Define the vertex buffer format by specifiying a list of vertex attributes in RayTracingMultiGeometryInstanceConfig.vertexAttributes array.
You can use a common vertex buffer as a pool to define multiple geometries used by ray tracing instances that have different properties (for example different materials).
Specify for the GraphicsBuffer.Target parameter when creating the vertex buffer from scripts. If the buffer is also used in rasterization then add the flag.
GraphicsBuffer.Target.RawGraphicsBuffer.Target.Vertex