| 24 | namespace val { |
| 25 | |
| 26 | bool IsInterfaceVariable(ValidationState_t& _, const Instruction* inst, |
| 27 | spv::ExecutionModel model) { |
| 28 | bool foundInterface = false; |
| 29 | for (auto entry_point : _.entry_points()) { |
| 30 | const auto* models = _.GetExecutionModels(entry_point); |
| 31 | if (models->find(model) == models->end()) return false; |
| 32 | for (const auto& desc : _.entry_point_descriptions(entry_point)) { |
| 33 | for (auto interface : desc.interfaces) { |
| 34 | if (inst->id() == interface) { |
| 35 | foundInterface = true; |
| 36 | break; |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 | return foundInterface; |
| 42 | } |
| 43 | |
| 44 | spv_result_t ValidateEmitMeshTasks(ValidationState_t& _, |
| 45 | const Instruction* inst) { |
no test coverage detected