GL_AMD_gpu_shader_half_float: add positive compiler tests
[piglit.git] / tests / spec / amd_gpu_shader_half_float / compiler / builtin-functions / geometric / dot-f16vec2.vert
blob8f50e64870bb2f532ac0a6f0f544c44f6699cbfd
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 dot() builtin
9 #version 400
10 #extension GL_AMD_gpu_shader_half_float : enable
12 float16_t test() {
14         float16_t x = 0.123HF;
15         float16_t y = 0.456HF;
17         return dot(f16vec2(x), f16vec2(y));