dawn-cmake/generator/templates
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
..
dawn_native Make the templates of native struct flexible 2021-12-21 03:27:34 +00:00
dawn_wire dawn_wire: use memcpy on structures when possible 2021-12-21 04:04:51 +00:00
opengl Implement EGLImage external texture API for GL. 2021-06-03 16:19:16 +00:00
.clang-format Add .clang-format files and format more files 2020-07-15 19:51:17 +00:00
BSD_LICENSE Further api.h license issue fixes 2021-12-14 01:06:15 +00:00
api.h Update BSD 3 license comment 2021-12-16 00:52:26 +00:00
api_cpp.cpp Template hardcode functions in webgpu_cpp.cpp 2021-12-14 02:20:15 +00:00
api_cpp.h Add basic or stub implementations of upstream instance/adapter APIs 2021-12-14 23:22:46 +00:00
api_cpp_print.h Make templates webgpu_cpp.h and webgpu_cpp_print.h flexible 2021-12-07 00:46:35 +00:00
api_struct_info.json Fix typo in api_struct_info.json 2021-12-15 18:06:36 +00:00
dawn_proc.c Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
dawn_proc_table.h Make the prefix of proc table configurable in api.json 2021-12-05 05:29:44 +00:00
dawn_thread_dispatch_proc.cpp Replace hardcode functions in templates 2021-12-10 01:35:19 +00:00
library_api_enum_tables.js Make the templates of mocking api flexible 2021-12-15 04:35:26 +00:00
mock_api.cpp Make the templates of mocking api flexible 2021-12-15 04:35:26 +00:00
mock_api.h Make the templates of mocking api flexible 2021-12-15 04:35:26 +00:00