6d6b63c470
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> |
||
---|---|---|
.. | ||
dawn_native | ||
dawn_wire | ||
opengl | ||
.clang-format | ||
api.h | ||
dawn_proc.c | ||
dawn_proc_table.h | ||
dawn_thread_dispatch_proc.cpp | ||
library_webgpu_enum_tables.js | ||
mock_webgpu.cpp | ||
mock_webgpu.h | ||
webgpu_cpp.cpp | ||
webgpu_cpp.h | ||
webgpu_cpp_print.h | ||
webgpu_struct_info.json |