-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Add binned 2d/3d Wireframe render phase #18587
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
Conversation
And #17737 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to remove a bit of duplication between 2d and 3d, but it's fine as is.
color: vec4<f32>, | ||
}; | ||
struct PushConstants { | ||
color: vec4<f32> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI push constants aren't available on WebGPU. Idk how we feel about requiring them for wireframes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wireframes require the POLYGON_MODE_LINE
feature which isn't available on web.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025-04-06T19:46:04.258711Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (Pop!_OS 22.04)", kernel: "6.12.10-76061203-generic", cpu: "AMD Ryzen 9 7950X 16-Core Processor", core_count: "16", memory: "61.9 GiB" }
2025-04-06T19:46:04.402175Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3070", vendor: 4318, device: 9348, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "565.77", backend: Vulkan }
2025-04-06T19:46:04.943835Z INFO bevy_winit::system: Creating new window wireframe (0v1)
2025-04-06T19:46:04.943952Z INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 2
2025-04-06T19:46:05.323457Z WARN bevy_render::view::window: Couldn't get swap chain texture after configuring. Cause: 'The underlying surface has changed, and therefore the swap chain must be updated'
2025-04-06T19:46:05.349754Z WARN bevy_render::view::window: Couldn't get swap chain texture after configuring. Cause: 'The underlying surface has changed, and therefore the swap chain must be updated'
2025-04-06T19:46:21.165852Z INFO bevy_window::system: No windows are open, exiting
2025-04-06T19:46:21.168408Z INFO bevy_winit::system: Closing window 0v1
2025-04-06T19:43:56.514546Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux (Pop!_OS 22.04)", kernel: "6.12.10-76061203-generic", cpu: "AMD Ryzen 9 7950X 16-Core Processor", core_count: "16", memory: "61.9 GiB" }
2025-04-06T19:43:56.663878Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3070", vendor: 4318, device: 9348, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "565.77", backend: Vulkan }
2025-04-06T19:43:57.231557Z INFO bevy_winit::system: Creating new window App (0v1)
2025-04-06T19:43:57.231678Z INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 2
2025-04-06T19:43:57.497651Z WARN bevy_render::view::window: Couldn't get swap chain texture after configuring. Cause: 'The underlying surface has changed, and therefore the swap chain must be updated'
2025-04-06T19:43:57.538660Z WARN bevy_render::view::window: Couldn't get swap chain texture after configuring. Cause: 'The underlying surface has changed, and therefore the swap chain must be updated'
2025-04-06T19:44:01.095167Z WARN bevy_render::view::window: Couldn't get swap chain texture after configuring. Cause: 'The underlying surface has changed, and therefore the swap chain must be updated'
2025-04-06T19:44:07.322743Z INFO bevy_window::system: No windows are open, exiting
2025-04-06T19:44:07.325725Z INFO bevy_winit::system: Closing window 0v1
# Objective Fixes #16896 Fixes #17737 ## Solution Adds a new render phase, including all the new cold specialization patterns, for wireframes. There's a *lot* of regrettable duplication here between 3d/2d. ## Testing All the examples. ## Migration Guide - `WireframePlugin` must now be created with `WireframePlugin::default()`.
Objective
Fixes #16896
Fixes #17737
Solution
Adds a new render phase, including all the new cold specialization patterns, for wireframes. There's a lot of regrettable duplication here between 3d/2d.
Testing
All the examples.
Migration Guide
WireframePlugin
must now be created withWireframePlugin::default()
.