Class VkIndirectCommandsTokenNVX

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkIndirectCommandsTokenNVX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters for the reservation of command buffer space.
    Valid Usage
    Valid Usage (Implicit)
    • tokenType must be a valid VkIndirectCommandsTokenTypeNVX value
    • buffer must be a valid VkBuffer handle
    See Also

    VkCmdProcessCommandsInfoNVX

    Member documentation

    • tokenType – specifies the token command type.
    • buffer – specifies the VkBuffer storing the functional arguments for each squence. These argumetns can be written by the device.
    • offset – specified an offset into buffer where the arguments start.

    Layout

    
     struct VkIndirectCommandsTokenNVX {
         VkIndirectCommandsTokenTypeNVX tokenType;
         VkBuffer buffer;
         VkDeviceSize offset;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TOKENTYPE, BUFFER, OFFSET

        The struct member offsets.
    • Constructor Detail

      • VkIndirectCommandsTokenNVX

        public VkIndirectCommandsTokenNVX​(java.nio.ByteBuffer container)
        Creates a VkIndirectCommandsTokenNVX 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • tokenType

        public int tokenType()
        Returns the value of the tokenType field.
      • buffer

        public long buffer()
        Returns the value of the buffer field.
      • offset

        public long offset()
        Returns the value of the offset field.
      • set

        public VkIndirectCommandsTokenNVX set​(int tokenType,
                                              long buffer,
                                              long offset)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static VkIndirectCommandsTokenNVX create​(long address)
        Returns a new VkIndirectCommandsTokenNVX instance for the specified memory address.
      • mallocStack

        public static VkIndirectCommandsTokenNVX mallocStack()
        Returns a new VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkIndirectCommandsTokenNVX callocStack()
        Returns a new VkIndirectCommandsTokenNVX instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkIndirectCommandsTokenNVX mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkIndirectCommandsTokenNVX instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

        public static VkIndirectCommandsTokenNVX.Buffer callocStack​(int capacity,
                                                                    org.lwjgl.system.MemoryStack stack)
        Returns a new VkIndirectCommandsTokenNVX.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntokenType

        public static int ntokenType​(long struct)
        Unsafe version of tokenType().
      • nbuffer

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

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

        public static void ntokenType​(long struct,
                                      int value)
        Unsafe version of tokenType.
      • 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.