summaryrefslogtreecommitdiffstats
path: root/Graphics/GLSLTools
diff options
context:
space:
mode:
authorEgor <egor.yusov@gmail.com>2019-10-13 02:48:28 +0000
committerEgor <egor.yusov@gmail.com>2019-10-13 02:48:28 +0000
commita301d715ccd830ab8b5f15c4432efea0d8d1db86 (patch)
tree3b8baa4b72201fd7535d0e8c73f71808806c5ac9 /Graphics/GLSLTools
parentOpenGL buffer implementation: removed MapWriteDiscardBugWA (diff)
downloadDiligentCore-a301d715ccd830ab8b5f15c4432efea0d8d1db86.tar.gz
DiligentCore-a301d715ccd830ab8b5f15c4432efea0d8d1db86.zip
GL backend: fixed few GLES issues
Diffstat (limited to 'Graphics/GLSLTools')
-rw-r--r--Graphics/GLSLTools/src/GLSLSourceBuilder.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp b/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp
index b41b49c1..9079039f 100644
--- a/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp
+++ b/Graphics/GLSLTools/src/GLSLSourceBuilder.cpp
@@ -143,6 +143,15 @@ String BuildGLSLSourceString(const ShaderCreateInfo& CreationAttribs,
"precision highp usampler2DArray;\n"
);
+ if (IsES32OrAbove)
+ {
+ GLSLSource.append(
+ "precision highp samplerBuffer;\n"
+ "precision highp isamplerBuffer;\n"
+ "precision highp usamplerBuffer;\n"
+ );
+ }
+
if (deviceCaps.TexCaps.bCubemapArraysSupported)
{
GLSLSource.append(
@@ -180,6 +189,14 @@ String BuildGLSLSourceString(const ShaderCreateInfo& CreationAttribs,
"precision highp uimageCube;\n"
"precision highp uimage2DArray;\n"
);
+ if (IsES32OrAbove)
+ {
+ GLSLSource.append(
+ "precision highp imageBuffer;\n"
+ "precision highp iimageBuffer;\n"
+ "precision highp uimageBuffer;\n"
+ );
+ }
}
if (IsES30 && deviceCaps.bSeparableProgramSupported && ShaderType == SHADER_TYPE_VERTEX)