Package org.lwjgl.vulkan
Class VkInstanceCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkInstanceCreateInfo {
VkStructureType sType;
void const * pNext;
VkInstanceCreateFlags flags;
{@link VkApplicationInfo VkApplicationInfo} const * pApplicationInfo;
uint32_t enabledLayerCount;
char const * const * ppEnabledLayerNames;
uint32_t enabledExtensionCount;
char const * const * ppEnabledExtensionNames;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkInstanceCreateInfo(ByteBuffer container) Creates aVkInstanceCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkInstanceCreateInfocalloc()Returns a newVkInstanceCreateInfoinstance allocated withmemCalloc.static VkInstanceCreateInfo.Buffercalloc(int capacity) Returns a newVkInstanceCreateInfo.Bufferinstance allocated withmemCalloc.static VkInstanceCreateInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkInstanceCreateInfocalloc(MemoryStack stack) Returns a newVkInstanceCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkInstanceCreateInfoDeprecated.static VkInstanceCreateInfo.BuffercallocStack(int capacity) Deprecated.static VkInstanceCreateInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkInstanceCreateInfocallocStack(MemoryStack stack) Deprecated.static VkInstanceCreateInfocreate()Returns a newVkInstanceCreateInfoinstance allocated withBufferUtils.static VkInstanceCreateInfo.Buffercreate(int capacity) Returns a newVkInstanceCreateInfo.Bufferinstance allocated withBufferUtils.static VkInstanceCreateInfocreate(long address) Returns a newVkInstanceCreateInfoinstance for the specified memory address.static VkInstanceCreateInfo.Buffercreate(long address, int capacity) Create aVkInstanceCreateInfo.Bufferinstance at the specified memory.static @Nullable VkInstanceCreateInfocreateSafe(long address) static @Nullable VkInstanceCreateInfo.BuffercreateSafe(long address, int capacity) intintintflags()flags(int value) Sets the specified value to theflagsfield.static VkInstanceCreateInfomalloc()Returns a newVkInstanceCreateInfoinstance allocated withmemAlloc.static VkInstanceCreateInfo.Buffermalloc(int capacity) Returns a newVkInstanceCreateInfo.Bufferinstance allocated withmemAlloc.static VkInstanceCreateInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkInstanceCreateInfomalloc(MemoryStack stack) Returns a newVkInstanceCreateInfoinstance allocated on the specifiedMemoryStack.static VkInstanceCreateInfoDeprecated.static VkInstanceCreateInfo.BuffermallocStack(int capacity) Deprecated.static VkInstanceCreateInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkInstanceCreateInfomallocStack(MemoryStack stack) Deprecated.static intnenabledExtensionCount(long struct) Unsafe version ofenabledExtensionCount().static voidnenabledExtensionCount(long struct, int value) Sets the specified value to theenabledExtensionCountfield of the specifiedstruct.static intnenabledLayerCount(long struct) Unsafe version ofenabledLayerCount().static voidnenabledLayerCount(long struct, int value) Sets the specified value to theenabledLayerCountfield of the specifiedstruct.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static @Nullable VkApplicationInfonpApplicationInfo(long struct) Unsafe version ofpApplicationInfo().static voidnpApplicationInfo(long struct, @Nullable VkApplicationInfo value) Unsafe version ofpApplicationInfo.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable PointerBuffernppEnabledExtensionNames(long struct) Unsafe version ofppEnabledExtensionNames.static voidnppEnabledExtensionNames(long struct, @Nullable PointerBuffer value) Unsafe version ofppEnabledExtensionNames.static @Nullable PointerBuffernppEnabledLayerNames(long struct) Unsafe version ofppEnabledLayerNames.static voidnppEnabledLayerNames(long struct, @Nullable PointerBuffer value) Unsafe version ofppEnabledLayerNames.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.@Nullable VkApplicationInfopApplicationInfo(@Nullable VkApplicationInfo value) Sets the address of the specifiedVkApplicationInfoto thepApplicationInfofield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkDebugReportCallbackCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkDebugUtilsMessengerCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkDirectDriverLoadingListLUNARGvalue to thepNextchain.Prepends the specifiedVkExportMetalObjectCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkLayerSettingsCreateInfoEXTvalue to thepNextchain.pNext(VkValidationFeaturesEXT value) Prepends the specifiedVkValidationFeaturesEXTvalue to thepNextchain.pNext(VkValidationFlagsEXT value) Prepends the specifiedVkValidationFlagsEXTvalue to thepNextchain.@Nullable PointerBufferppEnabledExtensionNames(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theppEnabledExtensionNamesfield.@Nullable PointerBufferppEnabledLayerNames(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto theppEnabledLayerNamesfield.set(int sType, long pNext, int flags, @Nullable VkApplicationInfo pApplicationInfo, @Nullable PointerBuffer ppEnabledLayerNames, @Nullable PointerBuffer ppEnabledExtensionNames) Initializes this struct with the specified values.set(VkInstanceCreateInfo src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_INSTANCE_CREATE_INFOvalue to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
PAPPLICATIONINFO
public static final int PAPPLICATIONINFOThe struct member offsets. -
ENABLEDLAYERCOUNT
public static final int ENABLEDLAYERCOUNTThe struct member offsets. -
PPENABLEDLAYERNAMES
public static final int PPENABLEDLAYERNAMESThe struct member offsets. -
ENABLEDEXTENSIONCOUNT
public static final int ENABLEDEXTENSIONCOUNTThe struct member offsets. -
PPENABLEDEXTENSIONNAMES
public static final int PPENABLEDEXTENSIONNAMESThe struct member offsets.
-
-
Constructor Details
-
VkInstanceCreateInfo
Creates aVkInstanceCreateInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkInstanceCreateInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
pApplicationInfo
- Returns:
- a
VkApplicationInfoview of the struct pointed to by thepApplicationInfofield.
-
enabledLayerCount
public int enabledLayerCount()- Returns:
- the value of the
enabledLayerCountfield.
-
ppEnabledLayerNames
- Returns:
- a
PointerBufferview of the data pointed to by theppEnabledLayerNamesfield.
-
enabledExtensionCount
public int enabledExtensionCount()- Returns:
- the value of the
enabledExtensionCountfield.
-
ppEnabledExtensionNames
- Returns:
- a
PointerBufferview of the data pointed to by theppEnabledExtensionNamesfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_INSTANCE_CREATE_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkDebugReportCallbackCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkDebugUtilsMessengerCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkDirectDriverLoadingListLUNARGvalue to thepNextchain. -
pNext
Prepends the specifiedVkExportMetalObjectCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkLayerSettingsCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkValidationFeaturesEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkValidationFlagsEXTvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
pApplicationInfo
Sets the address of the specifiedVkApplicationInfoto thepApplicationInfofield. -
ppEnabledLayerNames
Sets the address of the specifiedPointerBufferto theppEnabledLayerNamesfield. -
ppEnabledExtensionNames
Sets the address of the specifiedPointerBufferto theppEnabledExtensionNamesfield. -
set
public VkInstanceCreateInfo set(int sType, long pNext, int flags, @Nullable VkApplicationInfo pApplicationInfo, @Nullable PointerBuffer ppEnabledLayerNames, @Nullable PointerBuffer ppEnabledExtensionNames) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkInstanceCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkInstanceCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkInstanceCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVkInstanceCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkInstanceCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkInstanceCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkInstanceCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkInstanceCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkInstanceCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkInstanceCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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(). -
npApplicationInfo
Unsafe version ofpApplicationInfo(). -
nenabledLayerCount
public static int nenabledLayerCount(long struct) Unsafe version ofenabledLayerCount(). -
nppEnabledLayerNames
Unsafe version ofppEnabledLayerNames. -
nenabledExtensionCount
public static int nenabledExtensionCount(long struct) Unsafe version ofenabledExtensionCount(). -
nppEnabledExtensionNames
Unsafe version ofppEnabledExtensionNames. -
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. -
npApplicationInfo
Unsafe version ofpApplicationInfo. -
nenabledLayerCount
public static void nenabledLayerCount(long struct, int value) Sets the specified value to theenabledLayerCountfield of the specifiedstruct. -
nppEnabledLayerNames
Unsafe version ofppEnabledLayerNames. -
nenabledExtensionCount
public static void nenabledExtensionCount(long struct, int value) Sets the specified value to theenabledExtensionCountfield of the specifiedstruct. -
nppEnabledExtensionNames
Unsafe version ofppEnabledExtensionNames. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-