dawn-cmake/examples
Kai Ninomiya 16036cf206 Add WGPU_STRIDE_UNDEFINED and update bytesPerRow/rowsPerImage validation
This makes a nearly one-to-one mapping between the JS and C APIs, which
benefits projects like Blink and Emscripten.

- JavaScript's `undefined` is equivalent to C `WGPU_STRIDE_UNDEFINED`.
- JavaScript's `0` is equivalent to C `0`.
- To implement the API correctly, Blink must special-case an actual
  value coming in from JS that is equal to WGPU_STRIDE_UNDEFINED
  (0xFFFF'FFFF), and inject an error.

Keeps but deprecates a reasonable approximation of the old behavior.

Bug: dawn:520
Change-Id: Ie9c992ffab82830090d0dfc3120731e89cd9691c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31140
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
2020-11-06 13:41:50 +00:00
..
Animometer.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
BUILD.gn Autoformat all tests and examples 2020-07-10 20:33:08 +00:00
CHelloTriangle.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
CMakeLists.txt Add initial CMakeLists.txt files 2020-02-05 17:16:05 +00:00
ComputeBoids.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
CppHelloTriangle.cpp Add WGPU_STRIDE_UNDEFINED and update bytesPerRow/rowsPerImage validation 2020-11-06 13:41:50 +00:00
CubeReflection.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
ManualSwapChainTest.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
SampleUtils.cpp s/OutputAttachment/RenderAttachment/g 2020-10-27 15:35:56 +00:00
SampleUtils.h Make examples and utils use webgpu.h 2019-10-25 11:36:47 +00:00