| 1620 | } |
| 1621 | |
| 1622 | std::shared_ptr<const EntryPoint> Module::FindEntrypoint(const char* name, VkShaderStageFlagBits stageBits) const { |
| 1623 | if (!name) return nullptr; |
| 1624 | for (const auto& entry_point : static_data_.entry_points) { |
| 1625 | if (entry_point->name.compare(name) == 0 && entry_point->stage == stageBits) { |
| 1626 | return entry_point; |
| 1627 | } |
| 1628 | } |
| 1629 | return nullptr; |
| 1630 | } |
| 1631 | |
| 1632 | // Because the following is legal, need the entry point |
| 1633 | // OpEntryPoint GLCompute %main "name_a" |
no outgoing calls
no test coverage detected