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

Detailed description

G-buffer storage class, to be used from the host to allocate g-buffer storage

#include <framebuffer.h>

Public Methods

void resize (const uint32_t _res_x, const uint32_t _res_y)
 
size_t size () const
 
void clear ()
 
GBufferView view ()
 

Public Members

uint32_t res_x
 
uint32_t res_y
 
DomainBuffer< CUDA_BUFFER, float4 > geo
 
DomainBuffer< CUDA_BUFFER, float4 > uv
 
DomainBuffer< CUDA_BUFFER, uint32 > tri
 
DomainBuffer< CUDA_BUFFER, float > depth
 
DomainBuffer< CUDA_BUFFER, uint4 > material
 

Member Function Documentation

◆ clear()

void GBufferStorage::clear ( )
inline

clear the G-buffer with invalid bits

◆ resize()

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

set the resolution

◆ size()

size_t GBufferStorage::size ( ) const
inline

return the total number of pixels

◆ view()

GBufferView GBufferStorage::view ( )
inline

return a view object


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