ClearInstances()
Removes all ray tracing instances from the RayTracingAccelerationStructure.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public void ClearInstances()
Remarks
Note that in order to reflect this action on the GPU, building the acceleration structure has to be triggered by calling RayTracingAccelerationStructure.Build or CommandBuffer.BuildRayTracingAccelerationStructure.
Additional Resources: RayTracingAccelerationStructure.AddInstance.