From 299ae3a44c5f831f95985e9dad5685bd1f2d9171 Mon Sep 17 00:00:00 2001 From: Shrek Shao Date: Thu, 7 Dec 2023 17:14:46 -0800 Subject: [PATCH] fix --- .../validation/render_pipeline/fragment_state.spec.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/webgpu/api/validation/render_pipeline/fragment_state.spec.ts b/src/webgpu/api/validation/render_pipeline/fragment_state.spec.ts index 55bc70ff2be9..6e70fafa19a2 100644 --- a/src/webgpu/api/validation/render_pipeline/fragment_state.spec.ts +++ b/src/webgpu/api/validation/render_pipeline/fragment_state.spec.ts @@ -384,12 +384,11 @@ g.test('pipeline_output_targets,blend') ] as const) .expand('writeMask', function* (p) { yield 0; - for (let i = 1; i <= p.componentCount; i++) { - yield (1 << i) - 1; - } - if (p.componentCount < 4) { - yield 0xf; + for (let i = 0; i < p.componentCount; i++) { + yield 1 << i; } + // default full mask + yield 0xf; }) ) .beforeAllSubcases(t => {