commit | 676e8f39df23a496ad9812a322669eb07865ac17 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Wed Sep 09 22:47:07 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Sep 09 22:47:07 2020 +0000 |
tree | 5c43028320a8f7684c1bcc4eaf446ef60eb7fab8 | |
parent | 947201da199eb1fe3aca6a47cda962f4b547a950 [diff] |
Metal: Use ShaderModule reflection when possible. This change the Metal backend in preparation for supporting multiple entrypoints: - Explicitly set the spirv_cross entry point before compiling. - Moves gathering of the local size to the frontend as it will be useful for validation in the future. - Query spirv-cross for the modified entrypoint name instead of duplicating the code in Dawn. - Move some conversion helpers from ShaderModule.cpp to their own SpirvUtils file. Bug: dawn:216 Change-Id: I87d4953428e0bfeb97e39ed22f94d86ae7987782 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28241 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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 webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.