Package org.lwjgl.vulkan
Class VkApplicationInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkApplicationInfo {
VkStructureType sType;
void const * pNext;
char const * pApplicationName;
uint32_t applicationVersion;
char const * pEngineName;
uint32_t engineVersion;
uint32_t apiVersion;
}-
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 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
ConstructorsConstructorDescriptionVkApplicationInfo(ByteBuffer container) Creates aVkApplicationInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintapiVersion(int value) Sets the specified value to theapiVersionfield.intapplicationVersion(int value) Sets the specified value to theapplicationVersionfield.static VkApplicationInfocalloc()Returns a newVkApplicationInfoinstance allocated withmemCalloc.static VkApplicationInfo.Buffercalloc(int capacity) Returns a newVkApplicationInfo.Bufferinstance allocated withmemCalloc.static VkApplicationInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkApplicationInfocalloc(MemoryStack stack) Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkApplicationInfoDeprecated.static VkApplicationInfo.BuffercallocStack(int capacity) Deprecated.static VkApplicationInfo.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkApplicationInfocallocStack(MemoryStack stack) Deprecated.static VkApplicationInfocreate()Returns a newVkApplicationInfoinstance allocated withBufferUtils.static VkApplicationInfo.Buffercreate(int capacity) Returns a newVkApplicationInfo.Bufferinstance allocated withBufferUtils.static VkApplicationInfocreate(long address) Returns a newVkApplicationInfoinstance for the specified memory address.static VkApplicationInfo.Buffercreate(long address, int capacity) Create aVkApplicationInfo.Bufferinstance at the specified memory.static @Nullable VkApplicationInfocreateSafe(long address) static @Nullable VkApplicationInfo.BuffercreateSafe(long address, int capacity) intengineVersion(int value) Sets the specified value to theengineVersionfield.static VkApplicationInfomalloc()Returns a newVkApplicationInfoinstance allocated withmemAlloc.static VkApplicationInfo.Buffermalloc(int capacity) Returns a newVkApplicationInfo.Bufferinstance allocated withmemAlloc.static VkApplicationInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkApplicationInfomalloc(MemoryStack stack) Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStack.static VkApplicationInfoDeprecated.static VkApplicationInfo.BuffermallocStack(int capacity) Deprecated.static VkApplicationInfo.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkApplicationInfomallocStack(MemoryStack stack) Deprecated.static intnapiVersion(long struct) Unsafe version ofapiVersion().static voidnapiVersion(long struct, int value) Unsafe version ofapiVersion.static intnapplicationVersion(long struct) Unsafe version ofapplicationVersion().static voidnapplicationVersion(long struct, int value) Unsafe version ofapplicationVersion.static intnengineVersion(long struct) Unsafe version ofengineVersion().static voidnengineVersion(long struct, int value) Unsafe version ofengineVersion.static @Nullable ByteBuffernpApplicationName(long struct) Unsafe version ofpApplicationName().static voidnpApplicationName(long struct, @Nullable ByteBuffer value) Unsafe version ofpApplicationName.static @Nullable StringnpApplicationNameString(long struct) Unsafe version ofpApplicationNameString().static @Nullable ByteBuffernpEngineName(long struct) Unsafe version ofpEngineName().static voidnpEngineName(long struct, @Nullable ByteBuffer value) Unsafe version ofpEngineName.static @Nullable StringnpEngineNameString(long struct) Unsafe version ofpEngineNameString().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.@Nullable ByteBufferpApplicationName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepApplicationNamefield.@Nullable String@Nullable ByteBufferpEngineName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to thepEngineNamefield.@Nullable StringlongpNext()pNext(long value) Sets the specified value to thepNextfield.set(int sType, long pNext, @Nullable ByteBuffer pApplicationName, int applicationVersion, @Nullable ByteBuffer pEngineName, int engineVersion, int apiVersion) Initializes this struct with the specified values.set(VkApplicationInfo 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_APPLICATION_INFOvalue to thesTypefield.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. -
PAPPLICATIONNAME
public static final int PAPPLICATIONNAMEThe struct member offsets. -
APPLICATIONVERSION
public static final int APPLICATIONVERSIONThe struct member offsets. -
PENGINENAME
public static final int PENGINENAMEThe struct member offsets. -
ENGINEVERSION
public static final int ENGINEVERSIONThe struct member offsets. -
APIVERSION
public static final int APIVERSIONThe struct member offsets.
-
-
Constructor Details
-
VkApplicationInfo
Creates aVkApplicationInfoinstance 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<VkApplicationInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
pApplicationName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepApplicationNamefield.
-
pApplicationNameString
- Returns:
- the null-terminated string pointed to by the
pApplicationNamefield.
-
applicationVersion
public int applicationVersion()- Returns:
- the value of the
applicationVersionfield.
-
pEngineName
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thepEngineNamefield.
-
pEngineNameString
- Returns:
- the null-terminated string pointed to by the
pEngineNamefield.
-
engineVersion
public int engineVersion()- Returns:
- the value of the
engineVersionfield.
-
apiVersion
public int apiVersion()- Returns:
- the value of the
apiVersionfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_APPLICATION_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pApplicationName
Sets the address of the specified encoded string to thepApplicationNamefield. -
applicationVersion
Sets the specified value to theapplicationVersionfield. -
pEngineName
Sets the address of the specified encoded string to thepEngineNamefield. -
engineVersion
Sets the specified value to theengineVersionfield. -
apiVersion
Sets the specified value to theapiVersionfield. -
set
public VkApplicationInfo set(int sType, long pNext, @Nullable ByteBuffer pApplicationName, int applicationVersion, @Nullable ByteBuffer pEngineName, int engineVersion, int apiVersion) 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 newVkApplicationInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkApplicationInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkApplicationInfoinstance allocated withBufferUtils. -
create
Returns a newVkApplicationInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkApplicationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkApplicationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkApplicationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkApplicationInfo.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 newVkApplicationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkApplicationInfo.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(). -
npApplicationName
Unsafe version ofpApplicationName(). -
npApplicationNameString
Unsafe version ofpApplicationNameString(). -
napplicationVersion
public static int napplicationVersion(long struct) Unsafe version ofapplicationVersion(). -
npEngineName
Unsafe version ofpEngineName(). -
npEngineNameString
Unsafe version ofpEngineNameString(). -
nengineVersion
public static int nengineVersion(long struct) Unsafe version ofengineVersion(). -
napiVersion
public static int napiVersion(long struct) Unsafe version ofapiVersion(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
npApplicationName
Unsafe version ofpApplicationName. -
napplicationVersion
public static void napplicationVersion(long struct, int value) Unsafe version ofapplicationVersion. -
npEngineName
Unsafe version ofpEngineName. -
nengineVersion
public static void nengineVersion(long struct, int value) Unsafe version ofengineVersion. -
napiVersion
public static void napiVersion(long struct, int value) Unsafe version ofapiVersion.
-