diff options
Diffstat (limited to 'tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag')
-rw-r--r-- | tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag new file mode 100644 index 000000000..8a90994e5 --- /dev/null +++ b/tests/spec/glsl-es-3.00/compiler/const-initializer/from-function.frag @@ -0,0 +1,17 @@ +#version 300 es + +/* [config] + * expect_result: pass + * glsl_version: 3.00 + * [end config] + */ + +precision mediump float; + +const float f = cos(0.0); +out vec4 fragdata; + +void main() +{ + fragdata = vec4(f); +} |