QUDA  0.9.0
Public Member Functions | Static Private Attributes | List of all members
Texture< OutputType, InputType, tex_id > Class Template Reference

#include <texture.h>

Inheritance diagram for Texture< OutputType, InputType, tex_id >:
Inheritance graph
[legend]

Public Member Functions

 Texture ()
 
 Texture (const cudaColorSpinorField *x, bool use_ghost=false)
 
 Texture (const Texture &tex)
 
 ~Texture ()
 
Textureoperator= (const Texture &tex)
 
void bind (const InputType *, size_t bytes)
 
void unbind ()
 
__device__ OutputType fetch (unsigned int idx)
 
__device__ OutputType operator[] (unsigned int idx)
 

Static Private Attributes

static bool bound = false
 
static int count = 0
 

Detailed Description

template<typename OutputType, typename InputType, int tex_id>
class Texture< OutputType, InputType, tex_id >

Definition at line 103 of file texture.h.

Constructor & Destructor Documentation

◆ Texture() [1/3]

template<typename OutputType, typename InputType, int tex_id>
Texture< OutputType, InputType, tex_id >::Texture ( )
inline

Definition at line 114 of file texture.h.

◆ Texture() [2/3]

template<typename OutputType, typename InputType, int tex_id>
Texture< OutputType, InputType, tex_id >::Texture ( const cudaColorSpinorField *  x,
bool  use_ghost = false 
)
inline

Definition at line 120 of file texture.h.

◆ Texture() [3/3]

template<typename OutputType, typename InputType, int tex_id>
Texture< OutputType, InputType, tex_id >::Texture ( const Texture< OutputType, InputType, tex_id > &  tex)
inline

Definition at line 140 of file texture.h.

◆ ~Texture()

template<typename OutputType, typename InputType, int tex_id>
Texture< OutputType, InputType, tex_id >::~Texture ( )
inline

Definition at line 146 of file texture.h.

Member Function Documentation

◆ bind()

template<typename OutputType, typename InputType, int tex_id>
void Texture< OutputType, InputType, tex_id >::bind ( const InputType *  ,
size_t  bytes 
)
inline

Definition at line 160 of file texture.h.

◆ fetch()

template<typename OutputType, typename InputType, int tex_id>
__device__ OutputType Texture< OutputType, InputType, tex_id >::fetch ( unsigned int  idx)
inline

Definition at line 164 of file texture.h.

Referenced by Texture< InterType, StoreType, -1 >::operator[]().

Here is the caller graph for this function:

◆ operator=()

template<typename OutputType, typename InputType, int tex_id>
Texture& Texture< OutputType, InputType, tex_id >::operator= ( const Texture< OutputType, InputType, tex_id > &  tex)
inline

Definition at line 152 of file texture.h.

◆ operator[]()

template<typename OutputType, typename InputType, int tex_id>
__device__ OutputType Texture< OutputType, InputType, tex_id >::operator[] ( unsigned int  idx)
inline

Definition at line 165 of file texture.h.

◆ unbind()

template<typename OutputType, typename InputType, int tex_id>
void Texture< OutputType, InputType, tex_id >::unbind ( )
inline

Definition at line 161 of file texture.h.

Referenced by Texture< InterType, StoreType, -1 >::~Texture().

Here is the caller graph for this function:

Member Data Documentation

◆ bound

template<typename OutputType, typename InputType, int tex_id>
bool Texture< OutputType, InputType, tex_id >::bound = false
staticprivate

Definition at line 110 of file texture.h.

Referenced by Texture< InterType, StoreType, -1 >::~Texture().

◆ count

template<typename OutputType, typename InputType, int tex_id>
int Texture< OutputType, InputType, tex_id >::count = 0
staticprivate

The documentation for this class was generated from the following file: