I'm trying to make some post-process with Compositor Effect.
However, if my project enables MSAA in Project Settings, directly using RenderSceneBuffersRD.GetColorLayer(0)
takes ERROR log with 'Image (binding: 0, index 0) needs the TEXTURE_USAGE_STORAGE_BIT usage flag set in order to be used as uniform.'
I tried to enable Compositor.AccessResolvedColor = true
and use RenderSceneBuffersRD.GetTexture("render_buffers", "color")
. This image is writable but it seems not output to the final rendering result.
So, is there any way to write color buffer when enabling MSAA?
( I'm going to try the texture slice view, but it is quite complex for separating msaa and no-msaa case. )