Class VKRaytracingHelpers
Raytracing helpers.
Inherited Members
Namespace: Evergine.Vulkan
Assembly: Evergine.Vulkan.dll
Syntax
public static class VKRaytracingHelpers
Methods
CreateBuffer(VKGraphicsContext, ulong, VkBufferUsageFlags)
Create 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, IntPtr, ulong, VkBufferUsageFlags)
Create a stagging buffer from data.
Declaration
public static VKRaytracingHelpers.BufferData CreateMappedBuffer(VKGraphicsContext context, IntPtr data, ulong bufferSize, VkBufferUsageFlags usage)
Parameters
Type | Name | Description |
---|---|---|
VKGraphicsContext | context | The vulkan context. |
IntPtr | data | The source data pointer. |
ulong | bufferSize | The buffer size. |
VkBufferUsageFlags | usage | The buffer usage. |
Returns
Type | Description |
---|---|
VKRaytracingHelpers.BufferData | The buffer memory address. |