Skip to content

Commit

Permalink
Test createRenderPipeline fail without any attachment (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev authored Jun 24, 2024
1 parent 4163461 commit 9edf9d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/webgpu/api/validation/render_pipeline/misc.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ g.test('basic')
t.doCreateRenderPipelineTest(isAsync, true, descriptor);
});

g.test('no_attachment')
.desc(`Test that createRenderPipeline fails without any attachment.`)
.params(u => u.combine('isAsync', [false, true]))
.fn(t => {
const { isAsync } = t.params;

const descriptor = t.getDescriptor({
noFragment: true,
depthStencil: undefined,
});

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

g.test('vertex_state_only')
.desc(
`Tests creating vertex-state-only render pipeline. A vertex-only render pipeline has no fragment
Expand Down

0 comments on commit 9edf9d6

Please sign in to comment.