#include <cmath>
#include <chrono>
#include <fstream>
#include <nanovdb/NanoVDB.h>
#include "ComputePrimitives.h"
Go to the source code of this file.
|
__hostdev__ uint32_t | CompactBy1 (uint32_t x) |
|
__hostdev__ uint32_t | SeparateBy1 (uint32_t x) |
|
__hostdev__ void | mortonDecode (uint32_t code, uint32_t &x, uint32_t &y) |
|
__hostdev__ void | mortonEncode (uint32_t &code, uint32_t x, uint32_t y) |
|
template<typename RenderFn , typename GridT > |
float | renderImage (bool useCuda, const RenderFn renderOp, int width, int height, float *image, const GridT *grid) |
|
void | saveImage (const std::string &filename, int width, int height, const float *image) |
|
__hostdev__ void mortonDecode |
( |
uint32_t |
code, |
|
|
uint32_t & |
x, |
|
|
uint32_t & |
y |
|
) |
| |
|
inline |
__hostdev__ void mortonEncode |
( |
uint32_t & |
code, |
|
|
uint32_t |
x, |
|
|
uint32_t |
y |
|
) |
| |
|
inline |
float renderImage |
( |
bool |
useCuda, |
|
|
const RenderFn |
renderOp, |
|
|
int |
width, |
|
|
int |
height, |
|
|
float * |
image, |
|
|
const GridT * |
grid |
|
) |
| |
|
inline |
void saveImage |
( |
const std::string & |
filename, |
|
|
int |
width, |
|
|
int |
height, |
|
|
const float * |
image |
|
) |
| |
|
inline |