Set default precision specifiers earlier in GLES shader

This commit is contained in:
baldurk
2020-08-07 12:46:17 +01:00
parent efd2c03430
commit 9858f516d0
+11 -11
View File
@@ -42,17 +42,6 @@ layout(push_constant) uniform PushData
#else // !VULKAN
// for GLES compatibility where we must match blit.vert
in vec2 uv;
uniform DiscardUBOData
{
vec4 pattern[(PATTERN_WIDTH * PATTERN_HEIGHT) / 4];
}
Pattern;
uniform uint flags;
#if defined(OPENGL_ES)
// GLES requires shader specification of locations
@@ -69,6 +58,17 @@ precision highp int;
#endif
// for GLES compatibility where we must match blit.vert
in vec2 uv;
uniform DiscardUBOData
{
vec4 pattern[(PATTERN_WIDTH * PATTERN_HEIGHT) / 4];
}
Pattern;
uniform uint flags;
#endif
FRAG_OUT(0) out vec4 col0;