Usecase:
In Ramses Composer while building an offscreen render target and working with it, it can easily happen that one of the offscreen render buffers becomes invalid (e. g. its size does not match anymore). This currently causes all buffers in the same render target after the invalid buffer to change their GL_COLOR_ATTACHMENT index (shift forward). For more complex rendering scenarios with more than one render buffer on a target, this can get quite confusing, as the user-defined shaders rely on specific offscreen buffers being in specific slots.
Suggestion:
It would be nice if RaCo could specify the color attachment index when setting up the render target, e. g. either if there would be an additional functions RenderTargetDescription::setNumberOfColorRenderBufferSlots(int) and RenderTargetDescription::setRenderBuffer(int colorIndex, const RenderBuffer& renderBuffer). If this is possible, empty slots could be passed on to glDrawBuffers as GL_NONE?