Description
Running a minimal Bevy app with the Hanabi particle system and the DXC shader compiler results in a DXC compile error during startup. Switching to the Vulkan backend or using the FXC compiler for DX12 fixes the issue.
Repro steps
Set up a simple Cargo project with the following file contents:
Cargo.toml
[package]
name = "wgpu-dxc-error"
version = "0.1.0"
edition = "2021"
[dependencies]
bevy = "0.13.2"
bevy_hanabi = "0.10.0"
Description Running a minimal Bevy app with the Hanabi particle system and the DXC shader compiler results in a DXC compile error during startup. Switching to the Vulkan backend or using the FXC compiler for DX12 fixes the issue.
Repro steps
Cargo.toml
src\main.rs
dxcompiler.dll
anddxil.dll
files in your project folder.cargo run
.Alternatively for step 1, check out this repository.
Expected vs observed behavior
Expected behavior: An empty window opens up and stays open. Observed behavior: An empty window opens up and closes immediately.
Extra materials
The following logs are produced:
It almost appears as if the shader module label
hanabi:vfx_indirect_shader
defined here is interpreted as a file path in DXC here?Platform WGPU: 0.19.4 OS: Windows 11 23H2 (22631.3447) GPU: AMD Radeon RX 6600 (driver version 24.4.1)