mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
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>
This commit is contained in:
committed by
Commit Bot service account
parent
7982cc0527
commit
67b1ad7a97
@@ -232,10 +232,10 @@ namespace {
|
||||
wgpu::RenderPassEncoder pass = encoder.BeginRenderPass(&dummyRenderPass);
|
||||
|
||||
pass.SetIndexBuffer(buffer);
|
||||
pass.Draw(3, 1, 0, 0);
|
||||
pass.Draw(3);
|
||||
|
||||
pass.SetBindGroup(0, bg);
|
||||
pass.Draw(3, 1, 0, 0);
|
||||
pass.Draw(3);
|
||||
|
||||
pass.EndPass();
|
||||
ASSERT_DEVICE_ERROR(encoder.Finish());
|
||||
|
||||
Reference in New Issue
Block a user