-
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 layout with multiple external textures does not work
https://bugs.webkit.org/show_bug.cgi?id=262550 <radar://116403353> Reviewed by Dan Glastonbury. When external textures are used, they can expand to more than one bind slot per source, so binding.index != (not necessarily) [id(k)]. Build a mapping and pass it to the compiler. The reverse we don't yet need, since the bind group layout returned from the compiler breaks down the external texture into its subcomponents. * Source/WebGPU/WGSL/WGSL.h: * Source/WebGPU/WebGPU/BindGroup.mm: (WebGPU::Device::createBindGroup): * Source/WebGPU/WebGPU/BindGroupLayout.h: * Source/WebGPU/WebGPU/BindGroupLayout.mm: (WebGPU::Device::createBindGroupLayout): (WebGPU::BindGroupLayout::argumentBufferIndexForEntryIndex const): * Source/WebGPU/WebGPU/RenderPipeline.mm: (WebGPU::Device::addPipelineLayouts): * Source/WebGPU/WebGPU/ShaderModule.mm: (WebGPU::ShaderModule::convertPipelineLayout): Canonical link: https://commits.webkit.org/268860@main
- Loading branch information
1 parent
afd8057
commit b43510e
Showing
8 changed files
with
91 additions
and
101 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
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
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