brutal/Brutal.Vulkan/Generated/Structs/VkDedicatedAllocationMemoryAllocateInfoNV.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

53 lines
2.2 KiB
C#

namespace Brutal.VulkanApi
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkDedicatedAllocationMemoryAllocateInfoNV.html">VkDedicatedAllocationMemoryAllocateInfoNV</see> - Specify a dedicated memory allocation resource
/// </summary>
/// <remarks>
/// <para>
/// If the <c>pNext</c> chain includes a
/// <c>VkDedicatedAllocationMemoryAllocateInfoNV</c> structure, then that
/// structure includes a handle of the sole buffer or image resource that the
/// memory <i>can</i> be bound to.
/// </para>
/// <para>
/// The <c>VkDedicatedAllocationMemoryAllocateInfoNV</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_NV_dedicated_allocation
/// typedef struct VkDedicatedAllocationMemoryAllocateInfoNV {
/// VkStructureType sType;
/// const void* pNext;
/// VkImage image;
/// VkBuffer buffer;
/// } VkDedicatedAllocationMemoryAllocateInfoNV;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
public unsafe partial struct VkDedicatedAllocationMemoryAllocateInfoNV()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.DedicatedAllocationMemoryAllocateInfoNV;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Image</c> is <c>VK_NULL_HANDLE</c> or a handle of an image which this memory will be bound to.
/// </summary>
[FieldOffset(16)]
public VkImage Image;
/// <summary>
/// <c>Buffer</c> is <c>VK_NULL_HANDLE</c> or a handle of a buffer which this memory will be bound to.
/// </summary>
[FieldOffset(24)]
public VkBuffer Buffer;
}
}