Class VkIndirectCommandsStreamNV

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkIndirectCommandsStreamNV>
org.lwjgl.vulkan.VkIndirectCommandsStreamNV
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkIndirectCommandsStreamNV extends org.lwjgl.system.Struct<VkIndirectCommandsStreamNV> implements org.lwjgl.system.NativeResource
Structure specifying input streams for generated command tokens.
Valid Usage
Valid Usage (Implicit)
  • buffer must be a valid VkBuffer handle
See Also

VkGeneratedCommandsInfoNV

Layout


 struct VkIndirectCommandsStreamNV {
     VkBuffer buffer();
     VkDeviceSize offset();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int BUFFER
      The struct member offsets.
    • OFFSET

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

    • VkIndirectCommandsStreamNV

      public VkIndirectCommandsStreamNV(ByteBuffer container)
      Creates a VkIndirectCommandsStreamNV 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkIndirectCommandsStreamNV>
    • buffer

      public long buffer()
      specifies the VkBuffer storing the functional arguments for each sequence. These arguments can be written by the device.
    • offset

      public long offset()
      specified an offset into buffer where the arguments start.
    • buffer

      public VkIndirectCommandsStreamNV buffer(long value)
      Sets the specified value to the buffer() field.
    • offset

      public VkIndirectCommandsStreamNV offset(long value)
      Sets the specified value to the offset() field.
    • set

      public VkIndirectCommandsStreamNV set(long buffer, long offset)
      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 VkIndirectCommandsStreamNV malloc()
      Returns a new VkIndirectCommandsStreamNV instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkIndirectCommandsStreamNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkIndirectCommandsStreamNV.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
    • nbuffer

      public static long nbuffer(long struct)
      Unsafe version of buffer().
    • noffset

      public static long noffset(long struct)
      Unsafe version of offset().
    • nbuffer

      public static void nbuffer(long struct, long value)
      Unsafe version of buffer.
    • noffset

      public static void noffset(long struct, long value)
      Unsafe version of offset.