1#version 310 es 2 3precision highp sampler; 4precision highp samplerShadow; 5precision highp texture2DArray; 6precision highp itexture2D; 7precision highp itexture3D; 8precision highp itextureCube; 9precision highp itexture2DArray; 10precision highp utexture2D; 11precision highp utexture3D; 12precision highp utextureCube; 13precision highp utexture2DArray; 14precision highp texture3D; 15precision highp float; 16 17layout(binding = 0) uniform sampler s; 18layout(binding = 1) uniform samplerShadow sShadow; 19layout(binding = 2) uniform sampler sA[4]; 20layout(binding = 3) uniform texture2D t2d; 21layout(binding = 4) uniform texture3D t3d[4]; 22layout(location = 0) flat in int i; 23 24layout(location = 0) out vec4 color; 25 26void main() 27{ 28 color = texture(sampler2D(t2d, s), vec2(0.5)); 29 color += texture(sampler3D(t3d[1], sA[2]), vec3(0.5)); 30 color += texture(sampler2D(t2d, s), vec2(0.5)); 31} 32 33layout(binding = 5) uniform texture2D tex2D; 34layout(binding = 6) uniform textureCube texCube; 35layout(binding = 15) uniform texture2DArray tex2DArray; 36layout(binding = 16) uniform itexture2D itex2D; 37layout(binding = 17) uniform itexture3D itex3D; 38layout(binding = 18) uniform itextureCube itexCube; 39layout(binding = 19) uniform itexture2DArray itex2DArray; 40layout(binding = 20) uniform utexture2D utex2D; 41layout(binding = 21) uniform utexture3D utex3D; 42layout(binding = 22) uniform utextureCube utexCube; 43layout(binding = 23) uniform utexture2DArray utex2DArray; 44layout(binding = 36) uniform texture3D tex3D; 45 46void foo() 47{ 48 sampler2D (tex2D, s); 49 samplerCube (texCube, s); 50 samplerCubeShadow (texCube, sShadow); 51 sampler2DArray (tex2DArray, s); 52 sampler2DArrayShadow (tex2DArray, sShadow); 53 isampler2D (itex2D, s); 54 isampler3D (itex3D, s); 55 isamplerCube (itexCube, s); 56 isampler2DArray (itex2DArray, s); 57 usampler2D (utex2D, s); 58 usampler3D (utex3D, s); 59 usamplerCube (utexCube, s); 60 usampler2DArray (utex2DArray, s); 61 sampler3D (tex3D, s); 62 sampler2DShadow (tex2D, sShadow); 63} 64