GPUOcelot
Functions

Texture Reference Management [DEPRECATED]

Texture Reference Management
Collaboration diagram for Texture Reference Management [DEPRECATED]:

Functions

CUresult CUDAAPI cuTexRefCreate (CUtexref *pTexRef)
 Creates a texture reference.
CUresult CUDAAPI cuTexRefDestroy (CUtexref hTexRef)
 Destroys a texture reference.

Detailed Description

This section describes the deprecated texture reference management functions of the low-level CUDA driver application programming interface.


Function Documentation

CUresult CUDAAPI cuTexRefCreate ( CUtexref pTexRef)

Creates a texture reference.

Deprecated:

Creates a texture reference and returns its handle in *pTexRef. Once created, the application must call cuTexRefSetArray() or cuTexRefSetAddress() to associate the reference with allocated memory. Other texture reference functions are used to specify the format and interpretation (addressing, filtering, etc.) to be used when the memory is read through this texture reference.

Parameters:
pTexRef- Returned texture reference
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
See also:
cuTexRefDestroy
Deprecated:

Creates a texture reference and returns its handle in *pTexRef. Once created, the application must call cuTexRefSetArray() or cuTexRefSetAddress() to associate the reference with allocated memory. Other texture reference functions are used to specify the format and interpretation (addressing, filtering, etc.) to be used when the memory is read through this texture reference.

Parameters:
pTexRef- Returned texture reference
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
See also:
cuTexRefDestroy
CUresult CUDAAPI cuTexRefDestroy ( CUtexref  hTexRef)

Destroys a texture reference.

Deprecated:

Destroys the texture reference specified by hTexRef.

Parameters:
hTexRef- Texture reference to destroy
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
See also:
cuTexRefCreate
Deprecated:

Destroys the texture reference specified by hTexRef.

Parameters:
hTexRef- Texture reference to destroy
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
See also:
cuTexRefCreate
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines