| 276 | } |
| 277 | |
| 278 | bool 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 | |
| 288 | spv_result_t CheckMemoryAccess(ValidationState_t& _, const Instruction* inst, |
| 289 | uint32_t index) { |
no test coverage detected