Molecular Vis
Improving perception of molecular visualization
|
Wrapper for SSBO buffer (shader storage buffer object) T is the type of the data (struct and has to satisfy allignment conditions, see ssbo doc.) More...
#include <SSBO.h>
Public Member Functions | |
SSBO () | |
SSBO (unsigned int size) | |
unsigned int | getCapacity () |
void | uploadData (const std::vector< T > &data) |
void | bindToTarget (unsigned int target) |
void | release () |
Wrapper for SSBO buffer (shader storage buffer object) T is the type of the data (struct and has to satisfy allignment conditions, see ssbo doc.)
void SSBO< T >::bindToTarget | ( | unsigned int | target | ) |
Binds buffer to indexed buffer target (number in shader layout(..,target))
unsigned int SSBO< T >::getCapacity | ( | ) |
returns capacity of buffer
void SSBO< T >::release | ( | ) |
Deletes the buffer
void SSBO< T >::uploadData | ( | const std::vector< T > & | data | ) |
Uploads data to Buffer. data.size()) has to be less than capacity