Class CUDA_MEMSET_NODE_PARAMS

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class CUDA_MEMSET_NODE_PARAMS
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Memset node parameters.

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • DST, PITCH, VALUE, ELEMENTSIZE, WIDTH, HEIGHT

        The struct member offsets.
    • Constructor Detail

      • CUDA_MEMSET_NODE_PARAMS

        public CUDA_MEMSET_NODE_PARAMS​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • dst

        public long dst()
        Destination device pointer
      • pitch

        public long pitch()
        Pitch of destination device pointer. Unused if height is 1
      • value

        public int value()
        Value to be set
      • elementSize

        public int elementSize()
        Size of each element in bytes. Must be 1, 2, or 4.
      • width

        public long width()
        Width of the row in elements
      • height

        public long height()
        Number of rows
      • 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.
      • 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.
      • 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
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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