Support Forum G3D Web Page |
For use with G3D::Shader. More...
Classes | |
class | glsl::GBuffer2_glsl |
For use with G3D::Shader. More... | |
Namespaces | |
glsl | |
Macros | |
#define | DECLARE_GBUFFER(gbufferName) DECLARE_GBUFFER_INNER( gbufferName ) |
#define | DECLARE_GBUFFER_INNER(gbufferName) GBUFFER_FIELDS_DECLARATIONS_ ## gbufferName |
#define | GBuffer2_glsl |
#define | GBUFFER_COMPONENTS(gbufferName, field) GBUFFER_COMPONENTS_##gbufferName##_##field |
#define | GBUFFER_COORDS(gbufferName, coords) GBUFFER_COORDS_INNER(gbufferName, coords) |
#define | GBUFFER_COORDS_INNER(gbufferName, coords) GBUFFER_COORDS_##gbufferName(coords) |
#define | GBUFFER_DIMENSION(gbufferName) GBUFFER_DIMENSION_##gbufferName |
#define | GBUFFER_GLOBAL_VAR(gbufferName, field) gbufferName##_##field |
#define | GBUFFER_HEIGHT(gbufferName) GBUFFER_HEIGHT_##gbufferName |
#define | GBUFFER_HEIGHT_MASK(gbufferName) GBUFFER_HEIGHT_MASK_##gbufferName |
#define | GBUFFER_IMAGE(gbufferName, field) GBUFFER_IMAGE_INNER(gbufferName, field) |
#define | GBUFFER_IMAGE_INNER(gbufferName, field) gbufferName##_##field##_image |
#define | GBUFFER_LOAD_GLOBAL_VARS(gbufferName, coords) GBUFFER_LOAD_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords)) |
#define | GBUFFER_LOAD_GLOBAL_VARS_3D(gbufferName, coords) gbufferLoadGlobalVars_##gbufferName(coords, 0) |
#define | GBUFFER_LOAD_GLOBAL_VARS_MULTISAMPLE(gbufferName, coords, sampleID) gbufferLoadGlobalVars_##gbufferName( gbufferCoordsHelper(coords), sampleID) |
#define | GBUFFER_READ_SCALEBIAS(gbufferName, field) gbufferName##_##field##_readScaleBias |
#define | GBUFFER_STORE_VARS(srcGbufferName, dstGbufferName, coords) GBUFFER_STORE_VARS_3D(srcGbufferName, dstGbufferName, gbufferCoordsHelper(coords)) |
#define | GBUFFER_STORE_VARS_3D(srcGbufferName, dstGbufferName, coords) GBUFFER_STORE_VARS_3D_##dstGbufferName(srcGbufferName, coords) |
#define | GBUFFER_TEX(gbufferName, field) gbufferName##_##field##_tex |
#define | GBUFFER_TYPE(gbufferName, field) GBUFFER_TYPE_##gbufferName##_##field |
#define | GBUFFER_VALUE_WRITE(val) gbufferWriteValueHelper(val) |
#define | GBUFFER_WIDTH(gbufferName) GBUFFER_WIDTH_##gbufferName |
#define | GBUFFER_WIDTH_HEIGHT_SHIFT(gbufferName) GBUFFER_WIDTH_HEIGHT_SHIFT_##gbufferName |
#define | GBUFFER_WIDTH_MASK(gbufferName) GBUFFER_WIDTH_MASK_INNER(gbufferName) |
#define | GBUFFER_WIDTH_MASK_INNER(gbufferName) GBUFFER_WIDTH_MASK_##gbufferName |
#define | GBUFFER_WIDTH_SHIFT(gbufferName) GBUFFER_WIDTH_SHIFT_INNER(gbufferName) |
#define | GBUFFER_WIDTH_SHIFT_INNER(gbufferName) GBUFFER_WIDTH_SHIFT_##gbufferName |
#define | GBUFFER_WRITE_GLOBAL_VARS(gbufferName, coords) GBUFFER_WRITE_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords)) |
#define | GBUFFER_WRITE_GLOBAL_VARS_3D(gbufferName, coords) gbufferWriteGlobalVars_##gbufferName(coords) |
#define | GBUFFER_WRITE_SCALEBIAS(gbufferName, field) gbufferName##_##field##_writeScaleBias |
For use with G3D::Shader.
This files define helper functions for manipulating GBuffers.
G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License
#define DECLARE_GBUFFER | ( | gbufferName | ) | DECLARE_GBUFFER_INNER( gbufferName ) |
#define DECLARE_GBUFFER_INNER | ( | gbufferName | ) | GBUFFER_FIELDS_DECLARATIONS_ ## gbufferName |
#define GBuffer2_glsl |
#define GBUFFER_COMPONENTS | ( | gbufferName, | |
field | |||
) | GBUFFER_COMPONENTS_##gbufferName##_##field |
#define GBUFFER_COORDS | ( | gbufferName, | |
coords | |||
) | GBUFFER_COORDS_INNER(gbufferName, coords) |
Referenced by glsl::SVO_downsampleValues_glc::main().
#define GBUFFER_COORDS_INNER | ( | gbufferName, | |
coords | |||
) | GBUFFER_COORDS_##gbufferName(coords) |
#define GBUFFER_DIMENSION | ( | gbufferName | ) | GBUFFER_DIMENSION_##gbufferName |
#define GBUFFER_GLOBAL_VAR | ( | gbufferName, | |
field | |||
) | gbufferName##_##field |
#define GBUFFER_HEIGHT | ( | gbufferName | ) | GBUFFER_HEIGHT_##gbufferName |
#define GBUFFER_HEIGHT_MASK | ( | gbufferName | ) | GBUFFER_HEIGHT_MASK_##gbufferName |
#define GBUFFER_IMAGE | ( | gbufferName, | |
field | |||
) | GBUFFER_IMAGE_INNER(gbufferName, field) |
Referenced by glsl::SVO_downsampleValues_glc::main().
#define GBUFFER_IMAGE_INNER | ( | gbufferName, | |
field | |||
) | gbufferName##_##field##_image |
#define GBUFFER_LOAD_GLOBAL_VARS | ( | gbufferName, | |
coords | |||
) | GBUFFER_LOAD_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords)) |
#define GBUFFER_LOAD_GLOBAL_VARS_3D | ( | gbufferName, | |
coords | |||
) | gbufferLoadGlobalVars_##gbufferName(coords, 0) |
#define GBUFFER_LOAD_GLOBAL_VARS_MULTISAMPLE | ( | gbufferName, | |
coords, | |||
sampleID | |||
) | gbufferLoadGlobalVars_##gbufferName( gbufferCoordsHelper(coords), sampleID) |
#define GBUFFER_READ_SCALEBIAS | ( | gbufferName, | |
field | |||
) | gbufferName##_##field##_readScaleBias |
#define GBUFFER_STORE_VARS | ( | srcGbufferName, | |
dstGbufferName, | |||
coords | |||
) | GBUFFER_STORE_VARS_3D(srcGbufferName, dstGbufferName, gbufferCoordsHelper(coords)) |
#define GBUFFER_STORE_VARS_3D | ( | srcGbufferName, | |
dstGbufferName, | |||
coords | |||
) | GBUFFER_STORE_VARS_3D_##dstGbufferName(srcGbufferName, coords) |
#define GBUFFER_TEX | ( | gbufferName, | |
field | |||
) | gbufferName##_##field##_tex |
Referenced by glsl::SVO_downsampleValues_glc::main().
#define GBUFFER_TYPE | ( | gbufferName, | |
field | |||
) | GBUFFER_TYPE_##gbufferName##_##field |
#define GBUFFER_VALUE_WRITE | ( | val | ) | gbufferWriteValueHelper(val) |
#define GBUFFER_WIDTH | ( | gbufferName | ) | GBUFFER_WIDTH_##gbufferName |
#define GBUFFER_WIDTH_HEIGHT_SHIFT | ( | gbufferName | ) | GBUFFER_WIDTH_HEIGHT_SHIFT_##gbufferName |
#define GBUFFER_WIDTH_MASK | ( | gbufferName | ) | GBUFFER_WIDTH_MASK_INNER(gbufferName) |
#define GBUFFER_WIDTH_MASK_INNER | ( | gbufferName | ) | GBUFFER_WIDTH_MASK_##gbufferName |
#define GBUFFER_WIDTH_SHIFT | ( | gbufferName | ) | GBUFFER_WIDTH_SHIFT_INNER(gbufferName) |
#define GBUFFER_WIDTH_SHIFT_INNER | ( | gbufferName | ) | GBUFFER_WIDTH_SHIFT_##gbufferName |
#define GBUFFER_WRITE_GLOBAL_VARS | ( | gbufferName, | |
coords | |||
) | GBUFFER_WRITE_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords)) |
#define GBUFFER_WRITE_GLOBAL_VARS_3D | ( | gbufferName, | |
coords | |||
) | gbufferWriteGlobalVars_##gbufferName(coords) |
#define GBUFFER_WRITE_SCALEBIAS | ( | gbufferName, | |
field | |||
) | gbufferName##_##field##_writeScaleBias |