This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37
1486 changed files with 784842 additions and 0 deletions

View file

@ -0,0 +1,97 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidHardwareBufferFormatProperties2ANDROID.html">VkAndroidHardwareBufferFormatProperties2ANDROID</see> - Structure describing the image format properties of an Android hardware buffer
/// </summary>
/// <remarks>
/// <para>
/// The format properties of an Android hardware buffer <i>can</i> be obtained by
/// including a <c>VkAndroidHardwareBufferFormatProperties2ANDROID</c> structure
/// in the <c>pNext</c> chain of the
/// <c>VkAndroidHardwareBufferPropertiesANDROID</c> structure passed to
/// <c>vkGetAndroidHardwareBufferPropertiesANDROID</c>.
/// This structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_memory_android_hardware_buffer with VK_KHR_format_feature_flags2 or VK_VERSION_1_3
/// typedef struct VkAndroidHardwareBufferFormatProperties2ANDROID {
/// VkStructureType sType;
/// void* pNext;
/// VkFormat format;
/// uint64_t externalFormat;
/// VkFormatFeatureFlags2 formatFeatures;
/// VkComponentMapping samplerYcbcrConversionComponents;
/// VkSamplerYcbcrModelConversion suggestedYcbcrModel;
/// VkSamplerYcbcrRange suggestedYcbcrRange;
/// VkChromaLocation suggestedXChromaOffset;
/// VkChromaLocation suggestedYChromaOffset;
/// } VkAndroidHardwareBufferFormatProperties2ANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 72)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidHardwareBufferFormatProperties2ANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferFormatProperties2ANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Format</c> is the Vulkan format corresponding to the Android hardware buffer&apos;s format, or <c>VK_FORMAT_UNDEFINED</c> if there is not an equivalent Vulkan format.
/// </summary>
[FieldOffset(16)]
public VkFormat Format;
/// <summary>
/// <c>ExternalFormat</c> is an implementation-defined external format identifier for use with <c>VkExternalFormatANDROID</c>. It <i>must</i> not be zero.
/// </summary>
[FieldOffset(24)]
public nint ExternalFormat;
/// <summary>
/// <c>FormatFeatures</c> describes the capabilities of this external format when used with an image bound to memory imported from <c>buffer</c>.
/// </summary>
[FieldOffset(32)]
public VkFormatFeatureFlags2 FormatFeatures;
/// <summary>
/// <c>SamplerYcbcrConversionComponents</c> is the component swizzle that <i>should</i> be used in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(40)]
public VkComponentMapping SamplerYcbcrConversionComponents;
/// <summary>
/// <c>SuggestedYcbcrModel</c> is a suggested color model to use in the <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(56)]
public VkSamplerYCbCrModelConversion SuggestedYcbcrModel;
/// <summary>
/// <c>SuggestedYcbcrRange</c> is a suggested numerical value range to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(60)]
public VkSamplerYCbCrRange SuggestedYcbcrRange;
/// <summary>
/// <c>SuggestedXChromaOffset</c> is a suggested X chroma offset to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(64)]
public VkChromaLocation SuggestedXChromaOffset;
/// <summary>
/// <c>SuggestedYChromaOffset</c> is a suggested Y chroma offset to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(68)]
public VkChromaLocation SuggestedYChromaOffset;
}
}

View file

@ -0,0 +1,96 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidHardwareBufferFormatPropertiesANDROID.html">VkAndroidHardwareBufferFormatPropertiesANDROID</see> - Structure describing the image format properties of an Android hardware buffer
/// </summary>
/// <remarks>
/// <para>
/// To obtain format properties of an Android hardware buffer, include a
/// <c>VkAndroidHardwareBufferFormatPropertiesANDROID</c> structure in the
/// <c>pNext</c> chain of the <c>VkAndroidHardwareBufferPropertiesANDROID</c>
/// structure passed to <c>vkGetAndroidHardwareBufferPropertiesANDROID</c>.
/// This structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_memory_android_hardware_buffer
/// typedef struct VkAndroidHardwareBufferFormatPropertiesANDROID {
/// VkStructureType sType;
/// void* pNext;
/// VkFormat format;
/// uint64_t externalFormat;
/// VkFormatFeatureFlags formatFeatures;
/// VkComponentMapping samplerYcbcrConversionComponents;
/// VkSamplerYcbcrModelConversion suggestedYcbcrModel;
/// VkSamplerYcbcrRange suggestedYcbcrRange;
/// VkChromaLocation suggestedXChromaOffset;
/// VkChromaLocation suggestedYChromaOffset;
/// } VkAndroidHardwareBufferFormatPropertiesANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 72)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidHardwareBufferFormatPropertiesANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferFormatPropertiesANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Format</c> is the Vulkan format corresponding to the Android hardware buffer&apos;s format, or <c>VK_FORMAT_UNDEFINED</c> if there is not an equivalent Vulkan format.
/// </summary>
[FieldOffset(16)]
public VkFormat Format;
/// <summary>
/// <c>ExternalFormat</c> is an implementation-defined external format identifier for use with <c>VkExternalFormatANDROID</c>. It <i>must</i> not be zero.
/// </summary>
[FieldOffset(24)]
public nint ExternalFormat;
/// <summary>
/// <c>FormatFeatures</c> describes the capabilities of this external format when used with an image bound to memory imported from <c>buffer</c>.
/// </summary>
[FieldOffset(32)]
public VkFormatFeatureFlags FormatFeatures;
/// <summary>
/// <c>SamplerYcbcrConversionComponents</c> is the component swizzle that <i>should</i> be used in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(36)]
public VkComponentMapping SamplerYcbcrConversionComponents;
/// <summary>
/// <c>SuggestedYcbcrModel</c> is a suggested color model to use in the <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(52)]
public VkSamplerYCbCrModelConversion SuggestedYcbcrModel;
/// <summary>
/// <c>SuggestedYcbcrRange</c> is a suggested numerical value range to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(56)]
public VkSamplerYCbCrRange SuggestedYcbcrRange;
/// <summary>
/// <c>SuggestedXChromaOffset</c> is a suggested X chroma offset to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(60)]
public VkChromaLocation SuggestedXChromaOffset;
/// <summary>
/// <c>SuggestedYChromaOffset</c> is a suggested Y chroma offset to use in <c>VkSamplerYcbcrConversionCreateInfo</c>.
/// </summary>
[FieldOffset(64)]
public VkChromaLocation SuggestedYChromaOffset;
}
}

View file

@ -0,0 +1,44 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidHardwareBufferFormatResolvePropertiesANDROID.html">VkAndroidHardwareBufferFormatResolvePropertiesANDROID</see> - Structure defining properties of resolves using an external format
/// </summary>
/// <remarks>
/// <para>
/// The <c>VkAndroidHardwareBufferFormatResolvePropertiesANDROID</c> structure is
/// defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_format_resolve
/// typedef struct VkAndroidHardwareBufferFormatResolvePropertiesANDROID {
/// VkStructureType sType;
/// void* pNext;
/// VkFormat colorAttachmentFormat;
/// } VkAndroidHardwareBufferFormatResolvePropertiesANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidHardwareBufferFormatResolvePropertiesANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferFormatResolvePropertiesANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>ColorAttachmentFormat</c> is a <c>VkFormat</c> specifying the format of color attachment images that <i>must</i> be used for color attachments when resolving to the specified external format. If the implementation supports external format resolves for the specified external format, this value will be a color format supporting the <c>VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT</c> in <c>VkFormatProperties::optimalTilingFeatures</c> as returned by <c>vkGetPhysicalDeviceFormatProperties</c> with <c>format</c> equal to <c>colorAttachmentFormat</c> If external format resolves are not supported, this value will be <c>VK_FORMAT_UNDEFINED</c>.
/// </summary>
[FieldOffset(16)]
public VkFormat ColorAttachmentFormat;
}
}

