mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Use the default values for Dispatch in examples and tests
Bug: dawn:22 Change-Id: I4f83b966ee73ed92dc6648e3c59fac1be89031e1 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18381 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
67b1ad7a97
commit
3da19b843f
@@ -835,7 +835,7 @@ class SetBindGroupValidationTest : public ValidationTest {
|
||||
wgpu::ComputePassEncoder computePassEncoder = commandEncoder.BeginComputePass();
|
||||
computePassEncoder.SetPipeline(computePipeline);
|
||||
computePassEncoder.SetBindGroup(0, bindGroup, count, offsets);
|
||||
computePassEncoder.Dispatch(1, 1, 1);
|
||||
computePassEncoder.Dispatch(1);
|
||||
computePassEncoder.EndPass();
|
||||
if (!expectation) {
|
||||
ASSERT_DEVICE_ERROR(commandEncoder.Finish());
|
||||
|
||||
@@ -56,8 +56,8 @@ TEST_F(ComputePassValidationTest, ReadWriteUsage) {
|
||||
pass.SetPipeline(pipeline);
|
||||
pass.SetBindGroup(0, bindGroup);
|
||||
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.EndPass();
|
||||
ASSERT_DEVICE_ERROR(encoder.Finish());
|
||||
@@ -95,8 +95,8 @@ TEST_F(ComputePassValidationTest, MultipleWrites) {
|
||||
pass.SetPipeline(pipeline);
|
||||
pass.SetBindGroup(0, bindGroup);
|
||||
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.EndPass();
|
||||
encoder.Finish();
|
||||
@@ -137,10 +137,10 @@ TEST_F(ComputePassValidationTest, MultipleWritesSeparateBindGroups) {
|
||||
pass.SetPipeline(pipeline);
|
||||
|
||||
pass.SetBindGroup(0, bindGroupA);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.SetBindGroup(0, bindGroupB);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.EndPass();
|
||||
encoder.Finish();
|
||||
|
||||
@@ -260,10 +260,10 @@ namespace {
|
||||
wgpu::ComputePassEncoder pass = encoder.BeginComputePass();
|
||||
|
||||
pass.SetBindGroup(0, bg0);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.SetBindGroup(0, bg1);
|
||||
pass.Dispatch(1, 1, 1);
|
||||
pass.Dispatch(1);
|
||||
|
||||
pass.EndPass();
|
||||
ASSERT_DEVICE_ERROR(encoder.Finish());
|
||||
|
||||
Reference in New Issue
Block a user