Skip to content

Commit a691430

Browse files
authored
update shader validation types test for tier1 formats (#4418)
CreateShaderModule for a storage texture type for texture formats that require opting into the feature at the API level.
1 parent 393b928 commit a691430

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/webgpu/shader/validation/types/textures.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Validation tests for various texture types in shaders.
55
import { makeTestGroup } from '../../../../common/framework/test_group.js';
66
import {
77
getTextureFormatType,
8-
isTextureFormatUsableAsStorageFormatInCreateShaderModule,
98
kAllTextureFormats,
109
kPossibleStorageTextureFormats,
1110
} from '../../../format_info.js';
@@ -109,10 +108,7 @@ Besides, the shader compilation should always pass regardless of whether the for
109108
)
110109
.fn(t => {
111110
const { format, access, comma } = t.params;
112-
const isFormatValid = isTextureFormatUsableAsStorageFormatInCreateShaderModule(
113-
t.device,
114-
format
115-
);
111+
const isFormatValid = (kPossibleStorageTextureFormats as string[]).includes(format);
116112
const isAccessValid = kAccessModes.includes(access);
117113
const wgsl = `@group(0) @binding(0) var tex: texture_storage_2d<${format}, ${access}${comma}>;`;
118114
t.expectCompileResult(isFormatValid && isAccessValid, wgsl);

0 commit comments

Comments
 (0)