Class VkExportMetalDeviceInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkExportMetalDeviceInfoEXT>
org.lwjgl.vulkan.VkExportMetalDeviceInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkExportMetalDeviceInfoEXT extends org.lwjgl.system.Struct<VkExportMetalDeviceInfoEXT> implements org.lwjgl.system.NativeResource
Structure that identifies a VkDevice object and corresponding Metal MTLDevice object.
Valid Usage (Implicit)

Layout


 struct VkExportMetalDeviceInfoEXT {
     VkStructureType sType();
     void const * pNext();
     MTLDevice_id mtlDevice();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • MTLDEVICE

      public static final int MTLDEVICE
      The struct member offsets.
  • Constructor Details

    • VkExportMetalDeviceInfoEXT

      public VkExportMetalDeviceInfoEXT(ByteBuffer container)
      Creates a VkExportMetalDeviceInfoEXT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkExportMetalDeviceInfoEXT>
    • sType

      public int sType()
      a VkStructureType value identifying this structure.
    • pNext

      public long pNext()
      NULL or a pointer to a structure extending this structure.
    • mtlDevice

      public long mtlDevice()
      the Metal id&lt;MTLDevice&gt; object underlying the VkPhysicalDevice associated with the VkDevice object identified in the call. The implementation will return the MTLDevice in this member, or it will return NULL if no MTLDevice could be found underlying the VkPhysicalDevice object.
    • sType

      public VkExportMetalDeviceInfoEXT sType(int value)
      Sets the specified value to the sType() field.
    • sType$Default

      public VkExportMetalDeviceInfoEXT sType$Default()
    • pNext

      public VkExportMetalDeviceInfoEXT pNext(long value)
      Sets the specified value to the pNext() field.
    • mtlDevice

      public VkExportMetalDeviceInfoEXT mtlDevice(long value)
      Sets the specified value to the mtlDevice() field.
    • set

      public VkExportMetalDeviceInfoEXT set(int sType, long pNext, long mtlDevice)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkExportMetalDeviceInfoEXT malloc()
      Returns a new VkExportMetalDeviceInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkExportMetalDeviceInfoEXT calloc()
      Returns a new VkExportMetalDeviceInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkExportMetalDeviceInfoEXT create()
      Returns a new VkExportMetalDeviceInfoEXT instance allocated with BufferUtils.
    • create

      public static VkExportMetalDeviceInfoEXT create(long address)
      Returns a new VkExportMetalDeviceInfoEXT instance for the specified memory address.
    • createSafe

      public static @Nullable VkExportMetalDeviceInfoEXT createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkExportMetalDeviceInfoEXT.Buffer malloc(int capacity)
      Returns a new VkExportMetalDeviceInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkExportMetalDeviceInfoEXT.Buffer calloc(int capacity)
      Returns a new VkExportMetalDeviceInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkExportMetalDeviceInfoEXT.Buffer create(int capacity)
      Returns a new VkExportMetalDeviceInfoEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkExportMetalDeviceInfoEXT.Buffer create(long address, int capacity)
      Create a VkExportMetalDeviceInfoEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkExportMetalDeviceInfoEXT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkExportMetalDeviceInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkExportMetalDeviceInfoEXT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkExportMetalDeviceInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkExportMetalDeviceInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkExportMetalDeviceInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkExportMetalDeviceInfoEXT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkExportMetalDeviceInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkExportMetalDeviceInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • nmtlDevice

      public static long nmtlDevice(long struct)
      Unsafe version of mtlDevice().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • nmtlDevice

      public static void nmtlDevice(long struct, long value)
      Unsafe version of mtlDevice.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate