Class CUDA_RESOURCE_DESC.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new CUDA_RESOURCE_DESC.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by CUDA_RESOURCE_DESC.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • resType

        public int resType()
        Returns the value of the resType field.
      • res_array_hArray

        public long res_array_hArray()
        Returns the value of the res.array.hArray field.
      • res_mipmap_hMipmappedArray

        public long res_mipmap_hMipmappedArray()
        Returns the value of the res.mipmap.hMipmappedArray field.
      • res_linear_devPtr

        public long res_linear_devPtr()
        Returns the value of the res.linear.devPtr field.
      • res_linear_format

        public int res_linear_format()
        Returns the value of the res.linear.format field.
      • res_linear_numChannels

        public int res_linear_numChannels()
        Returns the value of the res.linear.numChannels field.
      • res_linear_sizeInBytes

        public long res_linear_sizeInBytes()
        Returns the value of the res.linear.sizeInBytes field.
      • res_pitch2D_devPtr

        public long res_pitch2D_devPtr()
        Returns the value of the res.pitch2D.devPtr field.
      • res_pitch2D_format

        public int res_pitch2D_format()
        Returns the value of the res.pitch2D.format field.
      • res_pitch2D_numChannels

        public int res_pitch2D_numChannels()
        Returns the value of the res.pitch2D.numChannels field.
      • res_pitch2D_width

        public long res_pitch2D_width()
        Returns the value of the res.pitch2D.width field.
      • res_pitch2D_height

        public long res_pitch2D_height()
        Returns the value of the res.pitch2D.height field.
      • res_pitch2D_pitchInBytes

        public long res_pitch2D_pitchInBytes()
        Returns the value of the res.pitch2D.pitchInBytes field.
      • res_reserved_reserved

        public java.nio.IntBuffer res_reserved_reserved()
        Returns a IntBuffer view of the res.reserved.reserved field.
      • res_reserved_reserved

        public int res_reserved_reserved​(int index)
        Returns the value at the specified index of the res.reserved.reserved field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • res_array_hArray

        public CUDA_RESOURCE_DESC.Buffer res_array_hArray​(long value)
        Sets the specified value to the res.array.hArray field.
      • res_mipmap_hMipmappedArray

        public CUDA_RESOURCE_DESC.Buffer res_mipmap_hMipmappedArray​(long value)
        Sets the specified value to the res.mipmap.hMipmappedArray field.
      • res_linear_devPtr

        public CUDA_RESOURCE_DESC.Buffer res_linear_devPtr​(long value)
        Sets the specified value to the res.linear.devPtr field.
      • res_linear_format

        public CUDA_RESOURCE_DESC.Buffer res_linear_format​(int value)
        Sets the specified value to the res.linear.format field.
      • res_linear_numChannels

        public CUDA_RESOURCE_DESC.Buffer res_linear_numChannels​(int value)
        Sets the specified value to the res.linear.numChannels field.
      • res_linear_sizeInBytes

        public CUDA_RESOURCE_DESC.Buffer res_linear_sizeInBytes​(long value)
        Sets the specified value to the res.linear.sizeInBytes field.
      • res_pitch2D_devPtr

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_devPtr​(long value)
        Sets the specified value to the res.pitch2D.devPtr field.
      • res_pitch2D_format

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_format​(int value)
        Sets the specified value to the res.pitch2D.format field.
      • res_pitch2D_numChannels

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_numChannels​(int value)
        Sets the specified value to the res.pitch2D.numChannels field.
      • res_pitch2D_width

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_width​(long value)
        Sets the specified value to the res.pitch2D.width field.
      • res_pitch2D_height

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_height​(long value)
        Sets the specified value to the res.pitch2D.height field.
      • res_pitch2D_pitchInBytes

        public CUDA_RESOURCE_DESC.Buffer res_pitch2D_pitchInBytes​(long value)
        Sets the specified value to the res.pitch2D.pitchInBytes field.
      • res_reserved_reserved

        public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the res.reserved.reserved field.
      • res_reserved_reserved

        public CUDA_RESOURCE_DESC.Buffer res_reserved_reserved​(int index,
                                                               int value)
        Sets the specified value at the specified index of the res.reserved.reserved field.