Class VkDispatchIndirectCommand

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

    public class VkDispatchIndirectCommand
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying a dispatch indirect command.
    Description

    The members of VkDispatchIndirectCommand have the same meaning as the corresponding parameters of CmdDispatch.

    Valid Usage
    See Also

    CmdDispatchIndirect

    Member documentation

    • x – the number of local workgroups to dispatch in the X dimension.
    • y – the number of local workgroups to dispatch in the Y dimension.
    • z – the number of local workgroups to dispatch in the Z dimension.

    Layout

    
     struct VkDispatchIndirectCommand {
         uint32_t x;
         uint32_t y;
         uint32_t z;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • X, Y, Z

        The struct member offsets.
    • Constructor Detail

      • VkDispatchIndirectCommand

        public VkDispatchIndirectCommand​(java.nio.ByteBuffer container)
        Creates a VkDispatchIndirectCommand 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
      • x

        public int x()
        Returns the value of the x field.
      • y

        public int y()
        Returns the value of the y field.
      • z

        public int z()
        Returns the value of the z field.
      • malloc

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

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

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

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

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

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

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

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

        public static VkDispatchIndirectCommand.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new VkDispatchIndirectCommand.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
      • nx

        public static int nx​(long struct)
        Unsafe version of x().
      • ny

        public static int ny​(long struct)
        Unsafe version of y().
      • nz

        public static int nz​(long struct)
        Unsafe version of z().
      • nx

        public static void nx​(long struct,
                              int value)
        Unsafe version of x.
      • ny

        public static void ny​(long struct,
                              int value)
        Unsafe version of y.
      • nz

        public static void nz​(long struct,
                              int value)
        Unsafe version of z.