Fermat
|
Framebuffer storage class, to be used from the host to allocate framebuffer storage
A framebuffer can hold multiple named channels of the same size; currently, only float4 channels are supported - in the future multiple formats might be added. The framebuffer also holds a single G-buffer.
#include <framebuffer.h>
Public Types | |
typedef std::shared_ptr< FBufferChannelStorage > | FBufferChannelPtr |
Public Methods | |
FBufferStorage () | |
~FBufferStorage () | |
void | set_channel_count (const uint32 _n_channels) |
void | set_channel (const uint32_t i, const char *name) |
void | resize (const uint32_t _res_x, const uint32_t _res_y) |
uint32_t | channel_count () const |
size_t | size () const |
FBufferView | view () |
Public Members | |
uint32_t | res_x |
uint32_t | res_y |
uint32_t | n_channels |
GBufferStorage | gbuffer |
FBufferChannelStorage * | channels |
std::vector< std::string > | names |
DomainBuffer< CUDA_BUFFER, FBufferChannelView > | channel_views |
|
inline |
constructor
|
inline |
destructor
|
inline |
return the number of channels
|
inline |
set the resolution of the framebuffer
|
inline |
set the name of a channel
|
inline |
set the number of channels
|
inline |
return the resolution of the framebuffer
|
inline |
return a view object