[tint][glsl] Directly create all replacements in texture_polyfill glsl.TexturePolyfill does several things one of which is introducing GLSL's CombinedTextureSamplerVar for all combinations of texture+sampler pairs statically used together in the shader (as well as for sampled textures used without a sampler). The logic used to create the CombinedTextureSamplerVar for texture+sampler pairs as a pre-processing step but then would create the ones for texture usages without samplers on demand, so that it could reuse one of the texture+sampler replacements as an optimization. Instead do the computation of the replacements for texture usages without samplers in a second step of the preprocess, simplifying when the various pieces of logic in that transform run. This will make it easier to introduce support for binding_array in the transform in a follow-up CL. Bug: 411573957 Change-Id: I5074d8407e3bfd2649ebe963c18650d660843051 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/247395 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.