Package org.lwjgl.cuda
Class CUDA_TEXTURE_DESC.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUDA_TEXTURE_DESC,CUDA_TEXTURE_DESC.Buffer>
-
- org.lwjgl.cuda.CUDA_TEXTURE_DESC.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.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 ofCUDA_TEXTURE_DESCstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.IntBufferaddressMode()intaddressMode(int index)CUDA_TEXTURE_DESC.BufferaddressMode(int index, int value)Sets the specified value at the specified index of theCUDA_TEXTURE_DESC.addressMode()field.CUDA_TEXTURE_DESC.BufferaddressMode(java.nio.IntBuffer value)Copies the specifiedIntBufferto theCUDA_TEXTURE_DESC.addressMode()field.java.nio.FloatBufferborderColor()floatborderColor(int index)CUDA_TEXTURE_DESC.BufferborderColor(int index, float value)Sets the specified value at the specified index of theCUDA_TEXTURE_DESC.borderColor()field.CUDA_TEXTURE_DESC.BufferborderColor(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto theCUDA_TEXTURE_DESC.borderColor()field.intfilterMode()CUDA_TEXTURE_DESC.BufferfilterMode(int value)Sets the specified value to theCUDA_TEXTURE_DESC.filterMode()field.intflags()CUDA_TEXTURE_DESC.Bufferflags(int value)Sets the specified value to theCUDA_TEXTURE_DESC.flags()field.intmaxAnisotropy()CUDA_TEXTURE_DESC.BuffermaxAnisotropy(int value)Sets the specified value to theCUDA_TEXTURE_DESC.maxAnisotropy()field.floatmaxMipmapLevelClamp()CUDA_TEXTURE_DESC.BuffermaxMipmapLevelClamp(float value)Sets the specified value to theCUDA_TEXTURE_DESC.maxMipmapLevelClamp()field.floatminMipmapLevelClamp()CUDA_TEXTURE_DESC.BufferminMipmapLevelClamp(float value)Sets the specified value to theCUDA_TEXTURE_DESC.minMipmapLevelClamp()field.intmipmapFilterMode()CUDA_TEXTURE_DESC.BuffermipmapFilterMode(int value)Sets the specified value to theCUDA_TEXTURE_DESC.mipmapFilterMode()field.floatmipmapLevelBias()CUDA_TEXTURE_DESC.BuffermipmapLevelBias(float value)Sets the specified value to theCUDA_TEXTURE_DESC.mipmapLevelBias()field.java.nio.IntBufferreserved()intreserved(int index)CUDA_TEXTURE_DESC.Bufferreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.CUDA_TEXTURE_DESC.Bufferreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUDA_TEXTURE_DESC.Bufferinstance 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 byCUDA_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
IntBufferview of theCUDA_TEXTURE_DESC.addressMode()field.
-
addressMode
public int addressMode(int index)
- Returns:
- the value at the specified index of the
CUDA_TEXTURE_DESC.addressMode()field.
-
filterMode
public int filterMode()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.filterMode()field.
-
flags
public int flags()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.flags()field.
-
maxAnisotropy
public int maxAnisotropy()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.maxAnisotropy()field.
-
mipmapFilterMode
public int mipmapFilterMode()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.mipmapFilterMode()field.
-
mipmapLevelBias
public float mipmapLevelBias()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.mipmapLevelBias()field.
-
minMipmapLevelClamp
public float minMipmapLevelClamp()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.minMipmapLevelClamp()field.
-
maxMipmapLevelClamp
public float maxMipmapLevelClamp()
- Returns:
- the value of the
CUDA_TEXTURE_DESC.maxMipmapLevelClamp()field.
-
borderColor
public java.nio.FloatBuffer borderColor()
- Returns:
- a
FloatBufferview of theCUDA_TEXTURE_DESC.borderColor()field.
-
borderColor
public float borderColor(int index)
- Returns:
- the value at the specified index of the
CUDA_TEXTURE_DESC.borderColor()field.
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
addressMode
public CUDA_TEXTURE_DESC.Buffer addressMode(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theCUDA_TEXTURE_DESC.addressMode()field.
-
addressMode
public CUDA_TEXTURE_DESC.Buffer addressMode(int index, int value)
Sets the specified value at the specified index of theCUDA_TEXTURE_DESC.addressMode()field.
-
filterMode
public CUDA_TEXTURE_DESC.Buffer filterMode(int value)
Sets the specified value to theCUDA_TEXTURE_DESC.filterMode()field.
-
flags
public CUDA_TEXTURE_DESC.Buffer flags(int value)
Sets the specified value to theCUDA_TEXTURE_DESC.flags()field.
-
maxAnisotropy
public CUDA_TEXTURE_DESC.Buffer maxAnisotropy(int value)
Sets the specified value to theCUDA_TEXTURE_DESC.maxAnisotropy()field.
-
mipmapFilterMode
public CUDA_TEXTURE_DESC.Buffer mipmapFilterMode(int value)
Sets the specified value to theCUDA_TEXTURE_DESC.mipmapFilterMode()field.
-
mipmapLevelBias
public CUDA_TEXTURE_DESC.Buffer mipmapLevelBias(float value)
Sets the specified value to theCUDA_TEXTURE_DESC.mipmapLevelBias()field.
-
minMipmapLevelClamp
public CUDA_TEXTURE_DESC.Buffer minMipmapLevelClamp(float value)
Sets the specified value to theCUDA_TEXTURE_DESC.minMipmapLevelClamp()field.
-
maxMipmapLevelClamp
public CUDA_TEXTURE_DESC.Buffer maxMipmapLevelClamp(float value)
Sets the specified value to theCUDA_TEXTURE_DESC.maxMipmapLevelClamp()field.
-
borderColor
public CUDA_TEXTURE_DESC.Buffer borderColor(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto theCUDA_TEXTURE_DESC.borderColor()field.
-
borderColor
public CUDA_TEXTURE_DESC.Buffer borderColor(int index, float value)
Sets the specified value at the specified index of theCUDA_TEXTURE_DESC.borderColor()field.
-
reserved
public CUDA_TEXTURE_DESC.Buffer reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_TEXTURE_DESC.Buffer reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
-