Skip to content

Commit

Permalink
Remove /* eslint-disable prettier/prettier */ where possible. (#3791)
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman authored Jun 11, 2024
1 parent cb42984 commit 441db0a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/webgpu/compat/api/validation/texture/createTexture.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
/* eslint-disable prettier/prettier */
export const description = `
Tests that you can not use bgra8unorm-srgb in compat mode.
Tests that textureBindingViewDimension must compatible with texture dimension
`;

import { makeTestGroup } from '../../../../../common/framework/test_group.js';
import { kTextureDimensions, kTextureViewDimensions } from '../../../../capability_info.js';
import { kColorTextureFormats, kCompatModeUnsupportedStorageTextureFormats, kTextureFormatInfo } from '../../../../format_info.js';
import {
kColorTextureFormats,
kCompatModeUnsupportedStorageTextureFormats,
kTextureFormatInfo,
} from '../../../../format_info.js';
import { getTextureDimensionFromView } from '../../../../util/texture/base.js';
import { CompatibilityTest } from '../../../compatibility_test.js';

Expand Down Expand Up @@ -56,7 +59,12 @@ g.test('invalidTextureBindingViewDimension')
)
.fn(t => {
const { dimension, textureBindingViewDimension } = t.params;
const depthOrArrayLayers = dimension === '1d' || textureBindingViewDimension === '1d' || textureBindingViewDimension === '2d' ? 1 : 6;
const depthOrArrayLayers =
dimension === '1d' ||
textureBindingViewDimension === '1d' ||
textureBindingViewDimension === '2d'
? 1
: 6;
const shouldError = getTextureDimensionFromView(textureBindingViewDimension) !== dimension;
t.expectGPUErrorInCompatibilityMode(
'validation',
Expand Down

0 comments on commit 441db0a

Please sign in to comment.