Class CUlaunchConfig.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUlaunchConfig.Buffer>
org.lwjgl.system.StructBuffer<CUlaunchConfig,CUlaunchConfig.Buffer>
org.lwjgl.cuda.CUlaunchConfig.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUlaunchConfig>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUlaunchConfig

public static class CUlaunchConfig.Buffer extends org.lwjgl.system.StructBuffer<CUlaunchConfig,CUlaunchConfig.Buffer> implements org.lwjgl.system.NativeResource
An array of CUlaunchConfig structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new CUlaunchConfig.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CUlaunchConfig.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.
    • hStream

      public long hStream()
      Returns:
      the value of the hStream field.
    • attrs

      public @Nullable CUlaunchAttribute.Buffer attrs()
      Returns:
      a CUlaunchAttribute.Buffer view of the struct array pointed to by the attrs field.
    • numAttrs

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

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

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

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

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

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

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

      public CUlaunchConfig.Buffer sharedMemBytes(int value)
      Sets the specified value to the sharedMemBytes field.
    • hStream

      public CUlaunchConfig.Buffer hStream(long value)
      Sets the specified value to the hStream field.
    • attrs

      public CUlaunchConfig.Buffer attrs(@Nullable CUlaunchAttribute.Buffer value)
      Sets the address of the specified CUlaunchAttribute.Buffer to the attrs field.
    • numAttrs

      public CUlaunchConfig.Buffer numAttrs(int value)
      Sets the specified value to the numAttrs field.