diff options
author | Kenneth Graunke <[email protected]> | 2010-08-07 02:45:33 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-09-07 17:30:38 -0700 |
commit | b4fe4d52b6c642e2a30162c0e27f81622235d861 (patch) | |
tree | 917b91f3fae06d887b1d3381b8c5d9caf6bca405 /src/glsl/builtin_variables.h | |
parent | 76deef138ee25ab57b4716aef41ce0c94081f20a (diff) |
glsl: Add built-in variables for GLSL ES 1.00.
Diffstat (limited to 'src/glsl/builtin_variables.h')
-rw-r--r-- | src/glsl/builtin_variables.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.h b/src/glsl/builtin_variables.h index a7dbe480e96..a34c67e3481 100644 --- a/src/glsl/builtin_variables.h +++ b/src/glsl/builtin_variables.h @@ -39,6 +39,13 @@ static const builtin_variable builtin_core_fs_variables[] = { { ir_var_in, FRAG_ATTRIB_WPOS, "vec4", "gl_FragCoord" }, { ir_var_in, FRAG_ATTRIB_FACE, "bool", "gl_FrontFacing" }, { ir_var_out, FRAG_RESULT_COLOR, "vec4", "gl_FragColor" }, +}; + +static const builtin_variable builtin_100ES_fs_variables[] = { + { ir_var_in, FRAG_ATTRIB_PNTC, "vec2", "gl_PointCoord" }, +}; + +static const builtin_variable builtin_110_fs_variables[] = { { ir_var_out, FRAG_RESULT_DEPTH, "float", "gl_FragDepth" }, }; |