Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

RayTracingSubGeometryDesc

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Struct describing a single ray tracing geometry using spans of memory in the common vertex and index buffer.

When using index buffers, you can specify the sub-geometry range using indexStart and indexCount with vertexStart being 0 and vertexCount being the total amount of vertices in the vertex buffer.

Additional resources: RayTracingMultiGeometryInstanceConfig.

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.