Bug 1824871 Comment 11 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Actually, the relevant error is this:

```
JavaScript warning: , line 0: Error in Device::create_render_bundle_encoder: the number of color attachments 9 exceeds the limit 8
```

This is reported here, I think:

https://searchfox.org/mozilla-central/rev/54c533e94ae786056a43231f230c7d9b0773cb80/third_party/rust/wgpu-core/src/command/bundle.rs#182-187
```rust
return Err(CreateRenderBundleError::ColorAttachment(
    ColorAttachmentError::TooMany {
        given: desc.color_formats.len(),
        limit: hal::MAX_COLOR_ATTACHMENTS,
    },
));
```

It's caused by this call in the test case:

```
        const encoder = device.createRenderBundleEncoder({
          'colorFormats': ['rg8uint', 'bc6h-rgb-ufloat', 'rg32float', 'rg32float', 'depth32float', 'r8unorm', 'rg32uint', 'rgba32sint', 'rg8unorm'],
        })
```

This provides formats for nine color attachments, but only eight are supported. It seems like something is not dealing with the failure to create the render bundle encoder.
(deleted; commented on wrong bug)

Back to Bug 1824871 Comment 11