View file

@ -0,0 +1,51 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidHardwareBufferPropertiesANDROID.html">VkAndroidHardwareBufferPropertiesANDROID</see> - Properties of External Memory Android Hardware Buffers
/// </summary>
/// <remarks>
/// <para>
/// The <c>VkAndroidHardwareBufferPropertiesANDROID</c> structure returned is
/// defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_memory_android_hardware_buffer
/// typedef struct VkAndroidHardwareBufferPropertiesANDROID {
/// VkStructureType sType;
/// void* pNext;
/// VkDeviceSize allocationSize;
/// uint32_t memoryTypeBits;
/// } VkAndroidHardwareBufferPropertiesANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidHardwareBufferPropertiesANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferPropertiesANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>AllocationSize</c> is the size of the external memory
/// </summary>
[FieldOffset(16)]
public ByteSize64 AllocationSize;
/// <summary>
/// <c>MemoryTypeBits</c> is a bitmask containing one bit set for every memory type which the specified Android hardware buffer <i>can</i> be imported as.
/// </summary>
[FieldOffset(24)]
public int MemoryTypeBits;
}
}

View file

@ -0,0 +1,47 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidHardwareBufferUsageANDROID.html">VkAndroidHardwareBufferUsageANDROID</see> - Struct containing Android hardware buffer usage flags
/// </summary>
/// <remarks>
/// <para>
/// To obtain optimal Android hardware buffer usage flags for specific image
/// creation parameters, add a <c>VkAndroidHardwareBufferUsageANDROID</c>
/// structure to the <c>pNext</c> chain of a <c>VkImageFormatProperties2</c>
/// structure passed to <c>vkGetPhysicalDeviceImageFormatProperties2</c>.
/// This structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_memory_android_hardware_buffer
/// typedef struct VkAndroidHardwareBufferUsageANDROID {
/// VkStructureType sType;
/// void* pNext;
/// uint64_t androidHardwareBufferUsage;
/// } VkAndroidHardwareBufferUsageANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidHardwareBufferUsageANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferUsageANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>AndroidHardwareBufferUsage</c> returns the Android hardware buffer usage flags.
/// </summary>
[FieldOffset(16)]
public nint AndroidHardwareBufferUsage;
}
}

View file

@ -0,0 +1,50 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkAndroidSurfaceCreateInfoKHR.html">VkAndroidSurfaceCreateInfoKHR</see> - Structure specifying parameters of a newly created Android surface object
/// </summary>
/// <remarks>
/// <para>
/// The <c>VkAndroidSurfaceCreateInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_android_surface
/// typedef struct VkAndroidSurfaceCreateInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// VkAndroidSurfaceCreateFlagsKHR flags;
/// struct ANativeWindow* window;
/// } VkAndroidSurfaceCreateInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkAndroidSurfaceCreateInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ANDROIDSurfaceCreateInfoKHR;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Flags</c> is reserved for future use.
/// </summary>
[FieldOffset(16)]
public VkAndroidSurfaceCreateFlagsKHR Flags;
/// <summary>
/// <c>Window</c> is a pointer to the basetype:ANativeWindow to associate the surface with.
/// </summary>
[FieldOffset(24)]
public void* Window;
}
}

View file

