Support Forum       G3D Web Page     
Classes | Namespaces | Macros
GBuffer2.glsl File Reference

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
 

Detailed Description

For use with G3D::Shader.

This files define helper functions for manipulating GBuffers.

See also
G3D::SVO

G3D Innovation Engine http://casual-effects.com/g3d Copyright 2000-2019, Morgan McGuire All rights reserved Available under the BSD License

Macro Definition Documentation

◆ DECLARE_GBUFFER

#define DECLARE_GBUFFER (   gbufferName)    DECLARE_GBUFFER_INNER( gbufferName )

◆ DECLARE_GBUFFER_INNER

#define DECLARE_GBUFFER_INNER (   gbufferName)    GBUFFER_FIELDS_DECLARATIONS_ ## gbufferName

◆ GBuffer2_glsl

#define GBuffer2_glsl

◆ GBUFFER_COMPONENTS

#define GBUFFER_COMPONENTS (   gbufferName,
  field 
)    GBUFFER_COMPONENTS_##gbufferName##_##field

◆ GBUFFER_COORDS

#define GBUFFER_COORDS (   gbufferName,
  coords 
)    GBUFFER_COORDS_INNER(gbufferName, coords)

◆ GBUFFER_COORDS_INNER

#define GBUFFER_COORDS_INNER (   gbufferName,
  coords 
)    GBUFFER_COORDS_##gbufferName(coords)

◆ GBUFFER_DIMENSION

#define GBUFFER_DIMENSION (   gbufferName)    GBUFFER_DIMENSION_##gbufferName

◆ GBUFFER_GLOBAL_VAR

#define GBUFFER_GLOBAL_VAR (   gbufferName,
  field 
)    gbufferName##_##field

◆ GBUFFER_HEIGHT

#define GBUFFER_HEIGHT (   gbufferName)    GBUFFER_HEIGHT_##gbufferName

◆ GBUFFER_HEIGHT_MASK

#define GBUFFER_HEIGHT_MASK (   gbufferName)    GBUFFER_HEIGHT_MASK_##gbufferName

◆ GBUFFER_IMAGE

#define GBUFFER_IMAGE (   gbufferName,
  field 
)    GBUFFER_IMAGE_INNER(gbufferName, field)

◆ GBUFFER_IMAGE_INNER

#define GBUFFER_IMAGE_INNER (   gbufferName,
  field 
)    gbufferName##_##field##_image

◆ GBUFFER_LOAD_GLOBAL_VARS

#define GBUFFER_LOAD_GLOBAL_VARS (   gbufferName,
  coords 
)    GBUFFER_LOAD_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords))

◆ GBUFFER_LOAD_GLOBAL_VARS_3D

#define GBUFFER_LOAD_GLOBAL_VARS_3D (   gbufferName,
  coords 
)    gbufferLoadGlobalVars_##gbufferName(coords, 0)

◆ GBUFFER_LOAD_GLOBAL_VARS_MULTISAMPLE

#define GBUFFER_LOAD_GLOBAL_VARS_MULTISAMPLE (   gbufferName,
  coords,
  sampleID 
)    gbufferLoadGlobalVars_##gbufferName( gbufferCoordsHelper(coords), sampleID)

◆ GBUFFER_READ_SCALEBIAS

#define GBUFFER_READ_SCALEBIAS (   gbufferName,
  field 
)    gbufferName##_##field##_readScaleBias

◆ GBUFFER_STORE_VARS

#define GBUFFER_STORE_VARS (   srcGbufferName,
  dstGbufferName,
  coords 
)    GBUFFER_STORE_VARS_3D(srcGbufferName, dstGbufferName, gbufferCoordsHelper(coords))

◆ GBUFFER_STORE_VARS_3D

#define GBUFFER_STORE_VARS_3D (   srcGbufferName,
  dstGbufferName,
  coords 
)    GBUFFER_STORE_VARS_3D_##dstGbufferName(srcGbufferName, coords)

◆ GBUFFER_TEX

#define GBUFFER_TEX (   gbufferName,
  field 
)    gbufferName##_##field##_tex

◆ GBUFFER_TYPE

#define GBUFFER_TYPE (   gbufferName,
  field 
)    GBUFFER_TYPE_##gbufferName##_##field

◆ GBUFFER_VALUE_WRITE

#define GBUFFER_VALUE_WRITE (   val)    gbufferWriteValueHelper(val)

◆ GBUFFER_WIDTH

#define GBUFFER_WIDTH (   gbufferName)    GBUFFER_WIDTH_##gbufferName

◆ GBUFFER_WIDTH_HEIGHT_SHIFT

#define GBUFFER_WIDTH_HEIGHT_SHIFT (   gbufferName)    GBUFFER_WIDTH_HEIGHT_SHIFT_##gbufferName

◆ GBUFFER_WIDTH_MASK

#define GBUFFER_WIDTH_MASK (   gbufferName)    GBUFFER_WIDTH_MASK_INNER(gbufferName)

◆ GBUFFER_WIDTH_MASK_INNER

#define GBUFFER_WIDTH_MASK_INNER (   gbufferName)    GBUFFER_WIDTH_MASK_##gbufferName

◆ GBUFFER_WIDTH_SHIFT

#define GBUFFER_WIDTH_SHIFT (   gbufferName)    GBUFFER_WIDTH_SHIFT_INNER(gbufferName)

◆ GBUFFER_WIDTH_SHIFT_INNER

#define GBUFFER_WIDTH_SHIFT_INNER (   gbufferName)    GBUFFER_WIDTH_SHIFT_##gbufferName

◆ GBUFFER_WRITE_GLOBAL_VARS

#define GBUFFER_WRITE_GLOBAL_VARS (   gbufferName,
  coords 
)    GBUFFER_WRITE_GLOBAL_VARS_3D(gbufferName, gbufferCoordsHelper(coords))

◆ GBUFFER_WRITE_GLOBAL_VARS_3D

#define GBUFFER_WRITE_GLOBAL_VARS_3D (   gbufferName,
  coords 
)    gbufferWriteGlobalVars_##gbufferName(coords)

◆ GBUFFER_WRITE_SCALEBIAS

#define GBUFFER_WRITE_SCALEBIAS (   gbufferName,
  field 
)    gbufferName##_##field##_writeScaleBias

documentation generated on Wed Nov 24 2021 08:01:50 using doxygen 1.8.15