Version: 2022.3
Experimental: this API is experimental and might be changed or removed in the future.

RayTracingSubMeshFlags.Enabled

切换到手册

描述

The sub-mesh is provided as input to a RayTracingAccelerationStructure build operation.

When using this flag alone, the sub-mesh is treated as non-opaque. During acceleration structure traversal, the GPU is allowed to invoke an user-defined any hit shader when a ray encounters the geometry, potentially impacting GPU performance during acceleration structure traversal.