Class CUDA_TEXTURE_DESC.Buffer

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUDA_TEXTURE_DESC.Buffer>
org.lwjgl.system.StructBuffer<CUDA_TEXTURE_DESC,CUDA_TEXTURE_DESC.Buffer>
org.lwjgl.cuda.CUDA_TEXTURE_DESC.Buffer
All Implemented Interfaces:
AutoCloseable, Iterable<CUDA_TEXTURE_DESC>, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Enclosing class:
CUDA_TEXTURE_DESC

public static class CUDA_TEXTURE_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_TEXTURE_DESC,CUDA_TEXTURE_DESC.Buffer> implements org.lwjgl.system.NativeResource
An array of CUDA_TEXTURE_DESC structs.
  • Constructor Details

    • Buffer

      public Buffer(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 Details

    • addressMode

      public 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 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 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(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.
    • flags

      public CUDA_TEXTURE_DESC.Buffer flags(int value)
      Sets the specified value to the flags 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(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(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.