Class VkXcbSurfaceCreateInfoKHR

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

public class VkXcbSurfaceCreateInfoKHR extends org.lwjgl.system.Struct<VkXcbSurfaceCreateInfoKHR> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created Xcb surface object.
Valid Usage
  • connection must point to a valid X11 xcb_connection_t
  • window must be a valid X11 xcb_window_t
Valid Usage (Implicit)
See Also

CreateXcbSurfaceKHR

Layout


 struct VkXcbSurfaceCreateInfoKHR {
     VkStructureType sType();
     void const * pNext();
     VkXcbSurfaceCreateFlagsKHR flags();
     xcb_connection_t * connection();
     xcb_window_t window();
 }
  • 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.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • CONNECTION

      public static final int CONNECTION
      The struct member offsets.
    • WINDOW

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

    • VkXcbSurfaceCreateInfoKHR

      public VkXcbSurfaceCreateInfoKHR(ByteBuffer container)
      Creates a VkXcbSurfaceCreateInfoKHR 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<VkXcbSurfaceCreateInfoKHR>
    • sType

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

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

      public int flags()
      reserved for future use.
    • connection

      public long connection()
      a pointer to an xcb_connection_t to the X server.
    • window

      public int window()
      the xcb_window_t for the X11 window to associate the surface with.
    • sType

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

      public VkXcbSurfaceCreateInfoKHR sType$Default()
    • pNext

      public VkXcbSurfaceCreateInfoKHR pNext(long value)
      Sets the specified value to the pNext() field.
    • flags

      public VkXcbSurfaceCreateInfoKHR flags(int value)
      Sets the specified value to the flags() field.
    • connection

      public VkXcbSurfaceCreateInfoKHR connection(long value)
      Sets the specified value to the connection() field.
    • window

      public VkXcbSurfaceCreateInfoKHR window(int value)
      Sets the specified value to the window() field.
    • set

      public VkXcbSurfaceCreateInfoKHR set(int sType, long pNext, int flags, long connection, int window)
      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 VkXcbSurfaceCreateInfoKHR malloc()
      Returns a new VkXcbSurfaceCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkXcbSurfaceCreateInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkXcbSurfaceCreateInfoKHR.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().
    • nflags

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

      public static long nconnection(long struct)
      Unsafe version of connection().
    • nwindow

      public static int 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.
    • nconnection

      public static void nconnection(long struct, long value)
      Unsafe version of connection.
    • nwindow

      public static void nwindow(long struct, int value)
      Unsafe version of window.