Class VkWin32SurfaceCreateInfoKHR

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

    public class VkWin32SurfaceCreateInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created Win32 surface object.
    Valid Usage
    • hinstance must be a valid Win32 HINSTANCE.
    • hwnd must be a valid Win32 HWND.
    Valid Usage (Implicit)
    See Also

    CreateWin32SurfaceKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • hinstance – the Win32 HINSTANCE for the window to associate the surface with.
    • hwnd – the Win32 HWND for the window to associate the surface with.

    Layout

    
     struct VkWin32SurfaceCreateInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkWin32SurfaceCreateFlagsKHR flags;
         HINSTANCE hinstance;
         HWND hwnd;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, HINSTANCE, HWND

        The struct member offsets.
    • Constructor Detail

      • VkWin32SurfaceCreateInfoKHR

        public VkWin32SurfaceCreateInfoKHR​(java.nio.ByteBuffer container)
        Creates a VkWin32SurfaceCreateInfoKHR 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.
      • hinstance

        public long hinstance()
        Returns the value of the hinstance field.
      • hwnd

        public long hwnd()
        Returns the value of the hwnd field.
      • set

        public VkWin32SurfaceCreateInfoKHR set​(int sType,
                                               long pNext,
                                               int flags,
                                               long hinstance,
                                               long hwnd)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

        public static VkWin32SurfaceCreateInfoKHR.Buffer callocStack​(int capacity,
                                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new VkWin32SurfaceCreateInfoKHR.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().
      • nhinstance

        public static long nhinstance​(long struct)
        Unsafe version of hinstance().
      • nhwnd

        public static long nhwnd​(long struct)
        Unsafe version of hwnd().
      • 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.
      • nhinstance

        public static void nhinstance​(long struct,
                                      long value)
        Unsafe version of hinstance.
      • nhwnd

        public static void nhwnd​(long struct,
                                 long value)
        Unsafe version of hwnd.
      • 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