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

Swap chain independent rendering resolution #2976

Closed
VVishion opened this issue Oct 15, 2021 · 2 comments
Closed

Swap chain independent rendering resolution #2976

VVishion opened this issue Oct 15, 2021 · 2 comments
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible

Comments

@VVishion
Copy link
Contributor

VVishion commented Oct 15, 2021

What problem does this solve or what need does it fill?

Rendering in resolutions other than the swap chains' one.
This is needed for e.g. pixel art renderings.

What solution would you like?

I guess the most intuitive solution is rendering to an intermediate texture and then rendering that to the screen.

What alternative(s) have you considered?

Additional context

I have taken a look at it myself. But unfortunatelly I am still massively uncertain how the renderer will evolve - iirc it is currently sync, but will get async - Will a node edge from main_pass_driver garantuee the subgraphs to be completed before the appended node? Is a node even the proper way to include this functionality?
Furthermore, rendering to a texture depends on an implementation of RenderTargets and maybe this is intended to be solved by Viewports..?

@VVishion VVishion added C-Feature A new feature, making something new possible S-Needs-Triage This issue needs to be labelled labels Oct 15, 2021
@bjorn3
Copy link
Contributor

bjorn3 commented Oct 16, 2021

Another use would be benchmarks where you need to render at a fixed resolution independent of the display size for reproducible benchmark scores.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen and removed S-Needs-Triage This issue needs to be labelled labels Oct 18, 2021
@nicopap
Copy link
Contributor

nicopap commented Apr 18, 2023

Bevy now supports this since camera driven rendering (#4745). There is even an example: https://github.com/bevyengine/bevy/blob/main/examples/3d/render_to_texture.rs

@nicopap nicopap closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Feature A new feature, making something new possible
Projects
None yet
Development

No branches or pull requests

4 participants