commit | 09c308cfcf185ca3cf4be755ca131cf7ae510c8a | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Tue Nov 16 23:37:15 2021 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 16 23:37:15 2021 +0000 |
tree | a9e577cda3a015b4d292c7f5ec04e9ec1779698f | |
parent | 970739e4e35a9e54bc872d9a487b17aa735751f4 [diff] |
Improve ScopedEnvironmentVar to distinguish between null and empty Found while investigating Swiftshader support. Some Vulkan loaders fail to create an instance if VK_ICD_FILENAMES is empty string rather than entirely absent. It was set to empty string because Dawn did not distinguish between nonexistent environment variables and the empty string. This CL adds distinguishing between the two, including tests for the behavior. Bug: chromium:1266550 Change-Id: I1680a281f62e6b340009e01da65db9d485e2975e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/69520 Auto-Submit: Austin Eng <enga@chromium.org> Reviewed-by: Loko Kung <lokokung@google.com> 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 the webgpu.h docs)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.