| 80 | } |
| 81 | |
| 82 | spv_result_t ProcessInstruction(void* user_data, |
| 83 | const spv_parsed_instruction_t* inst) { |
| 84 | ValidationState_t& _ = *(reinterpret_cast<ValidationState_t*>(user_data)); |
| 85 | |
| 86 | auto* instruction = _.AddOrderedInstruction(inst); |
| 87 | _.RegisterDebugInstruction(instruction); |
| 88 | |
| 89 | return SPV_SUCCESS; |
| 90 | } |
| 91 | |
| 92 | spv_result_t ValidateForwardDecls(ValidationState_t& _) { |
| 93 | if (_.unresolved_forward_id_count() == 0) return SPV_SUCCESS; |
nothing calls this directly
no test coverage detected