Class VKTopLevelAS
Implementation of Vulkan Top-Level Acceleration Structure.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public class VKTopLevelAS : TopLevelAS
Constructors
VKTopLevelAS(VKGraphicsContext, VkCommandBuffer, ref TopLevelASDescription)
Initializes a new instance of the VKTopLevelAS class.
Declaration
public VKTopLevelAS(VKGraphicsContext context, VkCommandBuffer commandBuffer, ref TopLevelASDescription description)
Parameters
Type | Name | Description |
---|---|---|
VKGraphicsContext | context | DirectX 12 context. |
VkCommandBuffer | commandBuffer | Command buffer. |
TopLevelASDescription | description | Top-level description. |
Fields
TopLevelAS
The top-level acceleration structure instance.
Declaration
public VkAccelerationStructureKHR TopLevelAS
Field Value
Type | Description |
---|---|
VkAccelerationStructureKHR |
Properties
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(VkCommandBuffer, ref TopLevelASDescription)
Initializes a new instance of the VKTopLevelAS class.
Declaration
public void UpdateAccelerationStructure(VkCommandBuffer commandBuffer, ref TopLevelASDescription description)
Parameters
Type | Name | Description |
---|---|---|
VkCommandBuffer | commandBuffer | Command buffer instance. |
TopLevelASDescription | description | New top-level description. |