12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

168 Module Documentation3.26.2.12 CUresult cuTexRefSetArray (CUtexref hTexRef, CUarray hArray, unsigned int Flags)Binds the <strong>CUDA</strong> array hArray to the texture reference hTexRef. Any previous address or <strong>CUDA</strong> array stateassociated with the texture reference is superseded by this function. Flags must be set to CU_TRSA_OVERRIDE_-FORMAT. Any <strong>CUDA</strong> array previously bound to hTexRef is unbound.Parameters:hTexRef - Texture reference to bindhArray - Array to bindFlags - Options (must be CU_TRSA_OVERRIDE_FORMAT)Returns:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:cuTexRefCreate, cuTexRefDestroy, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode,cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress, cuTexRefGetAddress-Mode, cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat3.26.2.13 CUresult cuTexRefSetFilterMode (CUtexref hTexRef, CUfilter_mode fm)Specifies the filtering mode fm to be used when reading memory through the texture reference hTexRef. CUfilter_-mode_enum is defined as:typedef enum CUfilter_mode_enum {CU_TR_FILTER_MODE_POINT = 0,CU_TR_FILTER_MODE_LINEAR = 1} CUfilter_mode;Note that this call has no effect if hTexRef is bound to linear memory.Parameters:hTexRef - Texture referencefm - Filtering mode to setReturns:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:cuTexRefCreate, cuTexRefDestroy, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode,cuTexRefSetArray, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress, cuTexRefGetAddressMode,cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormatGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!