Class AccelerationStructureOptions
Options used to configure the creation of a IRayTracingAccelStruct.
Inherited Members
Namespace: UnityEngine.Rendering.UnifiedRayTracing
Assembly: Unity.UnifiedRayTracing.Runtime.dll
Syntax
public class AccelerationStructureOptions
Fields
buildFlags
Option for the quality of the built IRayTracingAccelStruct.
Declaration
public BuildFlags buildFlags
Field Value
Type | Description |
---|---|
BuildFlags |
useCPUBuild
Enables building the acceleration structure on the CPU instead of the GPU. Enabling this option combined with the use of the PreferFastBuild flag provides the best possible ray tracing performance.
Declaration
public bool useCPUBuild
Field Value
Type | Description |
---|---|
bool |
Remarks
This field works only in the Unity Editor, not at runtime.