dawn-cmake/generator/templates
Jiawei Shao 6d6b63c470 dawn_wire: Use memcpy in Serializer / Deserializer when possible
This patch uses memcpy to copy the arrays in basic types instead
of iterating every elements in a for-loop.

In the next step we will copy specific structures with memcpy.

With this patch, the performance of dawn_perf_tests
BufferUploadPerf.Run/*_WriteBuffer_BufferSize_* with "-w" will
be greatly improved (~30%).

BUG=chromium:1266727

Change-Id: I7c6fb0fafa63bd6b602eeef8cf2c0ae0cfc7b0be
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/71180
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
2021-12-02 07:29:41 +00:00
..
dawn_native Make validation error formatting more consistent 2021-11-03 01:31:19 +00:00
dawn_wire dawn_wire: Use memcpy in Serializer / Deserializer when possible 2021-12-02 07:29:41 +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
api.h Add ability to generate constants from dawn.json 2021-11-25 08:44:01 +00:00
dawn_proc.c Add Instance and CreateInstance to webgpu.h 2020-01-10 13:06:48 +00:00
dawn_proc_table.h Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
dawn_thread_dispatch_proc.cpp Reland "Add a per-thread proc table using thread local storage" 2020-10-06 16:13:42 +00:00
library_webgpu_enum_tables.js Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00
mock_webgpu.cpp Autogenerate all of the wire callback mocks 2020-12-17 17:59:37 +00:00
mock_webgpu.h Autogenerate all of the wire callback mocks 2020-12-17 17:59:37 +00:00
webgpu_cpp.cpp Fix all GCC 10 warnings 2021-09-23 17:34:53 +00:00
webgpu_cpp.h Add ability to generate constants from dawn.json 2021-11-25 08:44:01 +00:00
webgpu_cpp_print.h Add utilities for printing Dawn enums and bitmasks 2021-06-01 18:49:12 +00:00
webgpu_struct_info.json Generate multiple variants of webgpu.h header 2021-09-17 19:44:43 +00:00