Class VKRaytracingHelpers
Ray tracing helpers.
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public static class VKRaytracingHelpers
Methods
CreateBuffer(VKGraphicsContext, ulong, VkBufferUsageFlags)
Creates an Acceleration Structure buffer.
Declaration
public static VKRaytracingHelpers.BufferData CreateBuffer(VKGraphicsContext context, ulong bufferSize, VkBufferUsageFlags usage)
Parameters
Type | Name | Description |
---|---|---|
VKGraphicsContext | context | The Vulkan context. |
ulong | bufferSize | The buffer size. |
VkBufferUsageFlags | usage | The buffer usage. |
Returns
Type | Description |
---|---|
VKRaytracingHelpers.BufferData | The buffer memory address. |
CreateMappedBuffer(VKGraphicsContext, nint, ulong, VkBufferUsageFlags)
Creates a staging buffer from data.
Declaration
public static VKRaytracingHelpers.BufferData CreateMappedBuffer(VKGraphicsContext context, nint data, ulong bufferSize, VkBufferUsageFlags usage)
Parameters
Type | Name | Description |
---|---|---|
VKGraphicsContext | context | The Vulkan context. |
nint | data | The source data pointer. |
ulong | bufferSize | The buffer size. |
VkBufferUsageFlags | usage | The buffer usage. |
Returns
Type | Description |
---|---|
VKRaytracingHelpers.BufferData | The buffer memory address. |