Package org.lwjgl.vulkan
Class VkApplicationInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkApplicationInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkApplicationInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about the application.
Valid Usage
sTypemust beSTRUCTURE_TYPE_APPLICATION_INFOpNextmust beNULL- If
pApplicationNameis notNULL,pApplicationNamemust be a null-terminated string - If
pEngineNameis notNULL,pEngineNamemust be a null-terminated string apiVersionmust be zero, or otherwise it must be a version that the implementation supports, or supports an effective substitute for
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_APPLICATION_INFOpNext– reserved for use by extensionspApplicationName– a pointer to aNULL-terminated UTF-8 string containing the name of the applicationapplicationVersion– contains an application-specific version number. It is recommended that new versions of an existing application specify monotonically increasing values forapplicationVersion.pEngineName– if the application is built on a reusable engine, the name of the engine may be specified in theNULL-terminated UTF-8 string pointed to bypEngineNameengineVersion– the version of the engine used to create the applicationapiVersion– the version of the Vulkan API that the application expects to use
Layout
struct VkApplicationInfo { VkStructureType sType; const void * pNext; const char * pApplicationName; uint32_t applicationVersion; const char * pEngineName; uint32_t engineVersion; uint32_t apiVersion; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkApplicationInfo.BufferAn array ofVkApplicationInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkApplicationInfo(java.nio.ByteBuffer container)Creates aVkApplicationInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intapiVersion()Returns the value of theapiVersionfield.VkApplicationInfoapiVersion(int value)Sets the specified value to theapiVersionfield.intapplicationVersion()Returns the value of theapplicationVersionfield.VkApplicationInfoapplicationVersion(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 VkApplicationInfocallocStack()Returns a newVkApplicationInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkApplicationInfo.BuffercallocStack(int capacity)Returns a newVkApplicationInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkApplicationInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkApplicationInfocallocStack(MemoryStack stack)Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 ornullif the address isNULL.static VkApplicationInfo.Buffercreate(long address, int capacity)Create aVkApplicationInfo.Bufferinstance at the specified memory.intengineVersion()Returns the value of theengineVersionfield.VkApplicationInfoengineVersion(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 VkApplicationInfomallocStack()Returns a newVkApplicationInfoinstance allocated on the thread-localMemoryStack.static VkApplicationInfo.BuffermallocStack(int capacity)Returns a newVkApplicationInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkApplicationInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkApplicationInfomallocStack(MemoryStack stack)Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStack.VkApplicationInfonset(long struct)Unsafe version ofset.java.nio.ByteBufferpApplicationName()Returns aByteBufferview of the null-terminated string pointed to by thepApplicationNamefield.VkApplicationInfopApplicationName(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thepApplicationNamefield.java.lang.StringpApplicationNameString()Decodes the null-terminated string pointed to by thepApplicationNamefield.java.nio.ByteBufferpEngineName()Returns aByteBufferview of the null-terminated string pointed to by thepEngineNamefield.VkApplicationInfopEngineName(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thepEngineNamefield.java.lang.StringpEngineNameString()Decodes the null-terminated string pointed to by thepEngineNamefield.longpNext()Returns the value of thepNextfield.VkApplicationInfopNext(long value)Sets the specified value to thepNextfield.VkApplicationInfoset(int sType, long pNext, java.nio.ByteBuffer pApplicationName, int applicationVersion, java.nio.ByteBuffer pEngineName, int engineVersion, int apiVersion)Initializes this struct with the specified values.VkApplicationInfoset(VkApplicationInfo src)Copies the specified struct data to this struct.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkApplicationInfosType(int value)Sets the specified value to thesTypefield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkApplicationInfo
public VkApplicationInfo(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
pApplicationName
public java.nio.ByteBuffer pApplicationName()
Returns aByteBufferview of the null-terminated string pointed to by thepApplicationNamefield.
-
pApplicationNameString
public java.lang.String pApplicationNameString()
Decodes the null-terminated string pointed to by thepApplicationNamefield.
-
applicationVersion
public int applicationVersion()
Returns the value of theapplicationVersionfield.
-
pEngineName
public java.nio.ByteBuffer pEngineName()
Returns aByteBufferview of the null-terminated string pointed to by thepEngineNamefield.
-
pEngineNameString
public java.lang.String pEngineNameString()
Decodes the null-terminated string pointed to by thepEngineNamefield.
-
engineVersion
public int engineVersion()
Returns the value of theengineVersionfield.
-
apiVersion
public int apiVersion()
Returns the value of theapiVersionfield.
-
sType
public VkApplicationInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkApplicationInfo pNext(long value)
Sets the specified value to thepNextfield.
-
pApplicationName
public VkApplicationInfo pApplicationName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepApplicationNamefield.
-
applicationVersion
public VkApplicationInfo applicationVersion(int value)
Sets the specified value to theapplicationVersionfield.
-
pEngineName
public VkApplicationInfo pEngineName(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thepEngineNamefield.
-
engineVersion
public VkApplicationInfo engineVersion(int value)
Sets the specified value to theengineVersionfield.
-
apiVersion
public VkApplicationInfo apiVersion(int value)
Sets the specified value to theapiVersionfield.
-
set
public VkApplicationInfo set(int sType, long pNext, java.nio.ByteBuffer pApplicationName, int applicationVersion, java.nio.ByteBuffer pEngineName, int engineVersion, int apiVersion)
Initializes this struct with the specified values.
-
nset
public VkApplicationInfo nset(long struct)
Unsafe version ofset.
-
set
public VkApplicationInfo set(VkApplicationInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkApplicationInfo malloc()
Returns a newVkApplicationInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkApplicationInfo calloc()
Returns a newVkApplicationInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkApplicationInfo create()
Returns a newVkApplicationInfoinstance allocated withBufferUtils.
-
create
public static VkApplicationInfo create(long address)
Returns a newVkApplicationInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkApplicationInfo.Buffer malloc(int capacity)
Returns a newVkApplicationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkApplicationInfo.Buffer calloc(int capacity)
Returns a newVkApplicationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkApplicationInfo.Buffer create(int capacity)
Returns a newVkApplicationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkApplicationInfo.Buffer create(long address, int capacity)
Create aVkApplicationInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkApplicationInfo mallocStack()
Returns a newVkApplicationInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkApplicationInfo callocStack()
Returns a newVkApplicationInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkApplicationInfo mallocStack(MemoryStack stack)
Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkApplicationInfo callocStack(MemoryStack stack)
Returns a newVkApplicationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkApplicationInfo.Buffer mallocStack(int capacity)
Returns a newVkApplicationInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkApplicationInfo.Buffer callocStack(int capacity)
Returns a newVkApplicationInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkApplicationInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkApplicationInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkApplicationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-