Skip to content

Deferred rendering example fails on WebGL2 #23975

@DGriffin91

Description

@DGriffin91

Bevy main 889d88c

Tested in chrome and firefox on linux. I believe this issue can also affect webgpu or other platforms with a texture binding limit of 16. I tried it with webgpu on chrome on windows and it did run as the browser returned 48 from maxSampledTexturesPerShaderStage rather than the default of 16.

This is not a duplicate of #23627 or #23956

The deferred rendering example works as expected in firefox and chrome on linux with WebGL2 in bevy 0.18.1

AdapterInfo { name: "ANGLE (NVIDIA Corporation, NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2, OpenGL ES 3.2)", vendor: 4318, device: 0, device_type: Other, device_pci_bus_id: "", driver: "", driver_info: "WebGL 2.0 (OpenGL ES 3.0 Chromium)", backend: Gl, subgroup_min_size: 4, subgroup_max_size: 128, transient_saves_memory: false }
Caused by: In Device::create_pipeline_layout 
Too many bindings of type SampledTextures in Stage ShaderStages(FRAGMENT) 
limit is 16, count was 18. Check the limit max_sampled_textures_per_shader_stage passed to Adapter::request_device

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-WebGL2Specific to the WebGL2 render APIP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-ReviewNeeds reviewer attention (from anyone!) to move forward

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions