mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,42 @@
|
|||
namespace Brutal.VulkanApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAccelerationStructureKHR.html">VkAccelerationStructureKHR</see> - Opaque handle to an acceleration structure object
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// :refpage: VkAccelerationStructureKHR
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Acceleration structures for the `<c>VK_KHR_acceleration_structure</c>
|
||||
/// extension`
|
||||
/// are represented by <c>VkAccelerationStructureKHR</c> handles:
|
||||
/// </para>
|
||||
/// <code>
|
||||
/// // Provided by VK_KHR_acceleration_structure
|
||||
/// VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkAccelerationStructureKHR)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public readonly unsafe struct VkAccelerationStructureKHR : IVulkanHandle
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public VkObjectType VkObjectType => VkObjectType.AccelerationStructureKHR;
|
||||
|
||||
/// <inheritdoc />
|
||||
public nint VkHandle { get; }
|
||||
|
||||
/// <summary>Construct from an existing pointer</summary>
|
||||
public VkAccelerationStructureKHR(nint handle)
|
||||
{
|
||||
VkHandle = handle;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public bool IsNull()
|
||||
{
|
||||
return VkHandle == 0;
|
||||
}
|
||||
|
||||
public static VkAccelerationStructureKHR NullHandle = new();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue