MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / containsPattern

Method containsPattern

gtests/SpvPatternTest.cpp:73–76  ·  view source on GitHub ↗

Helper function to check if the given SPIR-V string contains a specific pattern.

Source from the content-addressed store, hash-verified

71
72 // Helper function to check if the given SPIR-V string contains a specific pattern.
73 bool containsPattern(const std::string& spirvText, const std::string& pattern)
74 {
75 return spirvText.find(pattern) != std::string::npos;
76 }
77
78 // Helper function to check if the given SPIR-V string contains a UConvert instruction.
79 bool containsUConvert(const std::string& spirvText) { return containsPattern(spirvText, "UConvert"); }

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected