dawn-cmake/generator/templates/dawn_wire
Jiawei Shao 1fa386cc87 dawn_wire: use memcpy on structures when possible
This patch sets 'is_wire_transparent' on the structures whose members
are all wire transparent and are not pointers, so that we can use
memcpy when serializing and deserializing these structures:
- GPUBlendComponent
- GPUColor
- GPUExtent3D
- GPULimits
- GPUOrigin3D
- GPUStencilFaceState
- GPUVertexAttribute
- GPUBlendState

In the next patch we will support memcpy on the qualified structures
whose members contain pointers (e.g. GPUVertexBufferLayout).

BUG=chromium:1266727

Change-Id: If46289f2d10cc7b17e6f5330cd2c2d4dc481f8b9
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/73000
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2021-12-21 04:04:51 +00:00
..
client Add feature queries to dawn_native/dawn_wire 2021-12-15 00:12:30 +00:00
server Fix -Wunreachable-code-aggressive. 2021-06-30 11:17:16 +00:00
ObjectType.h Track and destroy all child objects on wire client destruction 2020-11-11 19:46:18 +00:00
WireCmd.cpp dawn_wire: use memcpy on structures when possible 2021-12-21 04:04:51 +00:00
WireCmd.h Make CompilationInfo extensible. 2021-11-16 09:25:35 +00:00