vertexBuffer
The vertex buffer that Unity uses to define the ray tracing geometry instance.
阅读时间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 RayTracingGeometryInstanceConfig.vertexAttributes array.
You can use a common vertex buffer and index buffer to define multiple geometry instances with different properties (for example different materials).
Use for the GraphicsBuffer.Target parameter when creating the vertex buffer from scripts.
GraphicsBuffer.Target.Vertex | GraphicsBuffer.Target.Raw