Class CUDA_ARRAY_DESCRIPTOR

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

    public class CUDA_ARRAY_DESCRIPTOR
    extends Struct
    implements NativeResource
    Array descriptor.

    Member documentation

    • Width – Width of array
    • Height – Height of array
    • Format – Array format
    • NumChannels – Channels per array element

    Layout

    
     struct CUDA_ARRAY_DESCRIPTOR {
         size_t Width;
         size_t Height;
         CUarray_format Format;
         unsigned int NumChannels;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • WIDTH, HEIGHT, FORMAT, NUMCHANNELS

        The struct member offsets.
    • Constructor Detail

      • CUDA_ARRAY_DESCRIPTOR

        public CUDA_ARRAY_DESCRIPTOR​(java.nio.ByteBuffer container)
        Creates a CUDA_ARRAY_DESCRIPTOR 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.