@ -0,0 +1,68 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Win32
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkD3D12FenceSubmitInfoKHR.html">VkD3D12FenceSubmitInfoKHR</see> - Structure specifying values for Direct3D 12 fence-backed semaphores
/// </summary>
/// <remarks>
/// <para>
/// To specify the values to use when waiting for and signaling semaphores whose
/// <see href="https://registry.khronos.org/vulkan/specs/latest/html/vkspec.html#synchronization-semaphores-importing">current payload^</see> refers to a
/// Direct3D 12 fence, add a <c>VkD3D12FenceSubmitInfoKHR</c> structure to the
/// <c>pNext</c> chain of the <c>VkSubmitInfo</c> structure.
/// The <c>VkD3D12FenceSubmitInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_external_semaphore_win32
/// typedef struct VkD3D12FenceSubmitInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// uint32_t waitSemaphoreValuesCount;
/// const uint64_t* pWaitSemaphoreValues;
/// uint32_t signalSemaphoreValuesCount;
/// const uint64_t* pSignalSemaphoreValues;
/// } VkD3D12FenceSubmitInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 48)]
[SupportedOSPlatform("windows")]
public unsafe partial struct VkD3D12FenceSubmitInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.D3D12FenceSubmitInfoKHR;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>WaitSemaphoreValuesCount</c> is the number of semaphore wait values specified in <c>pWaitSemaphoreValues</c>.
/// </summary>
[FieldOffset(16)]
public int WaitSemaphoreValuesCount;
/// <summary>
/// <c>WaitSemaphoreValues</c> is a pointer to an array of <c>waitSemaphoreValuesCount</c> values for the corresponding semaphores in <c>VkSubmitInfo::pWaitSemaphores</c> to wait for.
/// </summary>
[FieldOffset(24)]
public nint* WaitSemaphoreValues;
/// <summary>
/// <c>SignalSemaphoreValuesCount</c> is the number of semaphore signal values specified in <c>pSignalSemaphoreValues</c>.
/// </summary>
[FieldOffset(32)]
public int SignalSemaphoreValuesCount;
/// <summary>
/// <c>SignalSemaphoreValues</c> is a pointer to an array of <c>signalSemaphoreValuesCount</c> values for the corresponding semaphores in <c>VkSubmitInfo::pSignalSemaphores</c> to set when signaled.
/// </summary>
[FieldOffset(40)]
public nint* SignalSemaphoreValues;
}
}

View file

@ -0,0 +1,60 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Win32
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportFenceWin32HandleInfoKHR.html">VkExportFenceWin32HandleInfoKHR</see> - Structure specifying additional attributes of Windows handles exported from a fence
/// </summary>
/// <remarks>
/// <para>
/// To specify additional attributes of NT handles exported from a fence, add a
/// <c>VkExportFenceWin32HandleInfoKHR</c> structure to the <c>pNext</c> chain of
/// the <c>VkFenceCreateInfo</c> structure.
/// The <c>VkExportFenceWin32HandleInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_external_fence_win32
/// typedef struct VkExportFenceWin32HandleInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// const SECURITY_ATTRIBUTES* pAttributes;
/// DWORD dwAccess;
/// LPCWSTR name;
/// } VkExportFenceWin32HandleInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 40)]
[SupportedOSPlatform("windows")]
public unsafe partial struct VkExportFenceWin32HandleInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportFenceWin32HandleInfoKHR;
/// <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 underlying synchronization primitive referenced by NT handles exported from the created fence.
/// </summary>
[FieldOffset(32)]
public char* Name;
}
}

View file

@ -0,0 +1,60 @@
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;
}
}

View file

@ -0,0 +1,57 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Win32
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMemoryWin32HandleInfoNV.html">VkExportMemoryWin32HandleInfoNV</see> - Specify security attributes and access rights for Win32 memory handles
/// </summary>
/// <remarks>
/// <para>
/// When <c>VkExportMemoryAllocateInfoNV::handleTypes</c> includes
/// <c>VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_NV</c>, add a
/// <c>VkExportMemoryWin32HandleInfoNV</c> structure to the <c>pNext</c> chain of
/// the <c>VkExportMemoryAllocateInfoNV</c> structure to specify security
/// attributes and access rights for the memory object&apos;s external handle.
/// </para>
/// <para>
/// The <c>VkExportMemoryWin32HandleInfoNV</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_NV_external_memory_win32
/// typedef struct VkExportMemoryWin32HandleInfoNV {
/// VkStructureType sType;
/// const void* pNext;
/// const SECURITY_ATTRIBUTES* pAttributes;
/// DWORD dwAccess;
/// } VkExportMemoryWin32HandleInfoNV;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("windows")]
public unsafe partial struct VkExportMemoryWin32HandleInfoNV()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMemoryWin32HandleInfoNV;
/// <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;
}
}

