GPU: a shader with more than 8 textures samples some of them as zero (maxSamplers says 16)

Version: rive 1.8.0 and 1.9.1, Windows 11 x64, `rive . --screenshot`.


texture-count.zip

A WGSL shader with more than 8 textures samples some of them as zero, although `context.features()` reports `maxSamplers` 16.

Repro (attached, 4 files): `probe.wgsl` declares 12 textures, 3 in each of bind groups 0–3, with one sampler per group. It draws each texture as one vertical stripe. `main.as` binds a solid 1x1 colour in each. Run `rive . --screenshot=out.png --advance=2`.

Expected: 12 coloured stripes.

Actual on 1.8.0 (8 runs):

- Textures 1–6 always sample correctly.

- Textures 7 and 8 sample correctly in some runs only.

- Textures 9–12 never do; they show the grey artboard behind.

Actual on 1.9.1: only textures 1–6 sample correctly.

What I checked:

- With 8 textures or fewer, everything samples correctly in every run.

- With 16 textures, the first 8 sample and the other 8 don't.

- A sampler per texture instead of one per group gives the same result, so it's the texture count, not the sampler count.

- With 9 or 10 textures, the failing ones aren't only the last ones. They change with the layout and even with the variable names.

- `--gpu-manifest` shows the expected layouts and bind groups, with the right texture at every binding.

Is there a limit of 8 textures per shader on this backend? If so, could `features()` report it? If not, this looks like a bug in how textures are assigned to slots.