mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-19 21:42:59 +01:00
Fix GpuShader5 extension on Intel and support 'bitsTo' functions (#2118)
GpuShader5 extension isn't supported on fragment shaders. Bumps the GLSL version to support the 'bitsTo' functions when present on the shader.
This commit is contained in:
@@ -6135,7 +6135,12 @@ namespace bgfx { namespace gl
|
||||
&& !bx::findIdentifierMatch(code, s_EXT_gpu_shader4).isEmpty()
|
||||
;
|
||||
|
||||
const bool usesGpuShader5 = !bx::findIdentifierMatch(code, s_ARB_gpu_shader5).isEmpty();
|
||||
// GpuShader5 extension is not supported on the fragment shader!
|
||||
const bool usesGpuShader5 = true
|
||||
&& m_type != GL_FRAGMENT_SHADER
|
||||
&& !bx::findIdentifierMatch(code, s_ARB_gpu_shader5).isEmpty()
|
||||
;
|
||||
|
||||
const bool usesIUsamplers = !bx::findIdentifierMatch(code, s_uisamplers).isEmpty();
|
||||
const bool usesUint = !bx::findIdentifierMatch(code, s_uint).isEmpty();
|
||||
const bool usesTexelFetch = !bx::findIdentifierMatch(code, s_texelFetch).isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user