Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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.

Properties

Property

Description

flagsFlags that determine the ray-geometry intersection behavior relative to a material used together with this geometry configuration during ray tracing.
idAn optional identifier for the ray tracing geometry.
indexCountThe amount of indices from an index buffer that defines a ray tracing geometry.
indexStartThe first index from an index buffer that defines a ray tracing geometry.
vertexCountThe amount of vertices from a vertex buffer that defines a ray tracing geometry.
vertexStartThe index of the first vertex from a vertex buffer that defines a ray tracing geometry.