#include <array.hpp>
Public Member Functions | |
Array () | |
Default constructor. | |
Array (const Size< Dim > &_size) | |
Constructor. | |
Array (const Layout< Type, Dim > &layout) | |
Constructor. | |
~Array () | |
Destructor. | |
void | alloc () |
Allocate GPU memory. | |
void | alloc (const Size< Dim > &_size) |
Allocate GPU memory. | |
void | free () |
Free GPU memory. | |
cudaArray * | getArray () |
Get pointer to CUDA array structure. | |
const cudaArray * | getArray () const |
Get pointer to CUDA array structure. | |
void | init () |
Initialize CUDA array pointer. |
CUDA arrays allow access to texture hardware.
Cuda::Array< Type, Dim >::Array | ( | const Size< Dim > & | _size | ) | [inline] |
Constructor.
_size | requested size of array |
Cuda::Array< Type, Dim >::Array | ( | const Layout< Type, Dim > & | layout | ) | [inline] |
Constructor.
layout | requested layout of array |
void Cuda::Array< Type, Dim >::alloc | ( | const Size< Dim > & | _size | ) | [inline] |
cudaArray* Cuda::Array< Type, Dim >::getArray | ( | ) | [inline] |
Get pointer to CUDA array structure.
const cudaArray* Cuda::Array< Type, Dim >::getArray | ( | ) | const [inline] |
Get pointer to CUDA array structure.