Class CUDA_MEMSET_NODE_PARAMS

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

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

Layout


 struct CUDA_MEMSET_NODE_PARAMS {
     CUdeviceptr dst;
     size_t pitch;
     unsigned int value;
     unsigned int elementSize;
     size_t width;
     size_t height;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DST
      The struct member offsets.
    • PITCH

      public static final int PITCH
      The struct member offsets.
    • VALUE

      public static final int VALUE
      The struct member offsets.
    • ELEMENTSIZE

      public static final int ELEMENTSIZE
      The struct member offsets.
    • WIDTH

      public static final int WIDTH
      The struct member offsets.
    • HEIGHT

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

    • CUDA_MEMSET_NODE_PARAMS

      public CUDA_MEMSET_NODE_PARAMS(ByteBuffer container)
      Creates a CUDA_MEMSET_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_MEMSET_NODE_PARAMS>
    • dst

      public long dst()
      Returns:
      the value of the dst field.
    • pitch

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

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

      public int elementSize()
      Returns:
      the value of the elementSize field.
    • width

      public long width()
      Returns:
      the value of the width field.
    • height

      public long height()
      Returns:
      the value of the height field.
    • dst

      public CUDA_MEMSET_NODE_PARAMS dst(long value)
      Sets the specified value to the dst field.
    • pitch

      public CUDA_MEMSET_NODE_PARAMS pitch(long value)
      Sets the specified value to the pitch field.
    • value

      public CUDA_MEMSET_NODE_PARAMS value(int value)
      Sets the specified value to the value field.
    • elementSize

      public CUDA_MEMSET_NODE_PARAMS elementSize(int value)
      Sets the specified value to the elementSize field.
    • width

      public CUDA_MEMSET_NODE_PARAMS width(long value)
      Sets the specified value to the width field.
    • height

      public CUDA_MEMSET_NODE_PARAMS height(long value)
      Sets the specified value to the height field.
    • set

      public CUDA_MEMSET_NODE_PARAMS set(long dst, long pitch, int value, int elementSize, long width, long height)
      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_MEMSET_NODE_PARAMS malloc()
      Returns a new CUDA_MEMSET_NODE_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUDA_MEMSET_NODE_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

      public static CUDA_MEMSET_NODE_PARAMS calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMSET_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_MEMSET_NODE_PARAMS.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMSET_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_MEMSET_NODE_PARAMS.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_MEMSET_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
    • ndst

      public static long ndst(long struct)
      Unsafe version of dst().
    • npitch

      public static long npitch(long struct)
      Unsafe version of pitch().
    • nvalue

      public static int nvalue(long struct)
      Unsafe version of value().
    • nelementSize

      public static int nelementSize(long struct)
      Unsafe version of elementSize().
    • nwidth

      public static long nwidth(long struct)
      Unsafe version of width().
    • nheight

      public static long nheight(long struct)
      Unsafe version of height().
    • ndst

      public static void ndst(long struct, long value)
      Unsafe version of dst.
    • npitch

      public static void npitch(long struct, long value)
      Unsafe version of pitch.
    • nvalue

      public static void nvalue(long struct, int value)
      Unsafe version of value.
    • nelementSize

      public static void nelementSize(long struct, int value)
      Unsafe version of elementSize.
    • nwidth

      public static void nwidth(long struct, long value)
      Unsafe version of width.
    • nheight

      public static void nheight(long struct, long value)
      Unsafe version of height.
    • validate

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