commit | d2cb4f55e3d11c8fc0e2e32513423d76747433eb | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Mon Jun 23 02:41:02 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 23 02:41:02 2025 -0700 |
tree | 46a35d7229d32478da742b72bad62dcc0098d72e | |
parent | 830dc86845102bb7c45f45ca14251b92add5dbb9 [diff] |
[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.