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

RayTracingSubGeometryDesc.id

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

public int id;

Description

An optional identifier for the ray tracing geometry.

You can use a non-zero value for id to uniquely identify the geometry used for ray tracing, no matter the location of the geometry data inside a vertex and index buffer. This can be used in scenarios where the geometry can be streamed in and out in different locations into a vertex and index buffer pool in GPU-driven rendering pipelines. If the value is 0 then Unity uses all the fields in RayTracingSubGeometryDesc to generate a geometry identifier.