Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao committed Mar 13, 2024
1 parent 01d19da commit 48a5158
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/webgpu/shader/validation/types/textures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ Besides, the shader compilation should always pass regardless of whether the for
const info = kTextureFormatInfo[format];
let isFormatValid =
info.color?.storage || info.depth?.storage || info.stencil?.storage || false;
if (t.isCompatibility) {
// Adjust if storage is supported under compatibility mode for formats in kCompatModeUnsupportedStorageTextureFormats.
isFormatValid = isTextureFormatUsableAsStorageFormat(format, t.isCompatibility);
}
const isAccessValid = kAccessModes.includes(access);
const wgsl = `@group(0) @binding(0) var tex: texture_storage_2d<${format}, ${access}>;`;
t.expectCompileResult(isFormatValid && isAccessValid, wgsl);
Expand Down

0 comments on commit 48a5158

Please sign in to comment.