Class VkImportMetalIOSurfaceInfoEXT

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

public class VkImportMetalIOSurfaceInfoEXT extends org.lwjgl.system.Struct<VkImportMetalIOSurfaceInfoEXT> implements org.lwjgl.system.NativeResource
Structure that identifies a VkImage object and corresponding Metal IOSurfaceRef object to use.
Description

If ioSurface is not NULL_HANDLE, it will be used to underlie the VkImage. If ioSurface is NULL_HANDLE, the implementation will create a new IOSurface to underlie the VkImage.

If provided, the application must ensure that the configuration of the IOSurfaceRef object is compatible with the configuration of the VkImage. Failure to do so results in undefined behavior.

Valid Usage (Implicit)

Layout


 struct VkImportMetalIOSurfaceInfoEXT {
     VkStructureType sType();
     void const * pNext();
     IOSurfaceRef ioSurface();
 }
  • 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.
    • IOSURFACE

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

    • VkImportMetalIOSurfaceInfoEXT

      public VkImportMetalIOSurfaceInfoEXT(ByteBuffer container)
      Creates a VkImportMetalIOSurfaceInfoEXT 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