GL_AMD_gpu_shader_half_float: add positive compiler tests
[piglit.git] / tests / spec / amd_gpu_shader_half_float / compiler / builtin-functions / angle-and-trigonometry / atan-f16vec2.vert
blobfa028d0d634e7e1504879eb76b1a692135071a7d
1 // [config]
2 // expect_result: pass
3 // glsl_version: 4.00
4 // require_extensions: GL_AMD_gpu_shader_half_float
5 // [end config]
6 //
7 // Tests use of half float with atan() builtin
9 #version 400
10 #extension GL_AMD_gpu_shader_half_float : enable
12 f16vec2 test() {
14         float16_t x = 0.999HF;
15         float16_t y = 0.555HF;
17         return atan(f16vec2(x)) + atan(f16vec2(y), f16vec2(x));