mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-24 10:50:54 +00:00
Set default precision specifiers earlier in GLES shader
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user