commit | 1315559522cb1b1408b71243e5693dc4a23dc970 | [log] [tgz] |
---|---|---|
author | Colin Blundell <blundell@chromium.org> | Wed Mar 27 16:08:38 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 27 16:08:38 2024 +0000 |
tree | beab7e47ed21f235f7c01996a913479938f46843 | |
parent | d1e92bb2f1b69313e3afea5ba13df2cb2c048725 [diff] |
[Static samplers] Pivot to having StaticSamplerBindingLayout This CL moves static samplers away from being specified via a chained struct on SamplerLayoutBinding to a chained struct on BindGroupLayoutEntry, similarly to ExternalTextureBindingLayout. This organization avoids redundantly specifying the sampler type and makes the conceptual relationships more clear: a SamplerLayoutBinding is for a sampler supplied dynamically, whereas the StaticSamplerBindingLayout is for samplers supplied statically. As a bonus, this new code organization directly points the way to a couple next steps that need to happen: * Incorporation of validation of the number of static samplers * Populating BindingInfo with the static sampler's sampler object This CL leaves TODOs for those next steps. Bug: dawn:2463 Change-Id: I9974b5678051ea38ebab57e801affc474d13938b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/181042 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Colin Blundell <blundell@chromium.org>
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.