Fix deprecated API usages in samples

Bug: None
Change-Id: I13a05e6edf5dbd9419d6f2fa813ca0651c5ff6a1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/84764
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez
2022-03-31 09:30:35 +00:00
committed by Dawn LUCI CQ
parent f57867264a
commit 9c0faa8500
5 changed files with 10 additions and 10 deletions

View File

@@ -161,7 +161,7 @@ void frame() {
pass.SetVertexBuffer(0, vertexBuffer);
pass.SetIndexBuffer(indexBuffer, wgpu::IndexFormat::Uint32);
pass.DrawIndexed(3);
pass.EndPass();
pass.End();
}
wgpu::CommandBuffer commands = encoder.Finish();