Class VkApplicationInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkApplicationInfo extends Struct<VkApplicationInfo> implements NativeResource

 struct VkApplicationInfo {
     VkStructureType sType;
     void const * pNext;
     char const * pApplicationName;
     uint32_t applicationVersion;
     char const * pEngineName;
     uint32_t engineVersion;
     uint32_t apiVersion;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • PAPPLICATIONNAME

      public static final int PAPPLICATIONNAME
      The struct member offsets.
    • APPLICATIONVERSION

      public static final int APPLICATIONVERSION
      The struct member offsets.
    • PENGINENAME

      public static final int PENGINENAME
      The struct member offsets.
    • ENGINEVERSION

      public static final int ENGINEVERSION
      The struct member offsets.
    • APIVERSION

      public static final int APIVERSION
      The struct member offsets.
  • Constructor Details

    • VkApplicationInfo

      public VkApplicationInfo(ByteBuffer container)
      Creates a VkApplicationInfo 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.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkApplicationInfo>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • pApplicationName

      public @Nullable ByteBuffer pApplicationName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pApplicationName field.
    • pApplicationNameString

      public @Nullable String pApplicationNameString()
      Returns:
      the null-terminated string pointed to by the pApplicationName field.
    • applicationVersion

      public int applicationVersion()
      Returns:
      the value of the applicationVersion field.
    • pEngineName

      public @Nullable ByteBuffer pEngineName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pEngineName field.
    • pEngineNameString

      public @Nullable String pEngineNameString()
      Returns:
      the null-terminated string pointed to by the pEngineName field.
    • engineVersion

      public int engineVersion()
      Returns:
      the value of the engineVersion field.
    • apiVersion

      public int apiVersion()
      Returns:
      the value of the apiVersion field.
    • sType

      public VkApplicationInfo sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkApplicationInfo sType$Default()
      Sets the STRUCTURE_TYPE_APPLICATION_INFO value to the sType field.
    • pNext

      public VkApplicationInfo pNext(long value)
      Sets the specified value to the pNext field.
    • pApplicationName

      public VkApplicationInfo pApplicationName(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the pApplicationName field.
    • applicationVersion

      public VkApplicationInfo applicationVersion(int value)
      Sets the specified value to the applicationVersion field.
    • pEngineName

      public VkApplicationInfo pEngineName(@Nullable ByteBuffer value)
      Sets the address of the specified encoded string to the pEngineName field.
    • engineVersion

      public VkApplicationInfo engineVersion(int value)
      Sets the specified value to the engineVersion field.
    • apiVersion

      public VkApplicationInfo apiVersion(int value)
      Sets the specified value to the apiVersion field.
    • 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

      public static VkApplicationInfo malloc()
      Returns a new VkApplicationInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkApplicationInfo calloc()
      Returns a new VkApplicationInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkApplicationInfo create()
      Returns a new VkApplicationInfo instance allocated with BufferUtils.
    • create

      public static VkApplicationInfo create(long address)
      Returns a new VkApplicationInfo instance for the specified memory address.
    • createSafe

      public static @Nullable VkApplicationInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkApplicationInfo.Buffer malloc(int capacity)
      Returns a new VkApplicationInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkApplicationInfo.Buffer calloc(int capacity)
      Returns a new VkApplicationInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkApplicationInfo.Buffer create(int capacity)
      Returns a new VkApplicationInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkApplicationInfo.Buffer create(long address, int capacity)
      Create a VkApplicationInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkApplicationInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • mallocStack

      @Deprecated public static VkApplicationInfo mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkApplicationInfo callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkApplicationInfo mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static VkApplicationInfo callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkApplicationInfo.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkApplicationInfo.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static VkApplicationInfo.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static VkApplicationInfo.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

      public static VkApplicationInfo malloc(MemoryStack stack)
      Returns a new VkApplicationInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkApplicationInfo calloc(MemoryStack stack)
      Returns a new VkApplicationInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkApplicationInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkApplicationInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkApplicationInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkApplicationInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • npApplicationName

      public static @Nullable ByteBuffer npApplicationName(long struct)
      Unsafe version of pApplicationName().
    • npApplicationNameString

      public static @Nullable String npApplicationNameString(long struct)
      Unsafe version of pApplicationNameString().
    • napplicationVersion

      public static int napplicationVersion(long struct)
      Unsafe version of applicationVersion().
    • npEngineName

      public static @Nullable ByteBuffer npEngineName(long struct)
      Unsafe version of pEngineName().
    • npEngineNameString

      public static @Nullable String npEngineNameString(long struct)
      Unsafe version of pEngineNameString().
    • nengineVersion

      public static int nengineVersion(long struct)
      Unsafe version of engineVersion().
    • napiVersion

      public static int napiVersion(long struct)
      Unsafe version of apiVersion().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • npApplicationName

      public static void npApplicationName(long struct, @Nullable ByteBuffer value)
      Unsafe version of pApplicationName.
    • napplicationVersion

      public static void napplicationVersion(long struct, int value)
      Unsafe version of applicationVersion.
    • npEngineName

      public static void npEngineName(long struct, @Nullable ByteBuffer value)
      Unsafe version of pEngineName.
    • nengineVersion

      public static void nengineVersion(long struct, int value)
      Unsafe version of engineVersion.
    • napiVersion

      public static void napiVersion(long struct, int value)
      Unsafe version of apiVersion.