| 33 | : module_(module), type_manager_(module_.type_manager_), link_info_(offline) {} |
| 34 | |
| 35 | bool Pass::Run() { |
| 36 | const bool modified = Instrument(); |
| 37 | if (module_.settings_.print_debug_info) { |
| 38 | PrintDebugInfo(); |
| 39 | } |
| 40 | if (modified) { |
| 41 | PostProcess(); |
| 42 | } |
| 43 | |
| 44 | // Detect if any functions were applied that we need to add now |
| 45 | if (modified && !link_info_.functions.empty()) { |
| 46 | module_.link_infos_.emplace_back(link_info_); |
| 47 | } |
| 48 | return modified; |
| 49 | } |
| 50 | |
| 51 | // Special function to map to the internal representation of the execution models used for GenerateStageMessage() |
| 52 | static uint32_t GetNormalizedExecutionModel(VkShaderStageFlagBits shader_stage) { |
no test coverage detected