ClearInstances()
Removes all ray tracing instances from the RayTracingAccelerationStructure.
Read time 1 minuteLast updated 8 days ago
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.