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

Add wireframe mode toggle to debug menu #11880

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

torokati44
Copy link
Member

@torokati44 torokati44 commented Jul 4, 2023

This adds a checkbox to toggle wireframe mode to the debug menu.
Doing so by switching to an entirely different set of pipelines, with PolygonMode::Line, as suggested by @adrian17 and @Dinnerbone.
Those are created lazily, so hopefully they won't add any additional startup delay.

I'm not at all sure how this is how it should be done.
My main concern is inflating the RenderBackend trait too much with less relevant stuff.

image

@torokati44 torokati44 force-pushed the wgpu-debug-wireframe branch 2 times, most recently from eaad032 to c2a7322 Compare July 4, 2023 08:09
@torokati44 torokati44 force-pushed the wgpu-debug-wireframe branch 3 times, most recently from bd941ba to 21e0c9d Compare August 3, 2023 12:37
@torokati44 torokati44 marked this pull request as ready for review November 11, 2023 14:00
@torokati44 torokati44 added render-wgpu Issues relating to the wgpu renderer desktop waiting-on-review Waiting on review from a Ruffle team member labels Nov 11, 2023
@torokati44 torokati44 changed the title WIP: Add wireframe mode to debug menu Add wireframe mode toggle to debug menu Nov 11, 2023
@torokati44 torokati44 force-pushed the wgpu-debug-wireframe branch 2 times, most recently from 8201bde to f72a6e4 Compare November 11, 2023 14:15
@torokati44
Copy link
Member Author

Now it's done with renderer backend downcasting (desktop with egui can only work with wgpu at the moment anyway), and not through a needlessly inflated RendererBackend trait.

Should the "not supported" tooltip be localized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop render-wgpu Issues relating to the wgpu renderer waiting-on-review Waiting on review from a Ruffle team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant