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_displaysurfacemust point to a valid Waylandwl_surface
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHRpNextmust beNULLflagsmust be 0
See Also
Layout
struct VkWaylandSurfaceCreateInfoKHR { VkStructureTypesType(); void const *pNext(); VkWaylandSurfaceCreateFlagsKHRflags(); 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 Deprecated 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 VkWaylandSurfaceCreateInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWaylandSurfaceCreateInfoKHRcallocStack()Deprecated.static VkWaylandSurfaceCreateInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkWaylandSurfaceCreateInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkWaylandSurfaceCreateInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()displayandsurfaceare pointers to the Waylandwl_displayandwl_surfaceto associate the surface with.VkWaylandSurfaceCreateInfoKHRdisplay(long value)Sets the specified value to thedisplay()field.intflags()reserved for future use.VkWaylandSurfaceCreateInfoKHRflags(int value)Sets the specified value to theflags()field.static VkWaylandSurfaceCreateInfoKHRmalloc()Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated withmemAlloc.static VkWaylandSurfaceCreateInfoKHR.Buffermalloc(int capacity)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated withmemAlloc.static VkWaylandSurfaceCreateInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkWaylandSurfaceCreateInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.static VkWaylandSurfaceCreateInfoKHRmallocStack()Deprecated.static VkWaylandSurfaceCreateInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkWaylandSurfaceCreateInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkWaylandSurfaceCreateInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkWaylandSurfaceCreateInfoKHRpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkWaylandSurfaceCreateInfoKHRsType(int value)Sets the specified value to thesType()field.VkWaylandSurfaceCreateInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHRvalue to thesType()field.longsurface()seedisplayVkWaylandSurfaceCreateInfoKHRsurface(long value)Sets the specified value to thesurface()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
reserved for future use.
-
display
public long display()
displayandsurfaceare pointers to the Waylandwl_displayandwl_surfaceto associate the surface with.
-
surface
public long surface()
seedisplay
-
sType
public VkWaylandSurfaceCreateInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkWaylandSurfaceCreateInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHRvalue 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 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
@Deprecated public static VkWaylandSurfaceCreateInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkWaylandSurfaceCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkWaylandSurfaceCreateInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkWaylandSurfaceCreateInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkWaylandSurfaceCreateInfoKHR calloc(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
-
malloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer malloc(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
-
calloc
public static VkWaylandSurfaceCreateInfoKHR.Buffer calloc(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.
-
-