commit | 61355d416d9c568bcfbed6518516fbe5ef219e42 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Dec 08 12:39:03 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Dec 08 12:39:03 2020 +0000 |
tree | e388a9d1de061ec51e75793dd5e4d5f63f964801 | |
parent | 8a73e1876dbd2d862701fde91bc21630c4bd0e5b [diff] |
Change SubresourceRange to be hierarchical. Initializing SubresourceRange with {x, y, z} type of constructor was error prone because it was going from the smallest concept to the larger one instead of being hierarchical. This CL changes the order of the structure and more importantly adds a constructor that's in hierarchical order and groups related members together. For example: SubresourceRange range(Aspect::Color, {layerStart, layerCount}, {0, mipCount}); It also adds a rename of SingleMipAndLayer in hierarchical order as SubresourceRange::Single and a helper that gives a full range as SubresourceRange::Full (it will be used in follow-up CLs). Bug: dawn:441 Change-Id: I8e71bae1129a96222f7779014575b24b31f5ef7a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/35000 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@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 the webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.