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

60 lines
2.6 KiB
C#

using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Win32
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMemoryWin32HandleInfoKHR.html">VkExportMemoryWin32HandleInfoKHR</see> - Structure specifying additional attributes of Windows handles exported from a memory
/// </summary>
/// <remarks>
/// <para>
/// To specify additional attributes of NT handles exported from a memory
/// object, add a <c>VkExportMemoryWin32HandleInfoKHR</c> structure to the
/// <c>pNext</c> chain of the <c>VkMemoryAllocateInfo</c> structure.
/// The <c>VkExportMemoryWin32HandleInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_external_memory_win32
/// typedef struct VkExportMemoryWin32HandleInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// const SECURITY_ATTRIBUTES* pAttributes;
/// DWORD dwAccess;
/// LPCWSTR name;
/// } VkExportMemoryWin32HandleInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 40)]
[SupportedOSPlatform("windows")]
public unsafe partial struct VkExportMemoryWin32HandleInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMemoryWin32HandleInfoKHR;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Attributes</c> is a pointer to a Windows <c>SECURITY_ATTRIBUTES</c> structure specifying security attributes of the handle.
/// </summary>
[FieldOffset(16)]
public void* Attributes;
/// <summary>
/// <c>DwAccess</c> is a <c>DWORD</c> specifying access rights of the handle.
/// </summary>
[FieldOffset(24)]
public int DwAccess;
/// <summary>
/// <c>Name</c> is a null-terminated UTF-16 string to associate with the payload referenced by NT handles exported from the created memory.
/// </summary>
[FieldOffset(32)]
public char* Name;
}
}