I’m porting a project over from an older version of Touch into the latest vulkan release and I’m getting a ‘#extension’ : extension not supported: GL_EXT_gpu_shader4’ error message.
Thanks for the quick response. I was just about to delete this thread as I’ve found a solution. It involves replacing “textureSize2D” with “textureSize”, “texture2D” with “texture” and “uniform sampler2D src” with sTD2DInputs.
You can’t sample your texture outside of the main() function. This line: vec3 c = texture(src, uv).xyz;
should be vec3 c = texture(sTD2DInputs[0], uv).xyz;
GLSL requires that all outputs be written for each EmitVertex() call. You can’t assume the values you wrote to an output earlier in the shader will still be valid without re-writting it, even if it’s the same value. The results are undefined, Different GPUs and API will have different behaviors, including seeming to work.