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

Function DoesStructContainRTA

source/val/validate_memory.cpp:278–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278bool DoesStructContainRTA(const ValidationState_t& _, const Instruction* inst) {
279 for (size_t member_index = 1; member_index < inst->operands().size();
280 ++member_index) {
281 const auto member_id = inst->GetOperandAs<uint32_t>(member_index);
282 const auto member_type = _.FindDef(member_id);
283 if (member_type->opcode() == spv::Op::OpTypeRuntimeArray) return true;
284 }
285 return false;
286}
287
288spv_result_t CheckMemoryAccess(ValidationState_t& _, const Instruction* inst,
289 uint32_t index) {

Callers 1

Calls 4

operandsMethod · 0.80
FindDefMethod · 0.80
sizeMethod · 0.45
opcodeMethod · 0.45

Tested by

no test coverage detected