Class DX12TopLevelAS
Implementation of the DX12 Top-Level Acceleration Structure.
Inherited Members
Namespace: Evergine.DirectX12
Assembly: Evergine.DirectX12.dll
Syntax
public class DX12TopLevelAS : TopLevelAS
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 | DirectX 12 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 nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Overrides
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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. |