diff options
Diffstat (limited to 'tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-const-builtin-lrp.shader_test')
-rw-r--r-- | tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-const-builtin-lrp.shader_test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-const-builtin-lrp.shader_test b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-const-builtin-lrp.shader_test new file mode 100644 index 000000000..1fdcb962b --- /dev/null +++ b/tests/spec/arb_gpu_shader_fp64/execution/built-in-functions/glsl-double-const-builtin-lrp.shader_test @@ -0,0 +1,20 @@ +[require] +GLSL >= 1.50 +GL_ARB_gpu_shader_fp64 + +[vertex shader passthrough] + +[fragment shader] +#version 150 +#extension GL_ARB_gpu_shader_fp64 : enable +void main() +{ + const dvec4 red = dvec4(1.0, 0.0, 0.0, 1.0); + const dvec4 blue = dvec4(0.0, 0.0, 1.0, 1.0); + const dvec4 mixer = dvec4(0.5); + gl_FragColor = vec4(mix(red, blue, mixer)); +} + +[test] +draw rect -1 -1 2 2 +probe all rgb 0.5 0.0 0.5 |