RayTracingAccelerationStructureclass

Represents a ray tracing acceleration structure that contains geometry for efficient ray intersection testing. This is used to organize scene geometry in a hierarchical structure optimized for ray tracing performance.

objectRayTracingAccelerationStructure
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.RayTracingAccelerationStructure

Methods4

Showing 4 methods

public static Sandbox.RayTracingAccelerationStructure Create(object geometryData)PUBLICSTATIC

Create a ray tracing acceleration structure from scene geometry.

ParameterTypeDescription
geometryDataobjectThe geometry data to build the acceleration structure from.
Returns:RayTracingAccelerationStructureA new acceleration structure, or null if creation failed.

public void Dispose()PUBLIC

Releases the native resources associated with this acceleration structure.

Returns:void

public bool IsValid()PUBLIC

Gets whether this acceleration structure is valid and can be used for ray tracing.

Returns:bool

public void Update(object geometryData)PUBLICPER-FRAME

Updates the acceleration structure with new geometry data. This is more efficient than rebuilding from scratch for dynamic geometry.

ParameterTypeDescription
geometryDataobjectThe updated geometry data.
Returns:void

On this page