commit | 21fb99445f32855d3f3f213f2bcd1fa1baca1f59 | [log] [tgz] |
---|---|---|
author | Peter McNeeley <petermcneeley@google.com> | Mon Jan 13 10:38:11 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jan 13 10:38:11 2025 -0800 |
tree | 05e5b4edc9b6c6ff110b45d3a463d18294ce0ff3 | |
parent | 45b4e0ab199d1fc95ca523bf48e81b39755dc1c7 [diff] |
[dawn] Minor fix for redundant move Redundant move is a warning for some compilers as it can under very specific situations cause a copy [1]. We cannot simply fix all these warnings by removing all the redundant moves because some returns are conversions and will not compile due to move only objects. Such move only objects must specifically be moved on return. An example of wholesale attempt (failed): https://dawn-review.googlesource.com/c/dawn/+/220014?tab=checks An example of this in dawn can be found here: https://source.chromium.org/chromium/chromium/src/+/main:third_party/dawn/src/dawn/native/ShaderModule.cpp;l=371?q=ShaderModule.cpp:371 Godbolt attempt can be found here: https://godbolt.org/z/sjrW77brY [1] https://developers.redhat.com/blog/2019/04/12/understanding-when-not-to-stdmove-in-c Change-Id: I7757a9f5435b903645a236946c04047f1951fe8c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/220254 Reviewed-by: dan sinclair <dsinclair@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: Peter McNeeley <petermcneeley@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.