HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Texture Reference Management

Functions

hipChannelFormatDesc hipCreateChannelDesc (int x, int y, int z, int w, hipChannelFormatKind f)
 Returns a channel descriptor using the specified format. More...
 
template<typename T >
hipChannelFormatDesc hipCreateChannelDesc ()
 
template<>
hipChannelFormatDesc hipCreateChannelDesc< int > ()
 
template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned int > ()
 
template<>
hipChannelFormatDesc hipCreateChannelDesc< long > ()
 
template<>
hipChannelFormatDesc hipCreateChannelDesc< unsigned long > ()
 
template<>
hipChannelFormatDesc hipCreateChannelDesc< float > ()
 
template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, const struct hipChannelFormatDesc *desc, size_t size=UINT_MAX)
 
template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTexture (size_t *offset, struct texture< T, dim, readMode > &tex, const void *devPtr, size_t size=UINT_MAX)
 
template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipBindTextureToArray (struct texture< T, dim, readMode > &tex, hipArray *array)
 
template<class T , int dim, enum hipTextureReadMode readMode>
hipError_t hipUnbindTexture (struct texture< T, dim, readMode > &tex)
 

Detailed Description

----------------------------------------------------------------------------------------------—

Warning
The HIP texture API implements a small subset of full texture API. Known limitations include:
  • Only point sampling is supported.
  • Only C++ APIs are provided.
  • Many APIs and modes are not implemented.

The HIP texture support is intended to allow use of texture cache on hardware where this is beneficial.

The following CUDA APIs are not currently supported:

Function Documentation

hipChannelFormatDesc hipCreateChannelDesc ( int  x,
int  y,
int  z,
int  w,
hipChannelFormatKind  f 
)

Returns a channel descriptor using the specified format.

Parameters
[in]xX component
[in]yY component
[in]zZ component
[in]wW component
[in]fChannel format
Returns
Channel descriptor with format f