bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
35.02k stars 3.43k forks source link

WebGPU in firefox nightly fails to load when shadows enabled #9316

Open TotalKrill opened 1 year ago

TotalKrill commented 1 year ago

Bevy version

https://bevyengine.org/examples-webgpu/3D%20Rendering/3d-scene/

[Optional] Relevant system information

Manjaro linux, firefox nightly 117 ( 2023-07-30)

 Hardware Class: graphics card
  Device Name: "Onboard - Video"
  Model: "Intel AlderLake-S GT1"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x4680 "AlderLake-S GT1"

AdapterInfo { name: "", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: BrowserWebGpu }

What you did

Tested all webgpu examples hosted on the website. Some of the 3D examples fails.

What went wrong

Examples does not render on some of the 3D ones.

Additional information

Seems to be when shadows are enabled on the lightsources

example with shadows: image

example without shadows: image

nicopap commented 1 year ago

I can reproduce. Tested on Firefox Nightly 118.0a1 - archlinux

AdapterInfo {
name: "AMD Radeon RX 5700 XT (RADV NAVI10)",
vendor: 4098,
device: 29471,
device_type: DiscreteGpu,
driver: "radv",
driver_info: "Mesa 23.1.5",
backend: Vulkan }

Only examples without shadows work.

Copy/paste-able string:

⚠ In a draw command, indexed:true indirect:false,
caused by: The pipeline layout, associated with the current render pipeline,
contains a bind group layout at index 0 which is incompatible with
the bind group layout associated with the bind group at 0
⚠ In a pass parameter, caused by: Command encoder is invalid
⚠ Command encoder is invalid 
mockersf commented 1 year ago

until Firefox support is official, this is likely a bug in Firefox...

https://bugzilla.mozilla.org/buglist.cgi?product=Core&component=Graphics%3A%20WebGPU&bug_status=__open__