commit | b2449b099cc9a2717d02aa0e91ea5d85a239f063 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Mon Aug 14 18:09:53 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 14 18:09:53 2023 +0000 |
tree | b6bb6e8078726c9ec1c2558bca295d1d63a0125a | |
parent | e4cc2e6f8bc9dacfa812afefc555d1f6eb518eea [diff] |
Make TextureState a bitfield This makes validating a particular combination of states cost just a few instructions (and, shift, cmp) In preparation for tracking whether or not a texture created from shared texture memory may be used in a submit, add a hasAccess bool Legacy shared textures have access immediately after creation. The old OwnedInternal/OwnedExternal enums are removed in favor of alternative ways of determining when a texture needs to be destroyed. It really only mattered in the Vulkan backend. Bug: dawn:1745 Change-Id: Ie7fd17baaed2cf17c48eba8febef5fbb0986d546 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/146000 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
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.