WebGPU & SpriteMap not working

Hi, there!
I’m new to Babylon.js and was following some examples on the docs.

I was reading about SpriteMap and using tiles while experimenting with a project of my own. I’m using WebGPU as default engine.

When I tried to render the scene, I got tons of warnings in the console and it stopped working.
You can reproduce the same error here by selecting WebGPU as the engine.

Am I doing something wrong? Is this a known bug (I couldn’t find anything about it)?
Do I need to open a bug on GitHub?


Welcome aboard!

There’s a bug, indeed, here’s the fix: