Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebGPU: Create error shader module when the shader contains \0
This patch creates an error GPUShaderModule when the WGSL shader code contains '\0' as the WebGPU SPEC doesn't allow having '\0' in any WGSL shader. As any characters in WGSL comments will be ignored in Tint, we can only do this check before passing the WGSL shader code into Tint. Fixed: dawn:1345 Change-Id: Ic915354c36f416f4058b5c88a4579725b44827bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4568588 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Cr-Commit-Position: refs/heads/main@{#1150226}
- Loading branch information