Antonio Maiorano ffa83ad1f7 tint: make utils::Bitcast not trigger gcc warning
When useing Bitcast to or from a class type, gcc warns even if the type
is trivially copyable. Fixed this by static_asserting that both types
are trivially copyable, and casting the pointers to std::byte*.

Change-Id: Ibb420f2dcdd35cfb187d74983fa8ab9b50d10c85
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/115180
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-12-20 17:13:39 +00:00
..
2022-12-08 17:50:50 +00:00
2022-07-25 13:41:21 +00:00
2022-12-17 02:20:04 +00:00
2022-08-03 21:40:46 +00:00
2022-12-17 02:20:04 +00:00
2022-12-17 02:20:04 +00:00
2022-12-17 02:20:04 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-12-13 16:29:06 +00:00
2022-11-18 11:57:37 +00:00
2022-12-13 16:29:06 +00:00
2022-12-16 15:31:19 +00:00
2022-11-17 19:16:24 +00:00
2022-11-17 19:16:24 +00:00
2022-12-15 18:00:24 +00:00
2022-11-29 21:17:37 +00:00
2022-11-29 21:17:37 +00:00