Class CUDA_RESOURCE_VIEW_DESC.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new CUDA_RESOURCE_VIEW_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_VIEW_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

      • format

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

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

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

        public long depth()
        Returns the value of the depth field.
      • firstMipmapLevel

        public int firstMipmapLevel()
        Returns the value of the firstMipmapLevel field.
      • lastMipmapLevel

        public int lastMipmapLevel()
        Returns the value of the lastMipmapLevel field.
      • firstLayer

        public int firstLayer()
        Returns the value of the firstLayer field.
      • lastLayer

        public int lastLayer()
        Returns the value of the lastLayer field.
      • reserved

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

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

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