Package org.lwjgl.vulkan
Class VkWaylandSurfaceCreateInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkWaylandSurfaceCreateInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkWaylandSurfaceCreateInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created Wayland surface object.Valid Usage
displaymust point to a valid Waylandwl_display.surfacemust point to a valid Waylandwl_surface.
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– reserved for future use.display–displayandsurfaceare pointers to the Waylandwl_displayandwl_surfaceto associate the surface with.surface– seedisplay
Layout
struct VkWaylandSurfaceCreateInfoKHR { VkStructureType sType; void const * pNext; VkWaylandSurfaceCreateFlagsKHR flags; struct wl_display * display; struct wl_surface * surface; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkWaylandSurfaceCreateInfoKHR.BufferAn array ofVkWaylandSurfaceCreateInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkWaylandSurfaceCreateInfoKHR(java.nio.ByteBuffer container)Creates aVkWaylandSurfaceCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkWaylandSurfaceCreateInfoKHRcalloc()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withmemCalloc.static VkWaylandSurfaceCreateInfoKHR.Buffercalloc(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc.static VkWaylandSurfaceCreateInfoKHRcallocStack()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR.BuffercallocStack(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHRcreate()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withBufferUtils.static VkWaylandSurfaceCreateInfoKHR.Buffercreate(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.static VkWaylandSurfaceCreateInfoKHRcreate(long address)Returns a newVkWaylandSurfaceCreateInfoKHRinstance for the specified memory address.static VkWaylandSurfaceCreateInfoKHR.Buffercreate(long address, int capacity)Create aVkWaylandSurfaceCreateInfoKHR.Bufferinstance at the specified memory.static VkWaylandSurfaceCreateInfoKHRcreateSafe(long address)static VkWaylandSurfaceCreateInfoKHR.BuffercreateSafe(long address, int capacity)longdisplay()Returns the value of thedisplayfield.VkWaylandSurfaceCreateInfoKHRdisplay(long value)Sets the specified value to thedisplayfield.intflags()Returns the value of theflagsfield.VkWaylandSurfaceCreateInfoKHRflags(int value)Sets the specified value to theflagsfield.static VkWaylandSurfaceCreateInfoKHRmalloc()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withmemAlloc.static VkWaylandSurfaceCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkWaylandSurfaceCreateInfoKHRmallocStack()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStack.static VkWaylandSurfaceCreateInfoKHR.BuffermallocStack(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkWaylandSurfaceCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkWaylandSurfaceCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.static longndisplay(long struct)Unsafe version ofdisplay().static voidndisplay(long struct, long value)Unsafe version ofdisplay.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static longnsurface(long struct)Unsafe version ofsurface().static voidnsurface(long struct, long value)Unsafe version ofsurface.longpNext()Returns the value of thepNextfield.VkWaylandSurfaceCreateInfoKHRpNext(long value)Sets the specified value to thepNextfield.VkWaylandSurfaceCreateInfoKHRset(int sType, long pNext, int flags, long display, long surface)Initializes this struct with the specified values.VkWaylandSurfaceCreateInfoKHRset(VkWaylandSurfaceCreateInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkWaylandSurfaceCreateInfoKHRsType(int value)Sets the specified value to thesTypefield.longsurface()Returns the value of thesurfacefield.VkWaylandSurfaceCreateInfoKHRsurface(long value)Sets the specified value to thesurfacefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkWaylandSurfaceCreateInfoKHR
public VkWaylandSurfaceCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkWaylandSurfaceCreateInfoKHRinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
display
public long display()
Returns the value of thedisplayfield.
-
surface
public long surface()
Returns the value of thesurfacefield.
-
sType
public VkWaylandSurfaceCreateInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkWaylandSurfaceCreateInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkWaylandSurfaceCreateInfoKHR flags(int value)
Sets the specified value to theflagsfield.
-
display
public VkWaylandSurfaceCreateInfoKHR display(long value)
Sets the specified value to thedisplayfield.
-
surface
public VkWaylandSurfaceCreateInfoKHR surface(long value)
Sets the specified value to thesurfacefield.
-
set
public VkWaylandSurfaceCreateInfoKHR set(int sType, long pNext, int flags, long display, long surface)
Initializes this struct with the specified values.
-
set
public VkWaylandSurfaceCreateInfoKHR set(VkWaylandSurfaceCreateInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkWaylandSurfaceCreateInfoKHR malloc()
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkWaylandSurfaceCreateInfoKHR calloc()
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkWaylandSurfaceCreateInfoKHR create()
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withBufferUtils.
-
create
public static VkWaylandSurfaceCreateInfoKHR create(long address)
Returns a newVkWaylandSurfaceCreateInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkWaylandSurfaceCreateInfoKHR createSafe(long address)
-
malloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkWaylandSurfaceCreateInfoKHR.Buffer create(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkWaylandSurfaceCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkWaylandSurfaceCreateInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkWaylandSurfaceCreateInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkWaylandSurfaceCreateInfoKHR mallocStack()
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR callocStack()
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkWaylandSurfaceCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkWaylandSurfaceCreateInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkWaylandSurfaceCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
ndisplay
public static long ndisplay(long struct)
Unsafe version ofdisplay().
-
nsurface
public static long nsurface(long struct)
Unsafe version ofsurface().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
ndisplay
public static void ndisplay(long struct, long value)Unsafe version ofdisplay.
-
nsurface
public static void nsurface(long struct, long value)Unsafe version ofsurface.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-