| 286 | } |
| 287 | |
| 288 | spv_result_t ValidateCreatePipeFromPipeStorage(ValidationState_t& _, |
| 289 | const Instruction* inst) { |
| 290 | const Instruction* result_type = _.FindDef(inst->type_id()); |
| 291 | if (result_type->opcode() != spv::Op::OpTypePipe) { |
| 292 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 293 | << "Result Type must be OpTypePipe."; |
| 294 | } |
| 295 | |
| 296 | // TODO - Need to check OpTypeStorage is from OpConstantPipeStorage |
| 297 | return SPV_SUCCESS; |
| 298 | } |
| 299 | |
| 300 | spv_result_t ValidateConstantPipeStorage(ValidationState_t& _, |
| 301 | const Instruction* inst) { |