Kinetic Visualization
 All Classes Functions Variables Pages
Public Member Functions
CudaArray< T > Class Template Reference

List of all members.

Public Member Functions

 CudaArray (void)
 ~CudaArray (void)
void CreateBuffer (size_t size, bool vbo=false, bool pingpong=false)
unsigned int GetLength ()
GLuint CreateVBO (size_t size)
void BindVBO ()
void UnbindVBO ()
T * GetDevRead ()
T * GetDevWrite ()
unsigned int GetDevReadVBO ()
unsigned int GetDevWriteVBO ()
T * GetHost ()
void SetHost (T *tmp, unsigned int length)
void Swap ()
void SetMemVBO ()
void SetMemHost ()
void SetMemDev ()
void SetVBO (unsigned int id1)
void SetVBO (unsigned int id1, unsigned int id2)
void Copy (bool tohost, unsigned int start, unsigned int count, bool use_write_buffer=false)
void Debug (unsigned int start, unsigned int count)

Constructor & Destructor Documentation

template<class T>
CudaArray< T >::CudaArray ( void  )
inline

Standardconstructor

template<class T>
CudaArray< T >::~CudaArray ( void  )
inline

Standarddeconstructor


Member Function Documentation

template<class T>
void CudaArray< T >::BindVBO ( )
inline

Bind VBO

template<class T>
void CudaArray< T >::Copy ( bool  tohost,
unsigned int  start,
unsigned int  count,
bool  use_write_buffer = false 
)
inline

Copy

Parameters:
tohost... true of from device to host should copy
start... startindex of memory
count... number of components to copy
use_write_buffer... copy to write buffer
template<class T>
void CudaArray< T >::CreateBuffer ( size_t  size,
bool  vbo = false,
bool  pingpong = false 
)
inline

This method creates the Buffers (VBO, Arrays,...)

Parameters:
sizesize of objects
vbouse VBOs
pingpongPingpong Buffers
template<class T>
GLuint CudaArray< T >::CreateVBO ( size_t  size)
inline

Create VBO

Parameters:
size... size of Buffer
template<class T>
void CudaArray< T >::Debug ( unsigned int  start,
unsigned int  count 
)
inline

Output device memory

Parameters:
start... startindex of memory
count... number of components to copy
template<class T>
T* CudaArray< T >::GetDevRead ( )
inline

Returns Device Array for Reading

Returns:
Device Array Referenence
template<class T>
unsigned int CudaArray< T >::GetDevReadVBO ( )
inline

Returns VBO Array for Reading

Returns:
Device Array Referenence
template<class T>
T* CudaArray< T >::GetDevWrite ( )
inline

Returns Device Array for Writing

Returns:
Device Array Referenence
template<class T>
unsigned int CudaArray< T >::GetDevWriteVBO ( )
inline

Returns VBO Array for Writing

Returns:
Device Array Referenence
template<class T>
T* CudaArray< T >::GetHost ( )
inline

Returns Host Array

Returns:
Host Array
template<class T>
void CudaArray< T >::SetMemDev ( )
inline

Sets device memory

template<class T>
void CudaArray< T >::SetMemHost ( )
inline

Sets Host memory

template<class T>
void CudaArray< T >::SetMemVBO ( )
inline

Sets VBO memory

template<class T>
void CudaArray< T >::SetVBO ( unsigned int  id1)
inline

Sets vbo

Parameters:
id1id of vbo
template<class T>
void CudaArray< T >::SetVBO ( unsigned int  id1,
unsigned int  id2 
)
inline

Sets vbo

Parameters:
id1id of vbo
id1id of vbo2
template<class T>
void CudaArray< T >::Swap ( )
inline

Swap Pingpong Buffer

template<class T>
void CudaArray< T >::UnbindVBO ( )
inline

Unbind VBO


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