Trying to figure out why input attachment reads as black with NSight VS plugin - and failing.
This is what i can see at the invocation point of the shader:
* attachment is filled with correct data (just a clear to bright red in previous renderpass) and used by the fragment shader:
// SPIR-V decompiled to GLSL
#version 450
layout(binding = 0) uniform sampler2D accum;
// originally: layout(input_attachment_index=0, set=0, binding=0) uniform subpassInput accum;
layout(location = 0) out vec4 fbFinal;
void main(){
fbFinal = vec4(texelFetch(accum, ivec2(gl_FragCoord.xy), 0).xyz + vec3(0.0, 0.0, 1.0), 1.0);
// originally: fbFinal = vec4(subpassLoad(accum).rgb + vec3(0.0, 0.0, 1.0), 1.0);
}
* the resulting image is bright blue - instead of the expected bright purple (red+blue)
How can this happen?
'fbFinal' format is B8G8R8A8_UNORM and 'accum' format is R16G16B16A16_UNORM - ie. nothing weird.