View file

@ -0,0 +1,56 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalBufferInfoEXT.html">VkExportMetalBufferInfoEXT</see> - Structure that identifies a VkDeviceMemory object and corresponding Metal MTLBuffer object
/// </summary>
/// <remarks>
/// <para>
/// To export the Metal <c>MTLBuffer</c> object underlying a <c>VkDeviceMemory</c>
/// object, include a <c>VkExportMetalBufferInfoEXT</c> structure in the
/// <c>pNext</c> chain of the <c>pMetalObjectsInfo</c> parameter of a
/// <c>vkExportMetalObjectsEXT</c> call.
/// </para>
/// <para>
/// The <c>VkExportMetalBufferInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalBufferInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkDeviceMemory memory;
/// MTLBuffer_id mtlBuffer;
/// } VkExportMetalBufferInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalBufferInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalBufferInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Memory</c> is a <c>VkDeviceMemory</c>.
/// </summary>
[FieldOffset(16)]
public VkDeviceMemory Memory;
/// <summary>
/// <c>MtlBuffer</c> is the Metal `id&lt;MTLBuffer&gt;` object underlying the <c>VkDeviceMemory</c> object in <c>memory</c>. The implementation will return the <c>MTLBuffer</c> in this member, or it will return `NULL` if no <c>MTLBuffer</c> could be found underlying the <c>VkDeviceMemory</c> object.
/// </summary>
[FieldOffset(24)]
public nint MtlBuffer;
}
}

View file

@ -0,0 +1,56 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalCommandQueueInfoEXT.html">VkExportMetalCommandQueueInfoEXT</see> - Structure that identifies a VkQueue object and corresponding Metal MTLCommandQueue object
/// </summary>
/// <remarks>
/// <para>
/// To export the Metal <c>MTLCommandQueue</c> object underlying a <c>VkQueue</c>
/// object, include a <c>VkExportMetalCommandQueueInfoEXT</c> structure in the
/// <c>pNext</c> chain of the <c>pMetalObjectsInfo</c> parameter of a
/// <c>vkExportMetalObjectsEXT</c> call.
/// </para>
/// <para>
/// The <c>VkExportMetalCommandQueueInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalCommandQueueInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkQueue queue;
/// MTLCommandQueue_id mtlCommandQueue;
/// } VkExportMetalCommandQueueInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalCommandQueueInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalCommandQueueInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Queue</c> is a <c>VkQueue</c>.
/// </summary>
[FieldOffset(16)]
public VkQueue Queue;
/// <summary>
/// <c>MtlCommandQueue</c> is the Metal `id&lt;MTLCommandQueue&gt;` object underlying the <c>VkQueue</c> object in <c>queue</c>. The implementation will return the <c>MTLCommandQueue</c> in this member, or it will return `NULL` if no <c>MTLCommandQueue</c> could be found underlying the <c>VkQueue</c> object.
/// </summary>
[FieldOffset(24)]
public nint MtlCommandQueue;
}
}

View file

