Store packed pixel information, including:
- the pixel index
- the current path type (diffuse or glossy)
- a bit indicating whether the path went through a diffuse bounce
#include <pathtracer_core.h>
|
FERMAT_HOST_DEVICE | PixelInfo (const uint32 _packed) |
|
FERMAT_HOST_DEVICE | PixelInfo (const uint32 _pixel, const uint32 _comp, const uint32 _diffuse=0) |
|
FERMAT_HOST_DEVICE | operator uint32 () const |
|
FERMAT_HOST_DEVICE | PixelInfo (const uint32 _packed) |
|
FERMAT_HOST_DEVICE | PixelInfo (const uint32 _pixel, const uint32 _channel) |
|
|
uint32 | packed |
|
struct { |
uint32 pixel: 27 |
|
uint32 comp: 4 |
|
uint32 diffuse: 1 |
|
}; | |
|
struct { |
uint32 pixel: 28 |
|
uint32 channel: 4 |
|
}; | |
|
The documentation for this union was generated from the following files: