-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGPU] bind group dynamic offsets are not implemented correctly, th…
…ey don't correspond to the proper stage https://bugs.webkit.org/show_bug.cgi?id=266815> <radar://120049732> Reviewed by Tadeu Zagallo. Dynamic offsets assumed buffers had linearly increasing bind group indices, which does not necessarily hold and is not the case in Unity's demos. Break this assumption by computing the corresponding index from the source dynamic offsets buffer during bind group layout generation time. Then use this precomputed index instead of a linearly increasing value in the PipelineLayout. * Source/WebGPU/WebGPU/BindGroupLayout.h: * Source/WebGPU/WebGPU/BindGroupLayout.mm: (WebGPU::Device::createBindGroupLayout): * Source/WebGPU/WebGPU/PipelineLayout.mm: (WebGPU::PipelineLayout::offsetVectorForBindGroup): Canonical link: https://commits.webkit.org/272522@main
- Loading branch information
1 parent
b50f9a0
commit ca38202
Showing
3 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters