Skip to content

Commit

Permalink
Add inter-stage superset test
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 24, 2024
1 parent b433131 commit 90f74ba
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/webgpu/api/validation/render_pipeline/inter_stage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,18 @@ g.test('location,mismatch')
});

g.test('location,superset')
.desc(`TODO: implement after spec is settled: https://github.com/gpuweb/gpuweb/issues/2038`)
.unimplemented();
.desc(`Tests that validation should succeed when vertex output is superset of fragment input`)
.params(u => u.combine('isAsync', [false, true]))
.fn(t => {
const { isAsync } = t.params;

const descriptor = t.getDescriptorWithStates(
t.getVertexStateWithOutputs(['@location(0) vout0: f32', '@location(1) vout1: f32']),
t.getFragmentStateWithInputs(['@location(1) fin1: f32'])
);

t.doCreateRenderPipelineTest(isAsync, true, descriptor);
});

g.test('location,subset')
.desc(`Tests that validation should fail when vertex output is a subset of fragment input.`)
Expand Down

0 comments on commit 90f74ba

Please sign in to comment.