Class DX12TopLevelAS
DX12 Top Level Acceleration Structure implementation.
Implements
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12TopLevelAS : TopLevelAS, IDisposable
Constructors
DX12TopLevelAS(DX12GraphicsContext, ref TopLevelASDescription)
Initializes a new instance of the DX12TopLevelAS class.
Declaration
public DX12TopLevelAS(DX12GraphicsContext context, ref TopLevelASDescription description)
Parameters
Type | Name | Description |
---|---|---|
DX12GraphicsContext | context | DirectX12 Context. |
TopLevelASDescription | description | Top Level Description. |
Fields
ResultBuffer
DX12 Acceleration Structure Result buffer.
Declaration
public ID3D12Resource ResultBuffer
Field Value
Type | Description |
---|---|
ID3D12Resource |
Properties
AccelerationStructureView
Gets the shader resource view.
Declaration
public CpuDescriptorHandle AccelerationStructureView { get; }
Property Value
Type | Description |
---|---|
CpuDescriptorHandle |
NativePointer
Gets the native pointer.
Declaration
public override IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Overrides
Methods
Dispose()
Dispose this instance.
Declaration
public override void Dispose()
Overrides
UpdateAccelerationStructure(ref TopLevelASDescription)
Initializes a new instance of the DX12TopLevelAS class.
Declaration
public void UpdateAccelerationStructure(ref TopLevelASDescription description)
Parameters
Type | Name | Description |
---|---|---|
TopLevelASDescription | description | New top level description. |