Skip to content

Commit

Permalink
fix: fixed binding group layout validation error
Browse files Browse the repository at this point in the history
WebGPU does not allow automatically inferred layouts to be shared between different pipelines
  • Loading branch information
re-ovo committed Nov 10, 2024
1 parent f5aea08 commit 6a7c7b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/utils/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function bindingsDescriptorEquals(
b.storageBufferBindings = b.storageBufferBindings || [];
b.storageTextureBindings = b.storageTextureBindings || [];

if (a.pipeline !== b.pipeline) return false;
if (a.samplerBindings.length !== b.samplerBindings.length) return false;
if (!arrayEqual(a.samplerBindings, b.samplerBindings, samplerBindingEquals))
return false;
Expand Down

0 comments on commit 6a7c7b0

Please sign in to comment.