QUDA v0.4.0
A library for QCD on GPUs
Public Member Functions
Texture< OutputType, InputType, tex_id > Class Template Reference

#include <texture.h>

List of all members.

Public Member Functions

 Texture ()
 Texture (const InputType *x, size_t bytes)
 ~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)
template<>
void bind (const short2 *ptr, size_t bytes)
template<>
void bind (const short2 *ptr, size_t bytes)
template<>
void bind (const short2 *ptr, size_t bytes)
template<>
void bind (const short2 *ptr, size_t bytes)
template<>
void bind (const short2 *ptr, size_t bytes)
template<>
void bind (const short4 *ptr, size_t bytes)
template<>
void bind (const short4 *ptr, size_t bytes)
template<>
void bind (const short4 *ptr, size_t bytes)
template<>
void bind (const short4 *ptr, size_t bytes)
template<>
void bind (const short4 *ptr, size_t bytes)
template<>
void bind (const float *ptr, size_t bytes)
template<>
void bind (const float *ptr, size_t bytes)
template<>
void bind (const float *ptr, size_t bytes)
template<>
void bind (const float *ptr, size_t bytes)
template<>
void bind (const float *ptr, size_t bytes)
template<>
void bind (const float2 *ptr, size_t bytes)
template<>
void bind (const float2 *ptr, size_t bytes)
template<>
void bind (const float2 *ptr, size_t bytes)
template<>
void bind (const float2 *ptr, size_t bytes)
template<>
void bind (const float2 *ptr, size_t bytes)
template<>
void bind (const float4 *ptr, size_t bytes)
template<>
void bind (const float4 *ptr, size_t bytes)
template<>
void bind (const float4 *ptr, size_t bytes)
template<>
void bind (const float4 *ptr, size_t bytes)
template<>
void bind (const float4 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void bind (const double2 *ptr, size_t bytes)
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
void unbind ()
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float fetch (unsigned int idx)
template<>
__device__ float fetch (unsigned int idx)
template<>
__device__ float fetch (unsigned int idx)
template<>
__device__ float fetch (unsigned int idx)
template<>
__device__ float fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ float4 fetch (unsigned int idx)
template<>
__device__ double2 fetch (unsigned int idx)
template<>
__device__ double2 fetch (unsigned int idx)
template<>
__device__ double2 fetch (unsigned int idx)
template<>
__device__ double2 fetch (unsigned int idx)
template<>
__device__ double2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)
template<>
__device__ float2 fetch (unsigned int idx)

Detailed Description

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

Definition at line 58 of file texture.h.


Constructor & Destructor Documentation

template<typename OutputType, typename InputType, int tex_id = 0>
Texture< OutputType, InputType, tex_id >::Texture ( ) [inline]

Definition at line 64 of file texture.h.

template<typename OutputType, typename InputType, int tex_id = 0>
Texture< OutputType, InputType, tex_id >::Texture ( const InputType *  x,
size_t  bytes 
) [inline]

Definition at line 65 of file texture.h.

template<typename OutputType, typename InputType, int tex_id = 0>
Texture< OutputType, InputType, tex_id >::~Texture ( ) [inline]

Definition at line 70 of file texture.h.


Member Function Documentation

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

Definition at line 77 of file texture.h.

