MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ValidateCreatePipeFromPipeStorage

Function ValidateCreatePipeFromPipeStorage

source/val/validate_pipe.cpp:288–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288spv_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
300spv_result_t ValidateConstantPipeStorage(ValidationState_t& _,
301 const Instruction* inst) {

Callers 1

PipePassFunction · 0.85

Calls 4

FindDefMethod · 0.80
diagMethod · 0.80
type_idMethod · 0.45
opcodeMethod · 0.45

Tested by

no test coverage detected