Class CUDA_TEXTURE_DESC.Buffer

    • Constructor Detail

      • Buffer

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

      • addressMode

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

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

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

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

        public int maxAnisotropy()
        Returns the value of the maxAnisotropy field.
      • mipmapFilterMode

        public int mipmapFilterMode()
        Returns the value of the mipmapFilterMode field.
      • mipmapLevelBias

        public float mipmapLevelBias()
        Returns the value of the mipmapLevelBias field.
      • minMipmapLevelClamp

        public float minMipmapLevelClamp()
        Returns the value of the minMipmapLevelClamp field.
      • maxMipmapLevelClamp

        public float maxMipmapLevelClamp()
        Returns the value of the maxMipmapLevelClamp field.
      • borderColor

        public java.nio.FloatBuffer borderColor()
        Returns a FloatBuffer view of the borderColor field.
      • borderColor

        public float borderColor​(int index)
        Returns the value at the specified index of the borderColor 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.
      • addressMode

        public CUDA_TEXTURE_DESC.Buffer addressMode​(java.nio.IntBuffer value)
        Copies the specified IntBuffer to the addressMode field.
      • addressMode

        public CUDA_TEXTURE_DESC.Buffer addressMode​(int index,
                                                    int value)
        Sets the specified value at the specified index of the addressMode field.
      • filterMode

        public CUDA_TEXTURE_DESC.Buffer filterMode​(int value)
        Sets the specified value to the filterMode field.
      • maxAnisotropy

        public CUDA_TEXTURE_DESC.Buffer maxAnisotropy​(int value)
        Sets the specified value to the maxAnisotropy field.
      • mipmapFilterMode

        public CUDA_TEXTURE_DESC.Buffer mipmapFilterMode​(int value)
        Sets the specified value to the mipmapFilterMode field.
      • mipmapLevelBias

        public CUDA_TEXTURE_DESC.Buffer mipmapLevelBias​(float value)
        Sets the specified value to the mipmapLevelBias field.
      • minMipmapLevelClamp

        public CUDA_TEXTURE_DESC.Buffer minMipmapLevelClamp​(float value)
        Sets the specified value to the minMipmapLevelClamp field.
      • maxMipmapLevelClamp

        public CUDA_TEXTURE_DESC.Buffer maxMipmapLevelClamp​(float value)
        Sets the specified value to the maxMipmapLevelClamp field.
      • borderColor

        public CUDA_TEXTURE_DESC.Buffer borderColor​(java.nio.FloatBuffer value)
        Copies the specified FloatBuffer to the borderColor field.
      • borderColor

        public CUDA_TEXTURE_DESC.Buffer borderColor​(int index,
                                                    float value)
        Sets the specified value at the specified index of the borderColor field.
      • reserved

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

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