Go to the documentation of this file.
42 #define DECLARE_STENCIL_VARIABLES(dst) \
43 float cstencilval = 1; \
44 bool conststencil = true; \
45 SIM_ScalarFieldSampler stencilsampler; \
47 stencilsampler.init(dst, stencil);
52 #define CHECK_STENCIL_TILE(iterator) \
55 conststencil = stencilsampler.isTileConstant(iterator, cstencilval); \
56 if (conststencil && cstencilval <= 0.5f) \
58 iterator.skipToEndOfTile(); \
66 #define CHECK_STENCIL_TILE_NOSKIP(iterator, skip_value) \
70 conststencil = stencilsampler.isTileConstant(iterator, cstencilval); \
71 skip_value = (conststencil && cstencilval <= 0.5f); \
76 #define CHECK_STENCIL_VOXEL(iterator) \
77 if (!conststencil && stencilsampler.getValue(iterator) <= 0.5f) \
83 #define CHECK_STENCIL_VOXEL_NOSKIP(iterator, skip_value) \
84 skip_value = (!conststencil && stencilsampler.getValue(iterator) <= 0.5f);