@ -0,0 +1,49 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalDeviceInfoEXT.html">VkExportMetalDeviceInfoEXT</see> - Structure that identifies a VkDevice object and corresponding Metal MTLDevice object
/// </summary>
/// <remarks>
/// <para>
/// To export the Metal <c>MTLDevice</c> object underlying the
/// <c>VkPhysicalDevice</c> associated with a <c>VkDevice</c> object, include a
/// <c>VkExportMetalDeviceInfoEXT</c> structure in the <c>pNext</c> chain of the
/// <c>pMetalObjectsInfo</c> parameter of a <c>vkExportMetalObjectsEXT</c> call.
/// </para>
/// <para>
/// The <c>VkExportMetalDeviceInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalDeviceInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// MTLDevice_id mtlDevice;
/// } VkExportMetalDeviceInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalDeviceInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalDeviceInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>MtlDevice</c> is the Metal `id&lt;MTLDevice&gt;` object underlying the <c>VkPhysicalDevice</c> associated with the <c>VkDevice</c> object identified in the call. The implementation will return the <c>MTLDevice</c> in this member, or it will return `NULL` if no <c>MTLDevice</c> could be found underlying the <c>VkPhysicalDevice</c> object.
/// </summary>
[FieldOffset(16)]
public nint MtlDevice;
}
}

View file

@ -0,0 +1,56 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalIOSurfaceInfoEXT.html">VkExportMetalIOSurfaceInfoEXT</see> - Structure that identifies a VkImage object and corresponding Metal IOSurfaceRef object
/// </summary>
/// <remarks>
/// <para>
/// To export the Metal basetype:IOSurfaceRef object underlying a <c>VkImage</c>
/// object, include a <c>VkExportMetalIOSurfaceInfoEXT</c> structure in the
/// <c>pNext</c> chain of the <c>pMetalObjectsInfo</c> parameter of a
/// <c>vkExportMetalObjectsEXT</c> call.
/// </para>
/// <para>
/// The <c>VkExportMetalIOSurfaceInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalIOSurfaceInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkImage image;
/// IOSurfaceRef ioSurface;
/// } VkExportMetalIOSurfaceInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 32)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalIOSurfaceInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalIoSurfaceInfoEXT;
/// <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 a <c>VkImage</c>.
/// </summary>
[FieldOffset(16)]
public VkImage Image;
/// <summary>
/// <c>IoSurface</c> is the Metal basetype:IOSurfaceRef object underlying the <c>VkImage</c> object in <c>image</c>. The implementation will return the basetype:IOSurfaceRef in this member, or it will return `NULL` if no basetype:IOSurfaceRef could be found underlying the <c>VkImage</c> object.
/// </summary>
[FieldOffset(24)]
public nint IoSurface;
}
}

View file

@ -0,0 +1,53 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalObjectCreateInfoEXT.html">VkExportMetalObjectCreateInfoEXT</see> - Structure that identifies the Metal objects that can be exported from Vulkan objects
/// </summary>
/// <remarks>
/// <para>
/// To export Metal objects from Vulkan objects, the application <i>must</i> first
/// indicate the intention to do so during the creation of the Vulkan object, by
/// including one or more <c>VkExportMetalObjectCreateInfoEXT</c> structures in
/// the <c>pNext</c> chain of the <c>VkInstanceCreateInfo</c>,
/// <c>VkMemoryAllocateInfo</c>, <c>VkImageCreateInfo</c>,
/// <c>VkImageViewCreateInfo</c>, <c>VkBufferViewCreateInfo</c>,
/// <c>VkSemaphoreCreateInfo</c>, or <c>VkEventCreateInfo</c>, in the
/// corresponding Vulkan object creation command.
/// </para>
/// <para>
/// The <c>VkExportMetalObjectCreateInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalObjectCreateInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkExportMetalObjectTypeFlagBitsEXT exportObjectType;
/// } VkExportMetalObjectCreateInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalObjectCreateInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalObjectCreateInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>ExportObjectType</c> is a <c>VkExportMetalObjectTypeFlagsEXT</c> indicating the type of Metal object that the application may request to be exported from the Vulkan object.
/// </summary>
[FieldOffset(16)]
public VkExportMetalObjectTypeFlagsEXT ExportObjectType;
}
}

View file

@ -0,0 +1,36 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalObjectsInfoEXT.html">VkExportMetalObjectsInfoEXT</see> - Structure whose pNext chain identifies Vulkan objects and corresponding Metal objects
/// </summary>
/// <remarks>
/// <para>
/// The <c>VkExportMetalObjectsInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalObjectsInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// } VkExportMetalObjectsInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 16)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalObjectsInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalObjectsInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
}
}

