sokol icon indicating copy to clipboard operation
sokol copied to clipboard

[webgpu] Bindgroups cache breaks down with init/uninit pattern.

Open floooh opened this issue 1 year ago • 0 comments

When a sokol-gfx resource is re-created via the uninit/init calls (so the same sokol-gfx handle is used for a different underlying resource) the BindsGroup cache needs to be invalidated, otherwise WebGPU will rightfully complain about a 'destroyed resource' being submitted.

To reproduce: remove the .wgpu_disable_bindgroups_cache = true in the dyntex3d-sapp sample.

floooh avatar Jun 19 '24 17:06 floooh