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.NativeResource
Structure specifying parameters of a newly created Wayland surface object.Valid Usage
display
must point to a valid Waylandwl_display
.surface
must point to a valid Waylandwl_surface
.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be 0
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– reserved for future use.display
–display
andsurface
are pointers to the Waylandwl_display
andwl_surface
to 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 class
VkWaylandSurfaceCreateInfoKHR.Buffer
An array ofVkWaylandSurfaceCreateInfoKHR
structs.
-
Constructor Summary
Constructors Constructor Description VkWaylandSurfaceCreateInfoKHR(java.nio.ByteBuffer container)
Creates aVkWaylandSurfaceCreateInfoKHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkWaylandSurfaceCreateInfoKHR
calloc()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated withmemCalloc
.static VkWaylandSurfaceCreateInfoKHR.Buffer
calloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withmemCalloc
.static VkWaylandSurfaceCreateInfoKHR
callocStack()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR.Buffer
callocStack(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHR
create()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated withBufferUtils
.static VkWaylandSurfaceCreateInfoKHR.Buffer
create(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withBufferUtils
.static VkWaylandSurfaceCreateInfoKHR
create(long address)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance for the specified memory address.static VkWaylandSurfaceCreateInfoKHR.Buffer
create(long address, int capacity)
Create aVkWaylandSurfaceCreateInfoKHR.Buffer
instance at the specified memory.static VkWaylandSurfaceCreateInfoKHR
createSafe(long address)
static VkWaylandSurfaceCreateInfoKHR.Buffer
createSafe(long address, int capacity)
long
display()
Returns the value of thedisplay
field.VkWaylandSurfaceCreateInfoKHR
display(long value)
Sets the specified value to thedisplay
field.int
flags()
Returns the value of theflags
field.VkWaylandSurfaceCreateInfoKHR
flags(int value)
Sets the specified value to theflags
field.static VkWaylandSurfaceCreateInfoKHR
malloc()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated withmemAlloc
.static VkWaylandSurfaceCreateInfoKHR.Buffer
malloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withmemAlloc
.static VkWaylandSurfaceCreateInfoKHR
mallocStack()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the thread-localMemoryStack
.static VkWaylandSurfaceCreateInfoKHR.Buffer
mallocStack(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkWaylandSurfaceCreateInfoKHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkWaylandSurfaceCreateInfoKHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the specifiedMemoryStack
.static long
ndisplay(long struct)
Unsafe version ofdisplay()
.static void
ndisplay(long struct, long value)
Unsafe version ofdisplay
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static long
nsurface(long struct)
Unsafe version ofsurface()
.static void
nsurface(long struct, long value)
Unsafe version ofsurface
.long
pNext()
Returns the value of thepNext
field.VkWaylandSurfaceCreateInfoKHR
pNext(long value)
Sets the specified value to thepNext
field.VkWaylandSurfaceCreateInfoKHR
set(int sType, long pNext, int flags, long display, long surface)
Initializes this struct with the specified values.VkWaylandSurfaceCreateInfoKHR
set(VkWaylandSurfaceCreateInfoKHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkWaylandSurfaceCreateInfoKHR
sType(int value)
Sets the specified value to thesType
field.long
surface()
Returns the value of thesurface
field.VkWaylandSurfaceCreateInfoKHR
surface(long value)
Sets the specified value to thesurface
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkWaylandSurfaceCreateInfoKHR
instance at the current position of the specifiedByteBuffer
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 classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
display
public long display()
Returns the value of thedisplay
field.
-
surface
public long surface()
Returns the value of thesurface
field.
-
sType
public VkWaylandSurfaceCreateInfoKHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkWaylandSurfaceCreateInfoKHR pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkWaylandSurfaceCreateInfoKHR flags(int value)
Sets the specified value to theflags
field.
-
display
public VkWaylandSurfaceCreateInfoKHR display(long value)
Sets the specified value to thedisplay
field.
-
surface
public VkWaylandSurfaceCreateInfoKHR surface(long value)
Sets the specified value to thesurface
field.
-
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 newVkWaylandSurfaceCreateInfoKHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkWaylandSurfaceCreateInfoKHR calloc()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkWaylandSurfaceCreateInfoKHR create()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated withBufferUtils
.
-
create
public static VkWaylandSurfaceCreateInfoKHR create(long address)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkWaylandSurfaceCreateInfoKHR createSafe(long address)
-
malloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer malloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer calloc(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkWaylandSurfaceCreateInfoKHR.Buffer create(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkWaylandSurfaceCreateInfoKHR.Buffer create(long address, int capacity)
Create aVkWaylandSurfaceCreateInfoKHR.Buffer
instance 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 newVkWaylandSurfaceCreateInfoKHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR callocStack()
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkWaylandSurfaceCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHR
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkWaylandSurfaceCreateInfoKHR.Buffer callocStack(int capacity)
Returns a newVkWaylandSurfaceCreateInfoKHR.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
-
-