commit | 2c865b5e890056fac74efee209634dffe5b3526e | [log] [tgz] |
---|---|---|
author | Brian Sheedy <bsheedy@google.com> | Wed Jan 22 17:10:19 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 22 17:10:19 2025 -0800 |
tree | e5771901e2b7112737c342a38d00324dbd5231fc | |
parent | 084ee3c6b2a8e3898e6ff5de6fa0b7bce67e6d38 [diff] |
[tools] Add MemMapOSWrapper Adds MemMapOSWrapper and its related interfaces. This is the standard implementation meant for use in testing, although tests can still create test-specific implementations if necessary. This is adds a dependency on Afero, which seems to be the go-to project for mocking out the filesystem in Go. Since Go's built-in os.File is a struct instead of an interface, all OSWrappers end up needing to use afero.File instead of *os.File for file handles. This should be a drop-in replacement for all common uses, but does mean that some less common cases are not supported, such as testing with symlinks. Bug: 344014313 Change-Id: I8bd040397db2b4bffeec16f6f47e92d3014f3d9f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/222914 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Brian Sheedy <bsheedy@google.com> Auto-Submit: Brian Sheedy <bsheedy@google.com>
Dawn is an open-source and cross-platform implementation of the 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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.