12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.26 Texture Reference Management 1633.26.1 Detailed DescriptionThis section describes the texture reference management functions of the low-level <strong>CUDA</strong> driver application programminginterface.3.26.2 Function Documentation3.26.2.1 CUresult cuTexRefCreate (CUtexref ∗ phTexRef)Creates a texture reference and returns its handle in ∗phTexRef. Once created, the application must call cuTexRefSetArray()or cuTexRefSetAddress() to associate the reference with allocated memory. Other texture reference functionsare used to specify the format and interpretation (addressing, filtering, etc.) to be used when the memory is readthrough this texture reference. To associate the texture reference with a texture ordinal for a given function, theapplication should call cuParamSetTexRef().Parameters:phTexRef - Returned texture referenceReturns:<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:cuTexRefDestroy, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray,cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress, cuTexRefGetAddressMode,cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat3.26.2.2 CUresult cuTexRefDestroy (CUtexref hTexRef)Destroys the texture reference specified by hTexRef.Parameters:hTexRef - Texture reference to destroyReturns:<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, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray,cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, cuTexRefGetAddress, cuTexRefGetAddress-Mode, cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat3.26.2.3 CUresult cuTexRefGetAddress (CUdeviceptr ∗ pdptr, CUtexref hTexRef)Returns in ∗pdptr the base address bound to the texture reference hTexRef, or returns <strong>CUDA</strong>_ERROR_-INVALID_VALUE if the texture reference is not bound to any device memory range.Generated 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!