Remove /* eslint-disable prettier/prettier */ where possible. (#3791)
This commit is contained in:
parent
cb42984fa7
commit
441db0a231
1 changed files with 11 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue