Skip to content

Unable to use the plugin on DX12 after 0.37 update #429

@mnmaita

Description

@mnmaita

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):

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions