commit | 7a4685f448297d31b8bc882b94c78d32a4630b89 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Wed Jun 17 22:35:19 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Wed Jun 17 22:35:19 2020 +0000 |
tree | 86b3d63b9e28ad38263b4fcf1fb559730d85b9d8 | |
parent | 3f4f35661151fb36998c9dbd170631c0174f73ab [diff] |
Add TypedInteger This CL adds a TypedInteger helper which provides additional type safety in Dawn. It is a compile-time restriction that prevents integers of different types from being used interchangably in Debug builds. It also adds ityp::{array,bitset,span} as helper classes to wrap std:: versions (not span). These accept a template paramter as the Index type so that typed integers, or enum classes, may be used as a type-safe index. For now, bind group layout binding indices use TypedInteger. Future CLs will convert other indices to be type-safe as well. Bug: dawn:442 Change-Id: I5b63b1e4f6154322db0227a7788a4e9b8303410e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19902 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@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.