bevyengine / bevy

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

WebGL2 support broken: index out of bounds #11885

Closed DGriffin91 closed 8 months ago

DGriffin91 commented 8 months ago

Bevy version fe777d5c3fba64bec250b8ced3a6ba98fbd07a64

The deferred rendering example is broken on WebGL2 (And will also be broken on WebGPU, I expect).

The issue was introduced at https://github.com/bevyengine/bevy/commit/4c15dd0fc52a539a9bd41452cdae7fd07ec77134 with https://github.com/bevyengine/bevy/pull/10268

panicked at [...]\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-hal-0.19.1\src\gles\command.rs:749:21:
index out of bounds: the len is 16 but the index is 16
mockersf commented 8 months ago

the error message is different with WebGPU, but it could be the same error with a more explicit log:

The number of sampled textures (17) in the Fragment stage exceeds the maximum per-stage limit (16).
 - While calling [Device].CreatePipelineLayout([PipelineLayoutDescriptor]).
superdump commented 8 months ago

https://github.com/bevyengine/bevy/pull/10268/files#r1468773590

alice-i-cecile commented 8 months ago

This should be fixed by https://github.com/bevyengine/bevy/pull/11893 correct?

DGriffin91 commented 8 months ago

@alice-i-cecile No, this is a separate issue.