Fixes issue #252.
ERROR: 0:67: 'subroutine' : not allowed when generating SPIR-V
ERROR: 0:67: 'uniform' : no qualifiers allowed for function return
ERROR: 0:69: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
-ERROR: 31 compilation errors. No code generated.
+ERROR: 0:73: 'texture' : no matching overloaded function found
+ERROR: 0:74: 'imageStore' : no matching overloaded function found
+ERROR: 33 compilation errors. No code generated.
subroutine int fooSub(); // ERROR, not in SPV\r
\r
uniform vec4 dv4; // ERROR, no default uniforms\r
+\r
+void fooTex()\r
+{\r
+ texture(t2d, vec2(1.0)); // ERROR, need a sampler, not a pure texture\r
+ imageStore(t2d, ivec2(4, 5), vec4(1.2)); // ERROR, need an image, not a pure texture\r
+}
\ No newline at end of file
default: break; // some compilers want this
}
if (sampler.image)
- mangledName += "I";
+ mangledName += "I"; // a normal image
+ else if (sampler.sampler)
+ mangledName += "p"; // a "pure" sampler
+ else if (!sampler.combined)
+ mangledName += "t"; // a "pure" texture
else
- mangledName += "s";
+ mangledName += "s"; // traditional combined sampler
if (sampler.arrayed)
mangledName += "A";
if (sampler.shadow)