View file

@ -0,0 +1,64 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalSharedEventInfoEXT.html">VkExportMetalSharedEventInfoEXT</see> - Structure that identifies a VkSemaphore or VkEvent object and corresponding Metal MTLSharedEvent object
/// </summary>
/// <remarks>
/// <para>
/// To export the Metal <c>MTLSharedEvent</c> object underlying a
/// <c>VkSemaphore</c> or <c>VkEvent</c> object, include a
/// <c>VkExportMetalSharedEventInfoEXT</c> structure in the <c>pNext</c> chain of
/// the <c>pMetalObjectsInfo</c> parameter of a <c>vkExportMetalObjectsEXT</c>
/// call.
/// </para>
/// <para>
/// The <c>VkExportMetalSharedEventInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalSharedEventInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkSemaphore semaphore;
/// VkEvent event;
/// MTLSharedEvent_id mtlSharedEvent;
/// } VkExportMetalSharedEventInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 40)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalSharedEventInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalSharedEventInfoEXT;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>Semaphore</c> is <c>VK_NULL_HANDLE</c> or a <c>VkSemaphore</c>.
/// </summary>
[FieldOffset(16)]
public VkSemaphore Semaphore;
/// <summary>
/// <c>Event</c> is <c>VK_NULL_HANDLE</c> or a <c>VkEvent</c>.
/// </summary>
[FieldOffset(24)]
public VkEvent Event;
/// <summary>
/// <c>MtlSharedEvent</c> is the Metal `id&lt;MTLSharedEvent&gt;` object underlying the <c>VkSemaphore</c> or <c>VkEvent</c> object in <c>semaphore</c> or <c>event</c>, respectively. The implementation will return the <c>MTLSharedEvent</c> in this member, or it will return `NULL` if no <c>MTLSharedEvent</c> could be found underlying the <c>VkSemaphore</c> or <c>VkEvent</c> object.
/// </summary>
[FieldOffset(32)]
public nint MtlSharedEvent;
}
}

View file

@ -0,0 +1,77 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Metal
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportMetalTextureInfoEXT.html">VkExportMetalTextureInfoEXT</see> - Structure that identifies a VkImage, VkImageView, or VkBufferView object and corresponding Metal MTLTexture object
/// </summary>
/// <remarks>
/// <para>
/// To export a Metal <c>MTLTexture</c> object underlying a <c>VkImage</c>,
/// <c>VkImageView</c>, or <c>VkBufferView</c> object, include a
/// <c>VkExportMetalTextureInfoEXT</c> structure in the <c>pNext</c> chain of the
/// <c>pMetalObjectsInfo</c> parameter of a <c>vkExportMetalObjectsEXT</c> call.
/// </para>
/// <para>
/// The <c>VkExportMetalTextureInfoEXT</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_EXT_metal_objects
/// typedef struct VkExportMetalTextureInfoEXT {
/// VkStructureType sType;
/// const void* pNext;
/// VkImage image;
/// VkImageView imageView;
/// VkBufferView bufferView;
/// VkImageAspectFlagBits plane;
/// MTLTexture_id mtlTexture;
/// } VkExportMetalTextureInfoEXT;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 56)]
[SupportedOSPlatform("macos"), SupportedOSPlatform("ios")]
public unsafe partial struct VkExportMetalTextureInfoEXT()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportMetalTextureInfoEXT;
/// <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 <c>VkImage</c>.
/// </summary>
[FieldOffset(16)]
public VkImage Image;
/// <summary>
/// <c>ImageView</c> is <c>VK_NULL_HANDLE</c> or a <c>VkImageView</c>.
/// </summary>
[FieldOffset(24)]
public VkImageView ImageView;
/// <summary>
/// <c>BufferView</c> is <c>VK_NULL_HANDLE</c> or a <c>VkBufferView</c>.
/// </summary>
[FieldOffset(32)]
public VkBufferView BufferView;
/// <summary>
/// <c>Plane</c> specifies the plane of a multi-planar <c>VkImage</c> or <c>VkImageView</c>.
/// </summary>
[FieldOffset(40)]
public VkImageAspectFlags Plane;
/// <summary>
/// <c>MtlTexture</c> is the Metal `id&lt;MTLTexture&gt;` object underlying the <c>VkImage</c>, <c>VkImageView</c>, or <c>VkBufferView</c> object in <c>image</c>, <c>imageView</c>, or <c>bufferView</c>, respectively, at the plane indicated in <c>aspectMask</c>. The implementation will return the <c>MTLTexture</c> in this member, or it will return `NULL` if no <c>MTLTexture</c> could be found underlying the <c>VkImage</c>, <c>VkImageView</c>, or <c>VkBufferView</c> object, at the plane indicated in <c>aspectMask</c>.
/// </summary>
[FieldOffset(48)]
public nint MtlTexture;
}
}

