Added support for the extension OES_EGL_image_external(_essl3) for GLES2/3 (#2021)

Co-authored-by: Gabriel <gabriel.sulka@visiarc.com>
This commit is contained in:
G
2020-04-06 17:20:49 +02:00
committed by GitHub
parent 47d3540530
commit f07a0f5179
5 changed files with 259 additions and 15 deletions

View File

@@ -83,6 +83,12 @@ namespace bgfx
NULL
};
static const char* s_OES_EGL_image_external[] =
{
"samplerExternalOES",
NULL
};
static const char* s_EXT_gpu_shader4[] =
{
"gl_VertexID",
@@ -2181,6 +2187,11 @@ namespace bgfx
bx::stringPrintf(code, "#extension GL_OES_texture_3D : enable\n");
}
if (!bx::findIdentifierMatch(input, s_OES_EGL_image_external).isEmpty() )
{
bx::stringPrintf(code, "#extension GL_OES_EGL_image_external : enable\n");
}
if (!bx::findIdentifierMatch(input, s_EXT_shadow_samplers).isEmpty() )
{
bx::stringPrintf(code