diff --git a/src/type_determiner.cc b/src/type_determiner.cc index e94f9d67a7..79ec8dcffe 100644 --- a/src/type_determiner.cc +++ b/src/type_determiner.cc @@ -588,6 +588,8 @@ bool TypeDeterminer::DetermineIntrinsic(const std::string& name, return true; } if (ast::intrinsic::IsTextureOperationIntrinsic(name)) { + // TODO: Remove the LOD param from textureLoad on storage textures when + // https://github.com/gpuweb/gpuweb/pull/1032 gets merged. uint32_t num_of_params = (name == "textureLoad" || name == "textureSample") ? 3 : 4; if (expr->params().size() != num_of_params) { diff --git a/src/writer/spirv/builder.cc b/src/writer/spirv/builder.cc index 7bbfa02b0e..bce9333d6a 100644 --- a/src/writer/spirv/builder.cc +++ b/src/writer/spirv/builder.cc @@ -1529,6 +1529,8 @@ uint32_t Builder::GenerateTextureIntrinsic(const std::string& name, ->UnwrapAliasPtrAlias() ->AsTexture(); + // TODO: Remove the LOD param from textureLoad on storage textures when + // https://github.com/gpuweb/gpuweb/pull/1032 gets merged. if (name == "textureLoad") { auto spirv_params = {std::move(wgsl_params[0]), std::move(wgsl_params[1]),