Class VkBindMemoryStatus

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkBindMemoryStatusKHR

public class VkBindMemoryStatus extends Struct<VkBindMemoryStatus> implements NativeResource

 struct VkBindMemoryStatus {
     VkStructureType sType;
     void const * pNext;
     VkResult * pResult;
 }
  • 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.
    • PRESULT

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

    • VkBindMemoryStatus

      public VkBindMemoryStatus(ByteBuffer container)
      Creates a VkBindMemoryStatus 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<VkBindMemoryStatus>
    • sType

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

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

      public IntBuffer pResult(int capacity)
      Returns:
      a IntBuffer view of the data pointed to by the pResult field.
    • sType

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

      public VkBindMemoryStatus sType$Default()
      Sets the STRUCTURE_TYPE_BIND_MEMORY_STATUS value to the sType field.
    • pNext

      public VkBindMemoryStatus pNext(long value)
      Sets the specified value to the pNext field.
    • pResult

      public VkBindMemoryStatus pResult(IntBuffer value)
      Sets the address of the specified IntBuffer to the pResult field.
    • set

      public VkBindMemoryStatus set(int sType, long pNext, IntBuffer pResult)
      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 VkBindMemoryStatus malloc()
      Returns a new VkBindMemoryStatus instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkBindMemoryStatus.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkBindMemoryStatus.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().
    • npResult

      public static IntBuffer npResult(long struct, int capacity)
      Unsafe version of pResult.
    • 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.
    • npResult

      public static void npResult(long struct, IntBuffer value)
      Unsafe version of pResult.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate