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

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

Classes

class  glsl::Texture_glsl
 Shader program. More...
 

Namespaces

 glsl
 

Macros

#define ivec1   int
 
#define Texture_glsl
 
#define uniform_Texture(samplerType, name)
 
Declares a uniform sampler and the float4 readMultiplyFirst and readAddSecond variables. More...
 
#define vec1   float
 

Detailed Description

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

Macro Definition Documentation

◆ ivec1

#define ivec1   int

◆ Texture_glsl

#define Texture_glsl

◆ uniform_Texture

#define uniform_Texture (   samplerType,
  name 
)
Value:
uniform samplerType name##buffer;\
uniform vec3 name##size;\
uniform vec3 name##invSize;\
uniform vec4 name##readMultiplyFirst;\
uniform vec4 name##readAddSecond


Declares a uniform sampler and the float4 readMultiplyFirst and readAddSecond variables.

The host Texture::setShaderArgs call will also bind a macro name##notNull if the arguments are bound on the host side. If they are not bound and the device code does not use them, then GLSL will silently ignore the uniform declarations.

Parameters
samplerTypesampler2D, sampler2DShadow, sampler3D, samplerRect, or samplerCube
nameInclude the underscore suffix
See also
G3D::Texture, G3D::Texture::setShaderArgs, G3D::Args

◆ vec1

#define vec1   float

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