Class VkMetalSurfaceCreateInfoEXT

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkMetalSurfaceCreateInfoEXT
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created Metal surface object.
    Description
    Valid Usage (Implicit)
    See Also

    CreateMetalSurfaceEXT

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • pLayer – a reference to a CAMetalLayer object that represents a renderable surface.

    Layout

    
     struct VkMetalSurfaceCreateInfoEXT {
         VkStructureType sType;
         void const * pNext;
         VkMetalSurfaceCreateFlagsEXT flags;
         CAMetalLayer const * pLayer;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, PLAYER

        The struct member offsets.
    • Constructor Detail

      • VkMetalSurfaceCreateInfoEXT

        public VkMetalSurfaceCreateInfoEXT​(java.nio.ByteBuffer container)
        Creates a VkMetalSurfaceCreateInfoEXT 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 Detail

      • sizeof

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

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • pLayer

        public org.lwjgl.PointerBuffer pLayer​(int capacity)
        Returns a PointerBuffer view of the data pointed to by the pLayer field.
        Parameters:
        capacity - the number of elements in the returned buffer
      • pLayer

        public VkMetalSurfaceCreateInfoEXT pLayer​(org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the pLayer field.
      • set

        public VkMetalSurfaceCreateInfoEXT set​(int sType,
                                               long pNext,
                                               int flags,
                                               org.lwjgl.PointerBuffer pLayer)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static VkMetalSurfaceCreateInfoEXT create​(long address)
        Returns a new VkMetalSurfaceCreateInfoEXT instance for the specified memory address.
      • mallocStack

        public static VkMetalSurfaceCreateInfoEXT mallocStack()
        Returns a new VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkMetalSurfaceCreateInfoEXT callocStack()
        Returns a new VkMetalSurfaceCreateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkMetalSurfaceCreateInfoEXT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkMetalSurfaceCreateInfoEXT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

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

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

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

        public static int nflags​(long struct)
        Unsafe version of flags().
      • npLayer

        public static org.lwjgl.PointerBuffer npLayer​(long struct,
                                                      int capacity)
        Unsafe version of pLayer.
      • 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.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • npLayer

        public static void npLayer​(long struct,
                                   org.lwjgl.PointerBuffer value)
        Unsafe version of pLayer.
      • validate

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

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array