Fermat
|
Framebuffer channel storage class, to be used from the host to allocate frame-buffer storage
#include <framebuffer.h>
Public Methods | |
float4 | operator() (const uint32_t pixel) const |
float4 | operator() (const uint32_t x, const uint32_t y) const |
const float4 * | ptr () const |
float4 * | ptr () |
void | resize (const uint32_t _res_x, const uint32_t _res_y) |
size_t | size () const |
void | clear () |
FBufferChannelStorage & | operator= (FBufferChannelStorage &other) |
FBufferChannelView | view () |
void | swap (FBufferChannelStorage &other) |
Public Members | |
uint32_t | res_x |
uint32_t | res_y |
DomainBuffer< CUDA_BUFFER, float4 > | c |
|
inline |
clear the channel with zeros
|
inline |
copy the channel from another source
|
inline |
set the resolution
|
inline |
return the total number of pixels
|
inline |
swap with another framebuffer channel
|
inline |
return a view object