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.

162 Module Documentation3.26 Texture Reference ManagementFunctions• CUresult cuTexRefCreate (CUtexref ∗phTexRef)Creates a texture reference.• CUresult cuTexRefDestroy (CUtexref hTexRef)Destroys a texture reference.• CUresult cuTexRefGetAddress (CUdeviceptr ∗pdptr, CUtexref hTexRef)Gets the address associated with a texture reference.• CUresult cuTexRefGetAddressMode (CUaddress_mode ∗pAddressMode, CUtexref hTexRef, int Dim)Gets the addressing mode used by a texture reference.• CUresult cuTexRefGetArray (CUarray ∗phArray, CUtexref hTexRef)Gets the array bound to a texture reference.• CUresult cuTexRefGetFilterMode (CUfilter_mode ∗pFilterMode, CUtexref hTexRef)Gets the filter-mode used by a texture reference.• CUresult cuTexRefGetFlags (unsigned int ∗pFlags, CUtexref hTexRef)Gets the flags used by a texture reference.• CUresult cuTexRefGetFormat (CUarray_format ∗pFormat, int ∗pNumPackedComponents, CUtexrefhTexRef)Gets the format used by a texture reference.• CUresult cuTexRefSetAddress (unsigned int ∗pOffset, CUtexref hTexRef, CUdeviceptr dptr, unsigned intbytes)Binds an address as a texture reference.• CUresult cuTexRefSetAddress2D (CUtexref hTexRef, const <strong>CUDA</strong>_ARRAY_DESCRIPTOR ∗desc, CUdeviceptrdptr, unsigned int PitchInBytes)Binds an address as a 2D texture reference.• CUresult cuTexRefSetAddressMode (CUtexref hTexRef, int Dim, CUaddress_mode am)Sets the addressing mode for a texture reference.• CUresult cuTexRefSetArray (CUtexref hTexRef, CUarray hArray, unsigned int Flags)Binds an address as a texture reference.• CUresult cuTexRefSetFilterMode (CUtexref hTexRef, CUfilter_mode fm)Sets the filtering mode for a texture reference.• CUresult cuTexRefSetFlags (CUtexref hTexRef, unsigned int Flags)Sets the flags for a texture reference.• CUresult cuTexRefSetFormat (CUtexref hTexRef, CUarray_format Format, int NumChannels)Sets the format for a texture reference.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!