public class VkWin32SurfaceCreateInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
hinstance must be a valid Win32 HINSTANCE.hwnd must be a valid Win32 HWND.sType must be STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHRpNext must be NULLflags must be 0sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.hinstance – the Win32 HINSTANCE for the window to associate the surface with.hwnd – the Win32 HWND for the window to associate the surface with.
struct VkWin32SurfaceCreateInfoKHR {
VkStructureType sType;
void const * pNext;
VkWin32SurfaceCreateFlagsKHR flags;
HINSTANCE hinstance;
HWND hwnd;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkWin32SurfaceCreateInfoKHR.Buffer
An array of
VkWin32SurfaceCreateInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
HINSTANCE
The struct member offsets.
|
static int |
HWND
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkWin32SurfaceCreateInfoKHR(java.nio.ByteBuffer container)
Creates a
VkWin32SurfaceCreateInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkWin32SurfaceCreateInfoKHR |
calloc()
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated with memCalloc. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with memCalloc. |
static VkWin32SurfaceCreateInfoKHR |
callocStack()
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWin32SurfaceCreateInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkWin32SurfaceCreateInfoKHR |
create()
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated with BufferUtils. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
create(int capacity)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with BufferUtils. |
static VkWin32SurfaceCreateInfoKHR |
create(long address)
Returns a new
VkWin32SurfaceCreateInfoKHR instance for the specified memory address. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkWin32SurfaceCreateInfoKHR.Buffer instance at the specified memory. |
static VkWin32SurfaceCreateInfoKHR |
createSafe(long address)
|
static VkWin32SurfaceCreateInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkWin32SurfaceCreateInfoKHR |
flags(int value)
Sets the specified value to the
flags field. |
long |
hinstance()
Returns the value of the
hinstance field. |
VkWin32SurfaceCreateInfoKHR |
hinstance(long value)
Sets the specified value to the
hinstance field. |
long |
hwnd()
Returns the value of the
hwnd field. |
VkWin32SurfaceCreateInfoKHR |
hwnd(long value)
Sets the specified value to the
hwnd field. |
static VkWin32SurfaceCreateInfoKHR |
malloc()
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated with memAlloc. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with memAlloc. |
static VkWin32SurfaceCreateInfoKHR |
mallocStack()
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated on the thread-local MemoryStack. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkWin32SurfaceCreateInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkWin32SurfaceCreateInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkWin32SurfaceCreateInfoKHR instance allocated on the specified MemoryStack. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static long |
nhinstance(long struct)
Unsafe version of
hinstance(). |
static void |
nhinstance(long struct,
long value)
Unsafe version of
hinstance. |
static long |
nhwnd(long struct)
Unsafe version of
hwnd(). |
static void |
nhwnd(long struct,
long value)
Unsafe version of
hwnd. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkWin32SurfaceCreateInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkWin32SurfaceCreateInfoKHR |
set(int sType,
long pNext,
int flags,
long hinstance,
long hwnd)
Initializes this struct with the specified values.
|
VkWin32SurfaceCreateInfoKHR |
set(VkWin32SurfaceCreateInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkWin32SurfaceCreateInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int HINSTANCE
public static final int HWND
public VkWin32SurfaceCreateInfoKHR(java.nio.ByteBuffer container)
VkWin32SurfaceCreateInfoKHR 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public long hinstance()
hinstance field.public long hwnd()
hwnd field.public VkWin32SurfaceCreateInfoKHR sType(int value)
sType field.public VkWin32SurfaceCreateInfoKHR pNext(long value)
pNext field.public VkWin32SurfaceCreateInfoKHR flags(int value)
flags field.public VkWin32SurfaceCreateInfoKHR hinstance(long value)
hinstance field.public VkWin32SurfaceCreateInfoKHR hwnd(long value)
hwnd field.public VkWin32SurfaceCreateInfoKHR set(int sType, long pNext, int flags, long hinstance, long hwnd)
public VkWin32SurfaceCreateInfoKHR set(VkWin32SurfaceCreateInfoKHR src)
src - the source structpublic static VkWin32SurfaceCreateInfoKHR malloc()
VkWin32SurfaceCreateInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkWin32SurfaceCreateInfoKHR calloc()
VkWin32SurfaceCreateInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkWin32SurfaceCreateInfoKHR create()
VkWin32SurfaceCreateInfoKHR instance allocated with BufferUtils.public static VkWin32SurfaceCreateInfoKHR create(long address)
VkWin32SurfaceCreateInfoKHR instance for the specified memory address.@Nullable public static VkWin32SurfaceCreateInfoKHR createSafe(long address)
public static VkWin32SurfaceCreateInfoKHR.Buffer malloc(int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer calloc(int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer create(int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer create(long address, int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkWin32SurfaceCreateInfoKHR.Buffer createSafe(long address, int capacity)
public static VkWin32SurfaceCreateInfoKHR mallocStack()
VkWin32SurfaceCreateInfoKHR instance allocated on the thread-local MemoryStack.public static VkWin32SurfaceCreateInfoKHR callocStack()
VkWin32SurfaceCreateInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkWin32SurfaceCreateInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkWin32SurfaceCreateInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkWin32SurfaceCreateInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkWin32SurfaceCreateInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkWin32SurfaceCreateInfoKHR.Buffer mallocStack(int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer callocStack(int capacity)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkWin32SurfaceCreateInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkWin32SurfaceCreateInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static long nhinstance(long struct)
hinstance().public static long nhwnd(long struct)
hwnd().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nhinstance(long struct,
long value)
hinstance.public static void nhwnd(long struct,
long value)
hwnd.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.