jcuda.runtime
Class textureReference

java.lang.Object
  extended by jcuda.NativePointerObject
      extended by jcuda.runtime.textureReference

public class textureReference
extends NativePointerObject

Java port of a textureReference.

Most comments are taken from the CUDA reference manual or CUDA programming guide.


Field Summary
 int[] addressMode
          Specifies the addressing mode, that is how out-of-range texture coordinates are handled. addressMode is an array of size three whose first, second, and third elements specify the addressing mode for the first, second, and third texture coordinates, respectively; the addressing mode is equal to either cudaAddressModeClamp, in which case out-of-range texture coordinates are clamped to the valid range, or cudaAddressModeWrap, in which case out-of range texture coordinates are wrapped to the valid range; cudaAddressModeWrap is only supported for normalized texture coordinates;
 cudaChannelFormatDesc channelDesc
          Describes the format of the value that is returned when fetching the texture.
 int filterMode
          Specifies the filtering mode, that is how the value returned when fetching the texture is computed based on the input texture coordinates.
 int maxAnisotropy
          Limit to the anisotropy ratio
 float maxMipmapLevelClamp
          Upper end of the mipmap level range to clamp access to
 float minMipmapLevelClamp
          Lower end of the mipmap level range to clamp access to
 int mipmapFilterMode
          Mipmap filter mode
 float mipmapLevelBias
          Offset applied to the supplied mipmap level
 int normalized
          Specifies whether texture coordinates are normalized or not.
 int sRGB
          Perform sRGB->linear conversion during texture read
 
Constructor Summary
textureReference()
          Creates a new, uninitialized textureReference
 
Method Summary
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class jcuda.NativePointerObject
equals, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

normalized

public int normalized
Specifies whether texture coordinates are normalized or not. If it is non-zero, all elements in the texture are addressed with texture coordinates in the range [0,1] rather than in the range [0,width-1], [0,height-1], or [0,depth-1] where width, height, and depth are the texture sizes;


filterMode

public int filterMode
Specifies the filtering mode, that is how the value returned when fetching the texture is computed based on the input texture coordinates. filterMode is equal to cudaFilterModePoint or cudaFilterModeLinear; if it is cudaFilterModePoint, the returned value is the texel whose texture coordinates are the closest to the input texture coordinates; if it is cudaFilterModeLinear, the returned value is the linear interpolation of the two (for a one-dimensional texture), four (for a two-dimensional texture), or eight (for a three-dimensional texture) texels whose texture coordinates are the closest to the input texture coordinates; cudaFilterModeLinear is only valid for returned values of floating-point type;

See Also:
cudaTextureFilterMode

addressMode

public int[] addressMode
Specifies the addressing mode, that is how out-of-range texture coordinates are handled. addressMode is an array of size three whose first, second, and third elements specify the addressing mode for the first, second, and third texture coordinates, respectively; the addressing mode is equal to either cudaAddressModeClamp, in which case out-of-range texture coordinates are clamped to the valid range, or cudaAddressModeWrap, in which case out-of range texture coordinates are wrapped to the valid range; cudaAddressModeWrap is only supported for normalized texture coordinates;

See Also:
cudaTextureAddressMode

channelDesc

public cudaChannelFormatDesc channelDesc
Describes the format of the value that is returned when fetching the texture.

See Also:
cudaChannelFormatDesc

sRGB

public int sRGB
Perform sRGB->linear conversion during texture read


maxAnisotropy

public int maxAnisotropy
Limit to the anisotropy ratio


mipmapFilterMode

public int mipmapFilterMode
Mipmap filter mode

See Also:
cudaTextureFilterMode

mipmapLevelBias

public float mipmapLevelBias
Offset applied to the supplied mipmap level


minMipmapLevelClamp

public float minMipmapLevelClamp
Lower end of the mipmap level range to clamp access to


maxMipmapLevelClamp

public float maxMipmapLevelClamp
Upper end of the mipmap level range to clamp access to

Constructor Detail

textureReference

public textureReference()
Creates a new, uninitialized textureReference

Method Detail

toString

public java.lang.String toString()
Returns a String representation of this object.

Overrides:
toString in class NativePointerObject
Returns:
A String representation of this object.