Fermat
Classes | Functions
FramebufferModule

Detailed Description

Classes

struct  GBufferView
 
struct  FBufferChannelView
 
struct  GBufferStorage
 
struct  FBufferChannelStorage
 
struct  FBufferView
 
struct  FBufferStorage
 

Functions

template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void average_in (FBufferChannelView &fb, const uint32_t pixel, const cugar::Vector4f f, const float inv_n)
 
template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void average_in (FBufferChannelView &fb, const uint32_t pixel, const cugar::Vector3f f, const float inv_n)
 
template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void add_in (FBufferChannelView &fb, const uint32_t pixel, const cugar::Vector3f f, const float inv_n)
 

Function Documentation

◆ add_in()

template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void add_in ( FBufferChannelView fb,
const uint32_t  pixel,
const cugar::Vector3f  f,
const float  inv_n 
)

add a sample to a frame-buffer channel, optionally keeping track of variance in the alpha component. Note that in order to compute statistical averages, the frame-buffer should be here pre-multiplied by (n-1)/n.

◆ average_in() [1/2]

template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void average_in ( FBufferChannelView fb,
const uint32_t  pixel,
const cugar::Vector4f  f,
const float  inv_n 
)

add a sample to a frame-buffer channel, optionally keeping track of variance in the alpha component

◆ average_in() [2/2]

template<bool ALPHA_AS_VARIANCE>
FERMAT_HOST_DEVICE void average_in ( FBufferChannelView fb,
const uint32_t  pixel,
const cugar::Vector3f  f,
const float  inv_n 
)

add a sample to a frame-buffer channel, optionally keeping track of variance in the alpha component