WebGPU error for Fox.glb when using GeometryBuffer

I’m hitting an error, only in WebGPU, when enabling the GeometryBuffer for a particular skinned model with animation.

The model is the Fox model from the glTF sample assets but I’m not sure how to reference it from my playground test:

The error I hit is this:

BJS - [16:26:10]: WebGPU uncaptured error (1): [object GPUValidationError] - Vertex range (first: 0, count: 1728) requires a larger buffer (6912) than the bound buffer size (4) of the vertex buffer at slot 1 with stride 4.
 - While encoding [RenderPassEncoder "gBuffer - RenderPass"].Draw(1728, 1, 0, 0).
 - While finishing [CommandEncoder "render"].

Debug group stack:
 > "render to face #0 layer #0"
 > "render target pass (gBuffer)"

See here in the Docs - Babylon.js docs

Your model will have the next URL: https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/main/2.0/Fox/glTF-Binary/Fox.glb

1 Like

Dude, you’re wrangling skinned animations and geometry buffers and this is the thing you didn’t Google? I’m sorry, I had to… :smiling_face_with_sunglasses:

This PR will fix the problem:

1 Like

Thanks, guys :slight_smile:

Yes, I admit I didn’t put a huge amount of effort into Googling that :slight_smile:

2 Likes