Fermat
Public Methods | Public Members | List of all members
FBufferChannelStorage Struct Reference

Detailed description

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 ()
 
FBufferChannelStorageoperator= (FBufferChannelStorage &other)
 
FBufferChannelView view ()
 
void swap (FBufferChannelStorage &other)
 

Public Members

uint32_t res_x
 
uint32_t res_y
 
DomainBuffer< CUDA_BUFFER, float4 > c
 

Member Function Documentation

◆ clear()

void FBufferChannelStorage::clear ( )
inline

clear the channel with zeros

◆ operator=()

FBufferChannelStorage& FBufferChannelStorage::operator= ( FBufferChannelStorage other)
inline

copy the channel from another source

◆ resize()

void FBufferChannelStorage::resize ( const uint32_t  _res_x,
const uint32_t  _res_y 
)
inline

set the resolution

◆ size()

size_t FBufferChannelStorage::size ( ) const
inline

return the total number of pixels

◆ swap()

void FBufferChannelStorage::swap ( FBufferChannelStorage other)
inline

swap with another framebuffer channel

◆ view()

FBufferChannelView FBufferChannelStorage::view ( )
inline

return a view object


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