mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Remove deprecated SetIndexBuffer (without format).
This also simplifies a bunch of code in backends that was used to handle getting the indexFormat from the pipeline "late". Bug: dawn:502 Change-Id: Ibae50c8df21323fd391515f6036552e9fb868d93 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/32023 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
33f29ea9b2
commit
5fad85bbd9
@@ -251,7 +251,7 @@ void frame() {
|
||||
pass.SetPipeline(pipeline);
|
||||
pass.SetBindGroup(0, bindGroup[0]);
|
||||
pass.SetVertexBuffer(0, vertexBuffer);
|
||||
pass.SetIndexBufferWithFormat(indexBuffer, wgpu::IndexFormat::Uint32);
|
||||
pass.SetIndexBuffer(indexBuffer, wgpu::IndexFormat::Uint32);
|
||||
pass.DrawIndexed(36);
|
||||
|
||||
pass.SetStencilReference(0x1);
|
||||
|
||||
Reference in New Issue
Block a user