RayTracingSubGeometryDesc
Struct describing a single ray tracing geometry using spans of memory in the common vertex and index buffer.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public struct RayTracingSubGeometryDesc
Remarks
When using index buffers, you can specify the sub-geometry range using RayTracingSubGeometryDesc.indexStart and RayTracingSubGeometryDesc.indexCount with RayTracingSubGeometryDesc.vertexStart being 0 and RayTracingSubGeometryDesc.vertexCount being the total amount of vertices in the vertex buffer.
Additional Resources: RayTracingMultiGeometryInstanceConfig.
Properties
Property | Description |
|---|---|
| flags | Flags that determine the ray-geometry intersection behavior relative to a material used together with this geometry configuration during ray tracing. |
| id | An optional identifier for the ray tracing geometry. |
| indexCount | The amount of indices from an index buffer that defines a ray tracing geometry. |
| indexStart | The first index from an index buffer that defines a ray tracing geometry. |
| vertexCount | The amount of vertices from a vertex buffer that defines a ray tracing geometry. |
| vertexStart | The index of the first vertex from a vertex buffer that defines a ray tracing geometry. |