commit | 67b1ad7a974e83eb7e3818bd45c83417373192a1 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Tue Mar 31 16:21:35 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Tue Mar 31 16:21:35 2020 +0000 |
tree | 1b20cc5d34bad70ee82993ef960c2f12c57ccd59 | |
parent | 7982cc0527630f123bd844cf5bb97ad0c3e0041c [diff] [blame] |
Add the defaults for Draw and DrawIndexed And updates all places in tests and examples where they could have been used. Bug: dawn:22 Change-Id: Ic36e3f1810037b5addeb9e971b1da28fdd1da183 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18380 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/examples/ManualSwapChainTest.cpp b/examples/ManualSwapChainTest.cpp index b72672c..acd0d87 100644 --- a/examples/ManualSwapChainTest.cpp +++ b/examples/ManualSwapChainTest.cpp
@@ -140,7 +140,7 @@ wgpu::RenderPassEncoder pass = encoder.BeginRenderPass(&desc); pass.SetPipeline(trianglePipeline); - pass.Draw(3, 1, 0, 0); + pass.Draw(3); pass.EndPass(); } else { data->clearCycle -= 1.0 / 60.f;