Class VkCuLaunchInfoNVX

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

    public class VkCuLaunchInfoNVX
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Stub description of VkCuLaunchInfoNVX.
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX
    • pNext must be NULL
    • function must be a valid VkCuFunctionNVX handle
    • If paramCount is not 0, pParams must be a valid pointer to an array of paramCount bytes
    • If extraCount is not 0, pExtras must be a valid pointer to an array of extraCount bytes
    See Also

    CmdCuLaunchKernelNVX

    Layout

    
     struct VkCuLaunchInfoNVX {
         VkStructureType sType;
         void const * pNext;
         VkCuFunctionNVX function;
         uint32_t gridDimX;
         uint32_t gridDimY;
         uint32_t gridDimZ;
         uint32_t blockDimX;
         uint32_t blockDimY;
         uint32_t blockDimZ;
         uint32_t sharedMemBytes;
         size_t paramCount;
         void const * const * pParams;
         size_t extraCount;
         void const * const * pExtras;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FUNCTION, GRIDDIMX, GRIDDIMY, GRIDDIMZ, BLOCKDIMX, BLOCKDIMY, BLOCKDIMZ, SHAREDMEMBYTES, PARAMCOUNT, PPARAMS, EXTRACOUNT, PEXTRAS

        The struct member offsets.
    • Constructor Detail

      • VkCuLaunchInfoNVX

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

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

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

        public long function()
        Returns:
        the value of the function field.
      • gridDimX

        public int gridDimX()
        Returns:
        the value of the gridDimX field.
      • gridDimY

        public int gridDimY()
        Returns:
        the value of the gridDimY field.
      • gridDimZ

        public int gridDimZ()
        Returns:
        the value of the gridDimZ field.
      • blockDimX

        public int blockDimX()
        Returns:
        the value of the blockDimX field.
      • blockDimY

        public int blockDimY()
        Returns:
        the value of the blockDimY field.
      • blockDimZ

        public int blockDimZ()
        Returns:
        the value of the blockDimZ field.
      • sharedMemBytes

        public int sharedMemBytes()
        Returns:
        the value of the sharedMemBytes field.
      • paramCount

        public long paramCount()
        Returns:
        the value of the paramCount field.
      • pParams

        @Nullable
        public org.lwjgl.PointerBuffer pParams()
        Returns:
        a PointerBuffer view of the data pointed to by the pParams field.
      • extraCount

        public long extraCount()
        Returns:
        the value of the extraCount field.
      • pExtras

        @Nullable
        public org.lwjgl.PointerBuffer pExtras()
        Returns:
        a PointerBuffer view of the data pointed to by the pExtras field.
      • sType

        public VkCuLaunchInfoNVX sType​(int value)
        Sets the specified value to the sType field.
      • pNext

        public VkCuLaunchInfoNVX pNext​(long value)
        Sets the specified value to the pNext field.
      • function

        public VkCuLaunchInfoNVX function​(long value)
        Sets the specified value to the function field.
      • gridDimX

        public VkCuLaunchInfoNVX gridDimX​(int value)
        Sets the specified value to the gridDimX field.
      • gridDimY

        public VkCuLaunchInfoNVX gridDimY​(int value)
        Sets the specified value to the gridDimY field.
      • gridDimZ

        public VkCuLaunchInfoNVX gridDimZ​(int value)
        Sets the specified value to the gridDimZ field.
      • blockDimX

        public VkCuLaunchInfoNVX blockDimX​(int value)
        Sets the specified value to the blockDimX field.
      • blockDimY

        public VkCuLaunchInfoNVX blockDimY​(int value)
        Sets the specified value to the blockDimY field.
      • blockDimZ

        public VkCuLaunchInfoNVX blockDimZ​(int value)
        Sets the specified value to the blockDimZ field.
      • sharedMemBytes

        public VkCuLaunchInfoNVX sharedMemBytes​(int value)
        Sets the specified value to the sharedMemBytes field.
      • pParams

        public VkCuLaunchInfoNVX pParams​(@Nullable
                                         org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the pParams field.
      • pExtras

        public VkCuLaunchInfoNVX pExtras​(@Nullable
                                         org.lwjgl.PointerBuffer value)
        Sets the address of the specified PointerBuffer to the pExtras field.
      • set

        public VkCuLaunchInfoNVX set​(int sType,
                                     long pNext,
                                     long function,
                                     int gridDimX,
                                     int gridDimY,
                                     int gridDimZ,
                                     int blockDimX,
                                     int blockDimY,
                                     int blockDimZ,
                                     int sharedMemBytes,
                                     @Nullable
                                     org.lwjgl.PointerBuffer pParams,
                                     @Nullable
                                     org.lwjgl.PointerBuffer pExtras)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

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

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

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

        public static long nfunction​(long struct)
        Unsafe version of function().
      • ngridDimX

        public static int ngridDimX​(long struct)
        Unsafe version of gridDimX().
      • ngridDimY

        public static int ngridDimY​(long struct)
        Unsafe version of gridDimY().
      • ngridDimZ

        public static int ngridDimZ​(long struct)
        Unsafe version of gridDimZ().
      • nblockDimX

        public static int nblockDimX​(long struct)
        Unsafe version of blockDimX().
      • nblockDimY

        public static int nblockDimY​(long struct)
        Unsafe version of blockDimY().
      • nblockDimZ

        public static int nblockDimZ​(long struct)
        Unsafe version of blockDimZ().
      • nsharedMemBytes

        public static int nsharedMemBytes​(long struct)
        Unsafe version of sharedMemBytes().
      • nparamCount

        public static long nparamCount​(long struct)
        Unsafe version of paramCount().
      • npParams

        @Nullable
        public static org.lwjgl.PointerBuffer npParams​(long struct)
        Unsafe version of pParams.
      • nextraCount

        public static long nextraCount​(long struct)
        Unsafe version of extraCount().
      • npExtras

        @Nullable
        public static org.lwjgl.PointerBuffer npExtras​(long struct)
        Unsafe version of pExtras.
      • 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.
      • nfunction

        public static void nfunction​(long struct,
                                     long value)
        Unsafe version of function.
      • ngridDimX

        public static void ngridDimX​(long struct,
                                     int value)
        Unsafe version of gridDimX.
      • ngridDimY

        public static void ngridDimY​(long struct,
                                     int value)
        Unsafe version of gridDimY.
      • ngridDimZ

        public static void ngridDimZ​(long struct,
                                     int value)
        Unsafe version of gridDimZ.
      • nblockDimX

        public static void nblockDimX​(long struct,
                                      int value)
        Unsafe version of blockDimX.
      • nblockDimY

        public static void nblockDimY​(long struct,
                                      int value)
        Unsafe version of blockDimY.
      • nblockDimZ

        public static void nblockDimZ​(long struct,
                                      int value)
        Unsafe version of blockDimZ.
      • nsharedMemBytes

        public static void nsharedMemBytes​(long struct,
                                           int value)
        Unsafe version of sharedMemBytes.
      • nparamCount

        public static void nparamCount​(long struct,
                                       long value)
        Sets the specified value to the paramCount field of the specified struct.
      • npParams

        public static void npParams​(long struct,
                                    @Nullable
                                    org.lwjgl.PointerBuffer value)
        Unsafe version of pParams.
      • nextraCount

        public static void nextraCount​(long struct,
                                       long value)
        Sets the specified value to the extraCount field of the specified struct.
      • npExtras

        public static void npExtras​(long struct,
                                    @Nullable
                                    org.lwjgl.PointerBuffer value)
        Unsafe version of pExtras.
      • validate

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