Helper function to check if the given SPIR-V string contains a specific pattern.
| 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"); } |