s&box docs

public class Sandbox.RayTracingAccelerationStructure

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.

Methods

Showing 4 methods

public static Sandbox.RayTracingAccelerationStructure Create(object geometryData)

Create a ray tracing acceleration structure from scene geometry.

Parameters

  • geometryData: The geometry data to build the acceleration structure from.

Returns

A new acceleration structure, or null if creation failed.

public void Dispose()

Releases the native resources associated with this acceleration structure.

public bool IsValid()

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

public void Update(object geometryData)

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

Parameters

  • geometryData: The updated geometry data.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.RayTracingAccelerationStructure

On this page