Skip to content

conservative max_storage_buffers_per_shader_stage #9287

@ChristopherBiscardi

Description

@ChristopherBiscardi

Description

While upgrading Bevy to wgpu 29 (pr link), we're seeing new validation limits on macos m-series that lower the max_storage_buffers_per_shader_stage to 8.

Unfortunately, our early and late occlusion culling pipelines use 10 and 9 bindings respectively, which leads to occlusion culling breaking on macos specifically (other platforms seem fine).

Repro steps

  1. check out Bevy's wgpu 29 PR: Wgpu 29 bevyengine/bevy#23277
  2. Run an example like cargo run --example 3d_scene or the occlusion-culling specific cargo run --example occlusion_culling. They both show the validation issue, but the occlusion culling example will spam the output, making it harder to read.

Expected vs observed behavior

The limits seem to be too low (or perhaps we should set them differently now?), since this behavior was working in bevy v0.18.1, before the new limits.

Platform

macos m-series, wgpu 29

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions