HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Enumerations | Functions
hip_texture.h File Reference

HIP C++ Texture API for hcc compiler. More...

#include <limits.h>
#include <hip_runtime.h>

Go to the source code of this file.

Classes

struct  hipChannelFormatDesc
 
struct  textureReference
 
struct  texture< T, texType, hipTextureReadMode >
 

Macros

#define hipTextureType1D   1
 
#define tex1Dfetch(_tex, _addr)   (_tex._dataPtr[_addr])
 

Typedefs

typedef struct hipChannelFormatDesc hipChannelFormatDesc
 
typedef enum hipTextureReadMode hipTextureReadMode
 
typedef enum hipTextureFilterMode hipTextureFilterMode
 

Enumerations

enum  hipTextureReadMode { hipReadModeElementType }
 
enum  hipTextureFilterMode { hipFilterModePoint }
 

Functions

template<class T >
hipChannelFormatDesc hipCreateChannelDesc ()
 
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 hipUnbindTexture (struct texture< T, dim, readMode > *tex)
 

Detailed Description

HIP C++ Texture API for hcc compiler.

Enumeration Type Documentation

Enumerator
hipFilterModePoint 

Point filter mode.

Enumerator
hipReadModeElementType 

Read texture as specified element type