template<>
void Texture< float2, short2, 2 >::bind ( const short2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 89 of file texture.h.

template<>
void Texture< float2, short2, 3 >::bind ( const short2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 91 of file texture.h.

template<>
void Texture< float, float, 0 >::bind ( const float *  ptr,
size_t  bytes 
) [inline]

Definition at line 107 of file texture.h.

template<>
void Texture< double2, double2, 1 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 142 of file texture.h.

template<>
void Texture< double2, double2, 2 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 144 of file texture.h.

template<>
void Texture< float, float, 1 >::bind ( const float *  ptr,
size_t  bytes 
) [inline]

Definition at line 109 of file texture.h.

template<>
void Texture< double2, double2, 3 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 146 of file texture.h.

template<>
void Texture< double2, double2, 4 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 148 of file texture.h.

template<>
void Texture< float, float, 2 >::bind ( const float *  ptr,
size_t  bytes 
) [inline]

Definition at line 111 of file texture.h.

template<>
void Texture< float2, double2, 0 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 151 of file texture.h.

template<>
void Texture< float2, double2, 1 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 153 of file texture.h.

template<>
void Texture< float, float, 3 >::bind ( const float *  ptr,
size_t  bytes 
) [inline]

Definition at line 113 of file texture.h.

template<>
void Texture< float2, double2, 2 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 155 of file texture.h.

template<>
void Texture< float2, double2, 3 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 157 of file texture.h.

template<>
void Texture< float2, short2, 4 >::bind ( const short2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 93 of file texture.h.

template<>
void Texture< float, float, 4 >::bind ( const float *  ptr,
size_t  bytes 
) [inline]

Definition at line 115 of file texture.h.

template<>
void Texture< float2, double2, 4 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 159 of file texture.h.

template<>
void Texture< float2, float2, 0 >::bind ( const float2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 118 of file texture.h.

template<>
void Texture< float4, short4, 0 >::bind ( const short4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 96 of file texture.h.

template<>
void Texture< float2, float2, 1 >::bind ( const float2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 120 of file texture.h.

template<>
void Texture< float2, float2, 2 >::bind ( const float2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 122 of file texture.h.

template<>
void Texture< float2, short2, 0 >::bind ( const short2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 85 of file texture.h.

template<>
void Texture< float4, short4, 1 >::bind ( const short4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 98 of file texture.h.

template<>
void Texture< float2, float2, 3 >::bind ( const float2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 124 of file texture.h.

template<>
void Texture< float2, float2, 4 >::bind ( const float2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 126 of file texture.h.

template<>
void Texture< float4, short4, 2 >::bind ( const short4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 100 of file texture.h.

template<>
void Texture< float4, float4, 0 >::bind ( const float4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 129 of file texture.h.

template<>
void Texture< float4, float4, 1 >::bind ( const float4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 131 of file texture.h.

template<>
void Texture< float2, short2, 1 >::bind ( const short2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 87 of file texture.h.

template<>
void Texture< float4, short4, 3 >::bind ( const short4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 102 of file texture.h.

template<>
void Texture< float4, float4, 2 >::bind ( const float4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 133 of file texture.h.

template<>
void Texture< float4, float4, 3 >::bind ( const float4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 135 of file texture.h.

template<>
void Texture< float4, short4, 4 >::bind ( const short4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 104 of file texture.h.

template<>
void Texture< float4, float4, 4 >::bind ( const float4 *  ptr,
size_t  bytes 
) [inline]

Definition at line 137 of file texture.h.

template<>
void Texture< double2, double2, 0 >::bind ( const double2 *  ptr,
size_t  bytes 
) [inline]

Definition at line 140 of file texture.h.

template<>
__device__ double2 Texture< double2, double2, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 274 of file texture.h.

template<>
__device__ float2 Texture< float2, double2, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 283 of file texture.h.

template<>
__device__ float2 Texture< float2, double2, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 279 of file texture.h.

template<>
__device__ float4 Texture< float4, float4, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 259 of file texture.h.

template<>
__device__ double2 Texture< double2, double2, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 270 of file texture.h.

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

Definition at line 81 of file texture.h.

template<>
__device__ float2 Texture< float2, short2, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 205 of file texture.h.

template<>
__device__ float2 Texture< float2, short2, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 207 of file texture.h.

template<>
__device__ double2 Texture< double2, double2, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 266 of file texture.h.

template<>
__device__ float2 Texture< float2, float2, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 241 of file texture.h.

template<>
__device__ float2 Texture< float2, float2, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 249 of file texture.h.

template<>
__device__ float2 Texture< float2, short2, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 213 of file texture.h.

template<>
__device__ float4 Texture< float4, short4, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 217 of file texture.h.

template<>
__device__ float4 Texture< float4, short4, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 219 of file texture.h.

template<>
__device__ float4 Texture< float4, short4, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 223 of file texture.h.

template<>
__device__ float4 Texture< float4, short4, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 225 of file texture.h.

template<>
__device__ float Texture< float, float, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 229 of file texture.h.

template<>
__device__ float Texture< float, float, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 233 of file texture.h.

template<>
__device__ float Texture< float, float, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 235 of file texture.h.

template<>
__device__ float Texture< float, float, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 237 of file texture.h.

template<>
__device__ float2 Texture< float2, double2, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 285 of file texture.h.

template<>
__device__ float2 Texture< float2, float2, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 245 of file texture.h.

template<>
__device__ float2 Texture< float2, double2, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 277 of file texture.h.

template<>
__device__ float2 Texture< float2, float2, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 243 of file texture.h.

template<>
__device__ double2 Texture< double2, double2, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 268 of file texture.h.

template<>
__device__ float2 Texture< float2, float2, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 247 of file texture.h.

template<>
__device__ float4 Texture< float4, float4, 0 >::fetch ( unsigned int  idx) [inline]

Definition at line 253 of file texture.h.

template<>
__device__ float4 Texture< float4, float4, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 255 of file texture.h.

template<>
__device__ float4 Texture< float4, float4, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 257 of file texture.h.

template<>
__device__ float4 Texture< float4, float4, 4 >::fetch ( unsigned int  idx) [inline]

Definition at line 261 of file texture.h.

template<>
__device__ float Texture< float, float, 1 >::fetch ( unsigned int  idx) [inline]

Definition at line 231 of file texture.h.

template<>
__device__ double2 Texture< double2, double2, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 272 of file texture.h.

template<>
__device__ float2 Texture< float2, double2, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 281 of file texture.h.

template<>
__device__ float4 Texture< float4, short4, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 221 of file texture.h.

template<>
__device__ float2 Texture< float2, short2, 2 >::fetch ( unsigned int  idx) [inline]

Definition at line 209 of file texture.h.

template<>
__device__ float2 Texture< float2, short2, 3 >::fetch ( unsigned int  idx) [inline]

Definition at line 211 of file texture.h.

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

Definition at line 72 of file texture.h.

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

Definition at line 82 of file texture.h.

template<>
void Texture< float, float, 1 >::unbind ( ) [inline]

Definition at line 175 of file texture.h.

template<>
void Texture< float2, double2, 3 >::unbind ( ) [inline]

Definition at line 201 of file texture.h.

template<>
void Texture< float, float, 2 >::unbind ( ) [inline]

Definition at line 176 of file texture.h.

template<>
void Texture< float, float, 3 >::unbind ( ) [inline]

Definition at line 177 of file texture.h.

template<>
void Texture< float, float, 4 >::unbind ( ) [inline]

Definition at line 178 of file texture.h.

template<>
void Texture< float4, short4, 3 >::unbind ( ) [inline]

Definition at line 171 of file texture.h.

template<>
void Texture< float4, float4, 2 >::unbind ( ) [inline]

Definition at line 188 of file texture.h.

template<>
void Texture< float4, float4, 3 >::unbind ( ) [inline]

Definition at line 189 of file texture.h.

template<>
void Texture< float2, short2, 0 >::unbind ( ) [inline]

Definition at line 162 of file texture.h.

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

Definition at line 78 of file texture.h.

template<>
void Texture< float2, float2, 2 >::unbind ( ) [inline]

Definition at line 182 of file texture.h.

template<>
void Texture< float2, float2, 1 >::unbind ( ) [inline]

Definition at line 181 of file texture.h.

template<>
void Texture< float2, short2, 1 >::unbind ( ) [inline]

Definition at line 163 of file texture.h.

template<>
void Texture< float, float, 0 >::unbind ( ) [inline]

Definition at line 174 of file texture.h.

template<>
void Texture< float2, float2, 0 >::unbind ( ) [inline]

Definition at line 180 of file texture.h.

template<>
void Texture< float2, float2, 3 >::unbind ( ) [inline]

Definition at line 183 of file texture.h.

template<>
void Texture< float4, float4, 1 >::unbind ( ) [inline]

Definition at line 187 of file texture.h.

template<>
void Texture< float4, float4, 4 >::unbind ( ) [inline]

Definition at line 190 of file texture.h.

template<>
void Texture< double2, double2, 4 >::unbind ( ) [inline]

Definition at line 196 of file texture.h.

template<>
void Texture< float2, double2, 2 >::unbind ( ) [inline]

Definition at line 200 of file texture.h.

template<>
void Texture< float2, short2, 4 >::unbind ( ) [inline]

Definition at line 166 of file texture.h.

template<>
void Texture< float2, double2, 4 >::unbind ( ) [inline]

Definition at line 202 of file texture.h.

template<>
void Texture< double2, double2, 0 >::unbind ( ) [inline]

Definition at line 192 of file texture.h.

template<>
void Texture< float4, short4, 4 >::unbind ( ) [inline]

Definition at line 172 of file texture.h.

template<>
void Texture< float2, float2, 4 >::unbind ( ) [inline]

Definition at line 184 of file texture.h.

template<>
void Texture< float2, short2, 3 >::unbind ( ) [inline]

Definition at line 165 of file texture.h.

template<>
void Texture< float2, short2, 2 >::unbind ( ) [inline]

Definition at line 164 of file texture.h.

template<>
void Texture< float4, float4, 0 >::unbind ( ) [inline]

Definition at line 186 of file texture.h.

template<>
void Texture< double2, double2, 3 >::unbind ( ) [inline]

Definition at line 195 of file texture.h.

template<>
void Texture< double2, double2, 2 >::unbind ( ) [inline]

Definition at line 194 of file texture.h.

template<>
void Texture< double2, double2, 1 >::unbind ( ) [inline]

Definition at line 193 of file texture.h.

template<>
void Texture< float4, short4, 0 >::unbind ( ) [inline]

Definition at line 168 of file texture.h.

template<>
void Texture< float4, short4, 2 >::unbind ( ) [inline]

Definition at line 170 of file texture.h.

template<>
void Texture< float4, short4, 1 >::unbind ( ) [inline]

Definition at line 169 of file texture.h.

template<>
void Texture< float2, double2, 1 >::unbind ( ) [inline]

Definition at line 199 of file texture.h.

template<>
void Texture< float2, double2, 0 >::unbind ( ) [inline]

Definition at line 198 of file texture.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines