Class VkCudaLaunchInfoNV

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkCudaLaunchInfoNV extends Struct<VkCudaLaunchInfoNV> implements NativeResource

 struct VkCudaLaunchInfoNV {
     VkStructureType sType;
     void const * pNext;
     VkCudaFunctionNV 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 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.
    • FUNCTION

      public static final int FUNCTION
      The struct member offsets.
    • GRIDDIMX

      public static final int GRIDDIMX
      The struct member offsets.
    • GRIDDIMY

      public static final int GRIDDIMY
      The struct member offsets.
    • GRIDDIMZ

      public static final int GRIDDIMZ
      The struct member offsets.
    • BLOCKDIMX

      public static final int BLOCKDIMX
      The struct member offsets.
    • BLOCKDIMY

      public static final int BLOCKDIMY
      The struct member offsets.
    • BLOCKDIMZ

      public static final int BLOCKDIMZ
      The struct member offsets.
    • SHAREDMEMBYTES

      public static final int SHAREDMEMBYTES
      The struct member offsets.
    • PARAMCOUNT

      public static final int PARAMCOUNT
      The struct member offsets.
    • PPARAMS

      public static final int PPARAMS
      The struct member offsets.
    • EXTRACOUNT

      public static final int EXTRACOUNT
      The struct member offsets.
    • PEXTRAS

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

    • VkCudaLaunchInfoNV

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

      public @Nullable 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

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

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

      public VkCudaLaunchInfoNV sType$Default()
      Sets the STRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV value to the sType field.
    • pNext

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

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

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

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

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

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

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

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

      public VkCudaLaunchInfoNV sharedMemBytes(int value)
      Sets the specified value to the sharedMemBytes field.
    • paramCount

      public VkCudaLaunchInfoNV paramCount(long value)
      Sets the specified value to the paramCount field.
    • pParams

      public VkCudaLaunchInfoNV pParams(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the pParams field.
    • extraCount

      public VkCudaLaunchInfoNV extraCount(long value)
      Sets the specified value to the extraCount field.
    • pExtras

      public VkCudaLaunchInfoNV pExtras(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the pExtras field.
    • set

      public VkCudaLaunchInfoNV set(int sType, long pNext, long function, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, long paramCount, @Nullable PointerBuffer pParams, long extraCount, @Nullable PointerBuffer pExtras)
      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 VkCudaLaunchInfoNV malloc()
      Returns a new VkCudaLaunchInfoNV instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static @Nullable 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 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 PointerBuffer value)
      Unsafe version of pExtras.