View file

@ -0,0 +1,60 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Win32
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExportSemaphoreWin32HandleInfoKHR.html">VkExportSemaphoreWin32HandleInfoKHR</see> - Structure specifying additional attributes of Windows handles exported from a semaphore
/// </summary>
/// <remarks>
/// <para>
/// To specify additional attributes of NT handles exported from a semaphore,
/// add a <c>VkExportSemaphoreWin32HandleInfoKHR</c> structure to the <c>pNext</c>
/// chain of the <c>VkSemaphoreCreateInfo</c> structure.
/// The <c>VkExportSemaphoreWin32HandleInfoKHR</c> structure is defined as:
/// </para>
/// <code>
/// // Provided by VK_KHR_external_semaphore_win32
/// typedef struct VkExportSemaphoreWin32HandleInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// const SECURITY_ATTRIBUTES* pAttributes;
/// DWORD dwAccess;
/// LPCWSTR name;
/// } VkExportSemaphoreWin32HandleInfoKHR;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 40)]
[SupportedOSPlatform("windows")]
public unsafe partial struct VkExportSemaphoreWin32HandleInfoKHR()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExportSemaphoreWin32HandleInfoKHR;
/// <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 underlying synchronization primitive referenced by NT handles exported from the created semaphore.
/// </summary>
[FieldOffset(32)]
public char* Name;
}
}

View file

@ -0,0 +1,43 @@
using System.Runtime.Versioning;
namespace Brutal.VulkanApi.Android
{
/// <summary>
/// <see href="https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkExternalFormatANDROID.html">VkExternalFormatANDROID</see> - Structure containing an Android hardware buffer external format
/// </summary>
/// <remarks>
/// <para>
/// <c>VkExternalFormatANDROID</c> is defined as:
/// </para>
/// <code>
/// // Provided by VK_ANDROID_external_memory_android_hardware_buffer
/// typedef struct VkExternalFormatANDROID {
/// VkStructureType sType;
/// void* pNext;
/// uint64_t externalFormat;
/// } VkExternalFormatANDROID;
/// </code>
/// </remarks>
[StructLayout(LayoutKind.Explicit, Size = 24)]
[SupportedOSPlatform("android")]
public unsafe partial struct VkExternalFormatANDROID()
{
/// <summary>
/// <c>sType</c> is a <c>VkStructureType</c> value identifying this structure.
/// </summary>
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.ExternalFormatANDROID;
/// <summary>
/// <c>Next</c> is `NULL` or a pointer to a structure extending this structure.
/// </summary>
[FieldOffset(8)]
public void* Next;
/// <summary>
/// <c>ExternalFormat</c> is an implementation-defined identifier for the external format
/// </summary>
[FieldOffset(16)]
public nint ExternalFormat;
}
}

Some files were not shown because too many files have changed in this diff Show more