Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / spv.fragmentShaderBarycentric4.frag
1 #version 320 es
2 #extension GL_EXT_fragment_shader_barycentric : require
3
4 precision highp float;
5
6 layout(location = 0) pervertexEXT in float vertexIDs[3];
7       
8 layout(location = 1) out float value;
9       
10 void main () {
11     value = (gl_BaryCoordNoPerspEXT.x * vertexIDs[0] +
12              gl_BaryCoordNoPerspEXT.y * vertexIDs[1] +
13              gl_BaryCoordNoPerspEXT.z * vertexIDs[2]);
14
15 }