Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The color buffer slot for an offscreen render buffer should not depend on other render buffers #52

Open
AchimStremplat opened this issue Sep 27, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@AchimStremplat
Copy link

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?

@violinyanev
Copy link
Member

Hi @AchimStremplat ! We discussed this and it would definitely make sense to implement a way to have empty buffer slots. The problem is that this would mean a breaking change in RAMSES and we can't do this in the current (27) version of Ramses without bumping the version. We will do this with the next RAMSES version (28)

@violinyanev violinyanev added the enhancement New feature or request label Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants