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

Function ValidateConstantPipeStorage

source/val/validate_pipe.cpp:300–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300spv_result_t ValidateConstantPipeStorage(ValidationState_t& _,
301 const Instruction* inst) {
302 const Instruction* result_type = _.FindDef(inst->type_id());
303 if (result_type->opcode() != spv::Op::OpTypePipeStorage) {
304 return _.diag(SPV_ERROR_INVALID_DATA, inst)
305 << "Result Type must be OpTypePipeStorage.";
306 }
307
308 // TODO - Should we validate the literal values?
309 // https://gitlab.khronos.org/spirv/SPIR-V/-/issues/914
310 return SPV_SUCCESS;
311}
312
313} // namespace
314

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