Skip to content
Snippets Groups Projects
Commit 70cd50ac authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

webgpu: Include shader module entry point when creating pipeline hash

- pipelines that use same shader code, with different entry points now have distinct hashes to avoid using the same pipeline for a given shader module, even though shader entry points are different.
parent b4ba9d55
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,9 @@ std::string vtkWebGPURenderPipelineCache::GetPipelineKey(
std::to_string(static_cast<std::underlying_type<wgpu::PrimitiveTopology>::type>(
descriptor->primitive.cullMode));
std::string hash;
this->Internals->ComputeMD5({ shaderSource, cullModeStr.c_str(), topologyStr.c_str() }, hash);
this->Internals->ComputeMD5({ shaderSource, cullModeStr.c_str(), topologyStr.c_str(),
descriptor->vertex.entryPoint, descriptor->fragment->entryPoint },
hash);
return hash;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment