webgpu.h: More trivial defaulting: BindGroupLayoutDescriptor Implements the following sub-structures of BindGroupLayoutDescriptor. Defaulting is done in the constructor, which (in most cases) is called by a bounce through the backend. - TextureBindingLayout.viewDimension: TextureViewDimension = 2D - StorageTextureBindingLayout.viewDimension: TextureViewDimension = 2D I couldn't find any end2end tests using explicit bind group layouts with texture or storageTexture, so these are only spot-tested in the GetBindGroupLayout caching tests (which won't hit the backends but will verify that defaulting is applied to cache keys). Bug: dawn:2224 Change-Id: Ie1173ada37c65ab28f71f63f7786c7441fc12306 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/166823 Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Corentin Wallez <cwallez@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.