Class CUDA_CONDITIONAL_NODE_PARAMS

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

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

Layout


 struct CUDA_CONDITIONAL_NODE_PARAMS {
     CUgraphConditionalHandle handle;
     CUgraphConditionalNodeType type;
     unsigned int size;
     CUgraph * phGraph_out;
     CUcontext ctx;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int HANDLE
      The struct member offsets.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • SIZE

      public static final int SIZE
      The struct member offsets.
    • PHGRAPH_OUT

      public static final int PHGRAPH_OUT
      The struct member offsets.
    • CTX

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

    • CUDA_CONDITIONAL_NODE_PARAMS

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

      public long handle()
      Returns:
      the value of the handle field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • size

      public int size()
      Returns:
      the value of the size field.
    • phGraph_out

      public org.lwjgl.PointerBuffer phGraph_out()
      Returns:
      a PointerBuffer view of the data pointed to by the phGraph_out field.
    • ctx

      public long ctx()
      Returns:
      the value of the ctx field.
    • handle

      public CUDA_CONDITIONAL_NODE_PARAMS handle(long value)
      Sets the specified value to the handle field.
    • type

      public CUDA_CONDITIONAL_NODE_PARAMS type(int value)
      Sets the specified value to the type field.
    • size

      public CUDA_CONDITIONAL_NODE_PARAMS size(int value)
      Sets the specified value to the size field.
    • phGraph_out

      public CUDA_CONDITIONAL_NODE_PARAMS phGraph_out(org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the phGraph_out field.
    • ctx

      public CUDA_CONDITIONAL_NODE_PARAMS ctx(long value)
      Sets the specified value to the ctx field.
    • set

      public CUDA_CONDITIONAL_NODE_PARAMS set(long handle, int type, int size, org.lwjgl.PointerBuffer phGraph_out, long ctx)
      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 CUDA_CONDITIONAL_NODE_PARAMS malloc()
      Returns a new CUDA_CONDITIONAL_NODE_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nhandle(long struct)
      Unsafe version of handle().
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nsize

      public static int nsize(long struct)
      Unsafe version of size().
    • nphGraph_out

      public static org.lwjgl.PointerBuffer nphGraph_out(long struct)
      Unsafe version of phGraph_out.
    • nctx

      public static long nctx(long struct)
      Unsafe version of ctx().
    • nhandle

      public static void nhandle(long struct, long value)
      Unsafe version of handle.
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nsize

      public static void nsize(long struct, int value)
      Unsafe version of size.
    • nphGraph_out

      public static void nphGraph_out(long struct, org.lwjgl.PointerBuffer value)
      Unsafe version of phGraph_out.
    • nctx

      public static void nctx(long struct, long value)
      Unsafe version of ctx.
    • validate

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