Fermat
Public Methods | Static Public Methods | Public Members | List of all members
GBufferView Struct Reference

Detailed description

G-buffer view object, to be used within CUDA kernels

#include <framebuffer.h>

Public Methods

FERMAT_HOST_DEVICE uint32 & tri (const uint32_t pixel)
 
FERMAT_HOST_DEVICE const uint32 & tri (const uint32_t pixel) const
 
FERMAT_HOST_DEVICE float4 & geo (const uint32_t pixel)
 
FERMAT_HOST_DEVICE const float4 & geo (const uint32_t pixel) const
 
FERMAT_HOST_DEVICE float4 & uv (const uint32_t pixel)
 
FERMAT_HOST_DEVICE const float4 & uv (const uint32_t pixel) const
 
FERMAT_HOST_DEVICE uint4 & material (const uint32_t pixel)
 
FERMAT_HOST_DEVICE const uint4 & material (const uint32_t pixel) const
 
FERMAT_HOST_DEVICE float & depth (const uint32_t pixel)
 
FERMAT_HOST_DEVICE const float & depth (const uint32_t pixel) const
 
FERMAT_HOST_DEVICE float4 & geo (const uint32_t x, const uint32_t y)
 
FERMAT_HOST_DEVICE const float4 & geo (const uint32_t x, const uint32_t y) const
 
FERMAT_HOST_DEVICE float4 & uv (const uint32_t x, const uint32_t y)
 
FERMAT_HOST_DEVICE const float4 & uv (const uint32_t x, const uint32_t y) const
 
FERMAT_HOST_DEVICE float & depth (const uint32_t x, const uint32_t y)
 
FERMAT_HOST_DEVICE const float & depth (const uint32_t x, const uint32_t y) const
 
FERMAT_HOST_DEVICE uint4 & material (const uint32_t x, const uint32_t y)
 
FERMAT_HOST_DEVICE const uint4 & material (const uint32_t x, const uint32_t y) const
 
FERMAT_HOST_DEVICE float4 & geo (const int2 pixel)
 
FERMAT_HOST_DEVICE const float4 & geo (const int2 pixel) const
 
FERMAT_HOST_DEVICE float4 & geo (const uint2 pixel)
 
FERMAT_HOST_DEVICE const float4 & geo (const uint2 pixel) const
 
FERMAT_HOST_DEVICE float4 & uv (const int2 pixel)
 
FERMAT_HOST_DEVICE const float4 & uv (const int2 pixel) const
 
FERMAT_HOST_DEVICE float4 & uv (const uint2 pixel)
 
FERMAT_HOST_DEVICE const float4 & uv (const uint2 pixel) const
 
FERMAT_HOST_DEVICE float & depth (const uint2 pixel)
 
FERMAT_HOST_DEVICE float depth (const uint2 pixel) const
 
FERMAT_HOST_DEVICE uint4 & material (const int2 pixel)
 
FERMAT_HOST_DEVICE const uint4 & material (const int2 pixel) const
 

Static Public Methods

static FERMAT_HOST_DEVICE float4 pack_geometry (const cugar::Vector3f P, cugar::Vector3f N, bool miss=false)
 
static FERMAT_HOST_DEVICE bool is_miss (const float4 geom)
 
static FERMAT_HOST_DEVICE cugar::Vector3f unpack_pos (const float4 geom)
 
static FERMAT_HOST_DEVICE cugar::Vector3f unpack_normal (const float4 geom)
 

Public Members

float4 * m_geo
 
float4 * m_uv
 
uint32 * m_tri
 
float * m_depth
 
uint4 * m_material
 
uint32_t res_x
 
uint32_t res_y
 

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