Skip to content

Commit

Permalink
Compat: skip 'cube-array' validation tests.
Browse files Browse the repository at this point in the history
Cube arrays are unsupported in Compatibility mode.
  • Loading branch information
SenorBlanco committed Nov 5, 2024
1 parent 8a80203 commit c0c2949
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webgpu/api/validation/compute_pipeline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,10 @@ g.test('resource_compatibility')
!t.hasLanguageFeature('readonly_and_readwrite_storage_textures'),
'Storage textures require language feature'
);
t.skipIf(t.isCompatibility && wgslResource.texture !== undefined &&
wgslResource.texture.viewDimension === 'cube-array',
'Compatibility mode does not support cube arrays'
);

const layout = t.device.createPipelineLayout({
bindGroupLayouts: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ g.test('resource_compatibility')
wgslResource.storageTexture.access !== 'read-only')),
'Storage buffers and textures cannot be used in vertex shaders'
);
t.skipIf(
t.isCompatibility && wgslResource.texture !== undefined &&
wgslResource.texture.viewDimension == 'cube-array',
'Compatibility mode does not support cube arrays'
);
const emptyVS = `
@vertex
fn main() -> @builtin(position) vec4f {
Expand Down

0 comments on commit c0c2949

Please sign in to comment.