public class VkInstanceCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_INSTANCE_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDebugReportCallbackCreateInfoEXT, VkDebugUtilsMessengerCreateInfoEXT, VkValidationFeaturesEXT, or VkValidationFlagsEXTsType member in the pNext chain must be uniqueflags must be 0pApplicationInfo is not NULL, pApplicationInfo must be a valid pointer to a valid VkApplicationInfo structureenabledLayerCount is not 0, ppEnabledLayerNames must be a valid pointer to an array of enabledLayerCount null-terminated UTF-8 stringsenabledExtensionCount is not 0, ppEnabledExtensionNames must be a valid pointer to an array of enabledExtensionCount null-terminated UTF-8 stringsVkApplicationInfo, CreateInstance
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.pApplicationInfo – NULL or a pointer to a VkApplicationInfo structure. If not NULL, this information helps implementations recognize behavior inherent to classes of applications. VkApplicationInfo is defined in detail below.enabledLayerCount – the number of global layers to enable.ppEnabledLayerNames – a pointer to an array of enabledLayerCount null-terminated UTF-8 strings containing the names of layers to enable for the created instance. See the Layers section for further details.enabledExtensionCount – the number of global extensions to enable.ppEnabledExtensionNames – a pointer to an array of enabledExtensionCount null-terminated UTF-8 strings containing the names of extensions to enable.
struct VkInstanceCreateInfo {
VkStructureType sType;
void const * pNext;
VkInstanceCreateFlags flags;
VkApplicationInfo const * pApplicationInfo;
uint32_t enabledLayerCount;
char const * const * ppEnabledLayerNames;
uint32_t enabledExtensionCount;
char const * const * ppEnabledExtensionNames;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkInstanceCreateInfo.Buffer
An array of
VkInstanceCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ENABLEDEXTENSIONCOUNT
The struct member offsets.
|
static int |
ENABLEDLAYERCOUNT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PAPPLICATIONINFO
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PPENABLEDEXTENSIONNAMES
The struct member offsets.
|
static int |
PPENABLEDLAYERNAMES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkInstanceCreateInfo(java.nio.ByteBuffer container)
Creates a
VkInstanceCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkInstanceCreateInfo |
calloc()
Returns a new
VkInstanceCreateInfo instance allocated with memCalloc. |
static VkInstanceCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated with memCalloc. |
static VkInstanceCreateInfo |
callocStack()
Returns a new
VkInstanceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkInstanceCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkInstanceCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkInstanceCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkInstanceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkInstanceCreateInfo |
create()
Returns a new
VkInstanceCreateInfo instance allocated with BufferUtils. |
static VkInstanceCreateInfo.Buffer |
create(int capacity)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated with BufferUtils. |
static VkInstanceCreateInfo |
create(long address)
Returns a new
VkInstanceCreateInfo instance for the specified memory address. |
static VkInstanceCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkInstanceCreateInfo.Buffer instance at the specified memory. |
static VkInstanceCreateInfo |
createSafe(long address)
|
static VkInstanceCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
enabledExtensionCount()
Returns the value of the
enabledExtensionCount field. |
int |
enabledLayerCount()
Returns the value of the
enabledLayerCount field. |
int |
flags()
Returns the value of the
flags field. |
VkInstanceCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
static VkInstanceCreateInfo |
malloc()
Returns a new
VkInstanceCreateInfo instance allocated with memAlloc. |
static VkInstanceCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated with memAlloc. |
static VkInstanceCreateInfo |
mallocStack()
Returns a new
VkInstanceCreateInfo instance allocated on the thread-local MemoryStack. |
static VkInstanceCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkInstanceCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkInstanceCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkInstanceCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkInstanceCreateInfo instance allocated on the specified MemoryStack. |
static int |
nenabledExtensionCount(long struct)
Unsafe version of
enabledExtensionCount(). |
static void |
nenabledExtensionCount(long struct,
int value)
Sets the specified value to the
enabledExtensionCount field of the specified struct. |
static int |
nenabledLayerCount(long struct)
Unsafe version of
enabledLayerCount(). |
static void |
nenabledLayerCount(long struct,
int value)
Sets the specified value to the
enabledLayerCount field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkApplicationInfo |
npApplicationInfo(long struct)
Unsafe version of
pApplicationInfo(). |
static void |
npApplicationInfo(long struct,
VkApplicationInfo value)
Unsafe version of
pApplicationInfo. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static org.lwjgl.PointerBuffer |
nppEnabledExtensionNames(long struct)
Unsafe version of
ppEnabledExtensionNames. |
static void |
nppEnabledExtensionNames(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
ppEnabledExtensionNames. |
static org.lwjgl.PointerBuffer |
nppEnabledLayerNames(long struct)
Unsafe version of
ppEnabledLayerNames. |
static void |
nppEnabledLayerNames(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
ppEnabledLayerNames. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
VkApplicationInfo |
pApplicationInfo()
Returns a
VkApplicationInfo view of the struct pointed to by the pApplicationInfo field. |
VkInstanceCreateInfo |
pApplicationInfo(VkApplicationInfo value)
Sets the address of the specified
VkApplicationInfo to the pApplicationInfo field. |
long |
pNext()
Returns the value of the
pNext field. |
VkInstanceCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
org.lwjgl.PointerBuffer |
ppEnabledExtensionNames()
Returns a
PointerBuffer view of the data pointed to by the ppEnabledExtensionNames field. |
VkInstanceCreateInfo |
ppEnabledExtensionNames(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the ppEnabledExtensionNames field. |
org.lwjgl.PointerBuffer |
ppEnabledLayerNames()
Returns a
PointerBuffer view of the data pointed to by the ppEnabledLayerNames field. |
VkInstanceCreateInfo |
ppEnabledLayerNames(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the ppEnabledLayerNames field. |
VkInstanceCreateInfo |
set(int sType,
long pNext,
int flags,
VkApplicationInfo pApplicationInfo,
org.lwjgl.PointerBuffer ppEnabledLayerNames,
org.lwjgl.PointerBuffer ppEnabledExtensionNames)
Initializes this struct with the specified values.
|
VkInstanceCreateInfo |
set(VkInstanceCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkInstanceCreateInfo |
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 PAPPLICATIONINFO
public static final int ENABLEDLAYERCOUNT
public static final int PPENABLEDLAYERNAMES
public static final int ENABLEDEXTENSIONCOUNT
public static final int PPENABLEDEXTENSIONNAMES
public VkInstanceCreateInfo(java.nio.ByteBuffer container)
VkInstanceCreateInfo 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.@Nullable public VkApplicationInfo pApplicationInfo()
VkApplicationInfo view of the struct pointed to by the pApplicationInfo field.public int enabledLayerCount()
enabledLayerCount field.@Nullable public org.lwjgl.PointerBuffer ppEnabledLayerNames()
PointerBuffer view of the data pointed to by the ppEnabledLayerNames field.public int enabledExtensionCount()
enabledExtensionCount field.@Nullable public org.lwjgl.PointerBuffer ppEnabledExtensionNames()
PointerBuffer view of the data pointed to by the ppEnabledExtensionNames field.public VkInstanceCreateInfo sType(int value)
sType field.public VkInstanceCreateInfo pNext(long value)
pNext field.public VkInstanceCreateInfo flags(int value)
flags field.public VkInstanceCreateInfo pApplicationInfo(@Nullable VkApplicationInfo value)
VkApplicationInfo to the pApplicationInfo field.public VkInstanceCreateInfo ppEnabledLayerNames(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the ppEnabledLayerNames field.public VkInstanceCreateInfo ppEnabledExtensionNames(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the ppEnabledExtensionNames field.public VkInstanceCreateInfo set(int sType, long pNext, int flags, @Nullable VkApplicationInfo pApplicationInfo, @Nullable org.lwjgl.PointerBuffer ppEnabledLayerNames, @Nullable org.lwjgl.PointerBuffer ppEnabledExtensionNames)
public VkInstanceCreateInfo set(VkInstanceCreateInfo src)
src - the source structpublic static VkInstanceCreateInfo malloc()
VkInstanceCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkInstanceCreateInfo calloc()
VkInstanceCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkInstanceCreateInfo create()
VkInstanceCreateInfo instance allocated with BufferUtils.public static VkInstanceCreateInfo create(long address)
VkInstanceCreateInfo instance for the specified memory address.@Nullable public static VkInstanceCreateInfo createSafe(long address)
public static VkInstanceCreateInfo.Buffer malloc(int capacity)
VkInstanceCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer calloc(int capacity)
VkInstanceCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer create(int capacity)
VkInstanceCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer create(long address, int capacity)
VkInstanceCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkInstanceCreateInfo.Buffer createSafe(long address, int capacity)
public static VkInstanceCreateInfo mallocStack()
VkInstanceCreateInfo instance allocated on the thread-local MemoryStack.public static VkInstanceCreateInfo callocStack()
VkInstanceCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkInstanceCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkInstanceCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkInstanceCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkInstanceCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkInstanceCreateInfo.Buffer mallocStack(int capacity)
VkInstanceCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer callocStack(int capacity)
VkInstanceCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkInstanceCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkInstanceCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkInstanceCreateInfo.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().@Nullable public static VkApplicationInfo npApplicationInfo(long struct)
pApplicationInfo().public static int nenabledLayerCount(long struct)
enabledLayerCount().@Nullable public static org.lwjgl.PointerBuffer nppEnabledLayerNames(long struct)
ppEnabledLayerNames.public static int nenabledExtensionCount(long struct)
enabledExtensionCount().@Nullable public static org.lwjgl.PointerBuffer nppEnabledExtensionNames(long struct)
ppEnabledExtensionNames.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 npApplicationInfo(long struct,
@Nullable
VkApplicationInfo value)
pApplicationInfo.public static void nenabledLayerCount(long struct,
int value)
enabledLayerCount field of the specified struct.public static void nppEnabledLayerNames(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
ppEnabledLayerNames.public static void nenabledExtensionCount(long struct,
int value)
enabledExtensionCount field of the specified struct.public static void nppEnabledExtensionNames(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
ppEnabledExtensionNames.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.