[spirv-reader][ir] Support `OpSpecConstantComposite`. The `OpSpecConstantComposite` is the only way to build a composite object from spec constants. In WGSL there is no equivalent, so if the `OpSpecConstantComposite` has an attached `SpecId`, we error. In the case there is no `SpecId` associated, we can turn the `OpSpecConstantComposite` into a `Construct`. This construct needs to be emitted in the block of usage, as it can not appear in the root block. Bug: 398008657 Change-Id: I0ab4e55957aab63597d4e4eba87382738162422f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/245994 Commit-Queue: dan sinclair <dsinclair@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.