Class CUctxCreateParams

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUctxCreateParams>
org.lwjgl.cuda.CUctxCreateParams
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUctxCreateParams extends org.lwjgl.system.Struct<CUctxCreateParams> implements org.lwjgl.system.NativeResource

Layout


 struct CUctxCreateParams {
     CUexecAffinityParam * execAffinityParams;
     unsigned int numExecAffinityParams;
     CUctxCigParam * cigParams;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • EXECAFFINITYPARAMS

      public static final int EXECAFFINITYPARAMS
      The struct member offsets.
    • NUMEXECAFFINITYPARAMS

      public static final int NUMEXECAFFINITYPARAMS
      The struct member offsets.
    • CIGPARAMS

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

    • CUctxCreateParams

      public CUctxCreateParams(ByteBuffer container)
      Creates a CUctxCreateParams 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUctxCreateParams>
    • execAffinityParams

      public @Nullable CUexecAffinityParam.Buffer execAffinityParams()
      Returns:
      a CUexecAffinityParam.Buffer view of the struct array pointed to by the execAffinityParams field.
    • numExecAffinityParams

      public int numExecAffinityParams()
      Returns:
      the value of the numExecAffinityParams field.
    • cigParams

      public @Nullable CUctxCigParam cigParams()
      Returns:
      a CUctxCigParam view of the struct pointed to by the cigParams field.
    • execAffinityParams

      public CUctxCreateParams execAffinityParams(@Nullable CUexecAffinityParam.Buffer value)
      Sets the address of the specified CUexecAffinityParam.Buffer to the execAffinityParams field.
    • numExecAffinityParams

      public CUctxCreateParams numExecAffinityParams(int value)
      Sets the specified value to the numExecAffinityParams field.
    • cigParams

      public CUctxCreateParams cigParams(@Nullable CUctxCigParam value)
      Sets the address of the specified CUctxCigParam to the cigParams field.
    • set

      public CUctxCreateParams set(@Nullable CUexecAffinityParam.Buffer execAffinityParams, int numExecAffinityParams, @Nullable CUctxCigParam cigParams)
      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 CUctxCreateParams malloc()
      Returns a new CUctxCreateParams instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static @Nullable CUexecAffinityParam.Buffer nexecAffinityParams(long struct)
      Unsafe version of execAffinityParams().
    • nnumExecAffinityParams

      public static int nnumExecAffinityParams(long struct)
      Unsafe version of numExecAffinityParams().
    • ncigParams

      public static @Nullable CUctxCigParam ncigParams(long struct)
      Unsafe version of cigParams().
    • nexecAffinityParams

      public static void nexecAffinityParams(long struct, @Nullable CUexecAffinityParam.Buffer value)
      Unsafe version of execAffinityParams.
    • nnumExecAffinityParams

      public static void nnumExecAffinityParams(long struct, int value)
      Sets the specified value to the numExecAffinityParams field of the specified struct.
    • ncigParams

      public static void ncigParams(long struct, @Nullable CUctxCigParam value)
      Unsafe version of cigParams.