mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -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<MTLBuffer>` 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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue