Fixes for shader texture array in GLES3 (#2750)

* opengl: use texture for texture2DArray

* shaderc: Add default precision for sampler2DArray on GLES3
This commit is contained in:
Sandy
2022-03-29 16:14:21 -04:00
committed by GitHub
parent c0cbaf2a43
commit 251e35ae09
2 changed files with 9 additions and 3 deletions

View File

@@ -2372,6 +2372,11 @@ namespace bgfx
bx::stringPrintf(code, "precision highp int;\n");
}
if (glsl_profile >= 300)
{
bx::stringPrintf(code, "precision highp sampler2DArray;\n");
}
// Pretend that all extensions are available.
// This will be stripped later.
if (usesTextureLod)