GLSL->SPIR-V: Put precision decorations on imageLoad().

This commit is contained in:
John Kessenich
2017-10-19 02:07:30 -06:00
parent f0e35bf0ef
commit fe4e572c53
3 changed files with 77 additions and 11 deletions

View File

@@ -5,12 +5,20 @@ precision lowp int;
precision lowp float;
uniform lowp sampler2D s;
uniform highp sampler3D t;
layout(rgba32f) uniform lowp image2D i1;
layout(rgba32f) uniform highp image2D i2;
layout(location = 0) in lowp vec2 v;
layout(location = 0) in lowp vec2 v2;
layout(location = 1) in lowp vec3 v3;
layout(location = 3) flat in lowp ivec2 iv2;
layout(location = 0) out lowp vec4 color;
void main()
{
color = texture(s, v);
color = texture(s, v2);
color = texture(t, v3);
lowp vec4 vi1 = imageLoad(i1, iv2);
lowp vec4 vi2 = imageLoad(i2, iv2);
}