Remove /* eslint-disable prettier/prettier */ where possible. (#3791)

This commit is contained in:
Greggman 2024-06-11 10:31:57 +09:00 committed by GitHub
parent cb42984fa7
commit 441db0a231
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,3 @@
/* 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
@ -6,7 +5,11 @@ 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';
@ -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',