-
-
Notifications
You must be signed in to change notification settings - Fork 310
Description
I'm currently upgrading a project to Bevy 0.17 and I'm using the WorldInspectorPlugin from bevy-inspector-egui in it, which requires the EguiPlugin from bevy_egui. I'm getting the following error when as soon as I run the app:
Internal error in ShaderStages(FRAGMENT) shader: HLSL: Unimplemented("push-constant 'offset' has non-struct type; tracked by: https://github.com/gfx-rs/wgpu/issues/5683")
It looks like the problem lies on this shader (the push_constant var):
bevy_egui/src/render/egui.wgsl
Line 23 in 2bf1934
| var<push_constant> offset: u32; |
wgpu devs acknowledge that this is a bug on their end while using DX12 as backend. I wonder if there are any workarounds for this to be applied to this shader code in the meantime. It works well when using Vulkan but our app performance tanked very hard on Windows machines after some of the recent upgrades (and I'm still trying to figure out which update caused these big perf regressions).