bevyengine / bevyengine/bevy

Fragment Stage Exceeds Maximum Sampled Textures Limit on the web

Open
#13,974 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug O-Web O-WebGPU S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.14.0-rc.3

## \[Optional\] Relevant system information

macOS 15 (M1 Max), Rust v1.79, Chrome v126

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

## What you did

I tried to compile the [bevy_bistro_scene](https://github.com/DGriffin91/bevy_bistro_scene) to run it in the browser. Even when only loading `bistro_interior_wine.gltf` with the texture resolution halved, the GLTF still cannot be rendered correctly.

## What went wrong

```log
INFO /Users/lijinlei/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_diagnostic-0.14.0-rc.3/src/log_diagnostics_plugin.rs:93 frame_count: 138.000000 (avg 78.500000)
127.0.0.1/:1 The number of sampled textures (17) in the Fragment stage exceeds the maximum per-stage limit (16).
- While calling [Device].CreatePipelineLayout([PipelineLayoutDescriptor]).

127.0.0.1/:1 [Invalid PipelineLayout (unlabeled)] is invalid.
- While calling [Device].CreateRenderPipeline([RenderPipelineDescriptor "pbr_opaque_mesh_pipeline"]).

127.0.0.1/:1 [Invalid PipelineLayout (unlabeled)] is invalid.
- While calling [Device].CreateRenderPipeline([RenderPipelineDescriptor "pbr_alpha_blend_mesh_pipeline"]).

127.0.0.1/:1 [Invalid PipelineLayout (unlabeled)] is invalid.
- While calling [Device].CreateRenderPipeline([RenderPipelineDescriptor "pbr_opaque_mesh_pipeline"]).

127.0.0.1/:1 [Invalid PipelineLayout (unlabeled)] is invalid.
- While calling [Device].CreateRenderPipeline([RenderPipelineDescriptor "pbr_alpha_blend_mesh_pipeline"]).

165[Invalid RenderPipeline "pbr_alpha_blend_mesh_pipeline"] is invalid.
- While encoding [RenderPassEncoder "main_transparent_pass_3d"].SetPipeline([Invalid RenderPipeline "pbr_alpha_blend_mesh_pipeline"]).

165[Invalid RenderPipeline "pbr_opaque_mesh_pipeline"] is invalid.
- While encoding [RenderPassEncoder "main_opaque_pass_3d"].SetPipeline([Invalid RenderPipeline "pbr_opaque_mesh_pipeline"]).

165[Invalid CommandBuffer "main_opaque_pass_3d_command_encoder" from CommandEncoder "main_opaque_pass_3d_command_encoder"] is invalid.
- While calling [Queue].Submit([[CommandBuffer], [CommandBuffer "prepass_command_encoder" from CommandEncoder "prepass_command_encoder"], [CommandBuffer], [CommandBuffer "shadow_pass_command_encoder" from CommandEncoder "shadow_pass_command_encoder"], [CommandBuffer "shadow_pass_command_encoder" from CommandEncoder "shadow_pass_command_encoder"], [CommandBuffer "shadow_pass_command_encoder" from CommandEncoder "shadow_pass_command_encoder"], [CommandBuffer "shadow_pass_command_encoder" from CommandEncoder "shadow_pass_command_encoder"], [CommandBuffer], [Invalid CommandBuffer "main_opaque_pass_3d_command_encoder" from CommandEncoder "main_opaque_pass_3d_command_encoder"], [Invalid CommandBuffer]])

bistro.js:192 [Violation] 'requestAnimationFrame' handler took 92ms
```

## Additional information

Screenshot 2024-06-22 at 17 17 25

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.