WebGPU + GPUParticleSystem Error: Texture Sample Type Mismatch Crash

I’m using the WebGPU engine with GPUParticleSystem in my Babylon.js app. The app crashes with the following console error:

WebGPU uncaptured error (1): [object GPUValidationError] - None of the supported sample types (UnfilterableFloat) of [Texture "BabylonWebGPUDevice9_Texture2D_256x1x1_womips_r32float_samples1"] match the expected sample types (Float).

This seems related to texture sample types not matching the expected layout. It works with regular ParticleSystem.
Here’s the playground link to reproduce it: https://playground.babylonjs.com/#QK4GV5

The “float32-filterable” feature must be enabled to make it work, because we use R32 float textures. The easiest way is to just enable all features supported by the browser by passsing enableAllFeatures: true to the WebGPU engine constructor:

2 Likes

Thank you!