Class VkXlibSurfaceCreateInfoKHR

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

    public class VkXlibSurfaceCreateInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created Xlib surface object.
    Valid Usage
    • dpy must point to a valid Xlib Display.
    • window must be a valid Xlib Window.
    Valid Usage (Implicit)
    See Also

    CreateXlibSurfaceKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – reserved for future use.
    • dpy – a pointer to an Xlib Display connection to the X server.
    • window – an Xlib Window to associate the surface with.

    Layout

    
     struct VkXlibSurfaceCreateInfoKHR {
         VkStructureType sType;
         void const * pNext;
         VkXlibSurfaceCreateFlagsKHR flags;
         Display * dpy;
         Window window;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, DPY, WINDOW

        The struct member offsets.
    • Constructor Detail

      • VkXlibSurfaceCreateInfoKHR

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

        public long dpy()
        Returns the value of the dpy field.
      • window

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

        public VkXlibSurfaceCreateInfoKHR set​(int sType,
                                              long pNext,
                                              int flags,
                                              long dpy,
                                              long window)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static long ndpy​(long struct)
        Unsafe version of dpy().
      • nwindow

        public static long nwindow​(long struct)
        Unsafe version of window().
      • 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.
      • ndpy

        public static void ndpy​(long struct,
                                long value)
        Unsafe version of dpy.
      • nwindow

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