| 188 | } |
| 189 | |
| 190 | std::string RayQueryIntersection(std::string opcode, bool valid) { |
| 191 | if (opcode.compare("OpRayQueryGetIntersectionTypeKHR") == 0 || |
| 192 | opcode.compare("OpRayQueryGetIntersectionTKHR") == 0 || |
| 193 | opcode.compare("OpRayQueryGetIntersectionInstanceCustomIndexKHR") == 0 || |
| 194 | opcode.compare("OpRayQueryGetIntersectionInstanceIdKHR") == 0 || |
| 195 | opcode.compare("OpRayQueryGetIntersectionInstanceShaderBindingTableRecord" |
| 196 | "OffsetKHR") == 0 || |
| 197 | opcode.compare("OpRayQueryGetIntersectionGeometryIndexKHR") == 0 || |
| 198 | opcode.compare("OpRayQueryGetIntersectionPrimitiveIndexKHR") == 0 || |
| 199 | opcode.compare("OpRayQueryGetIntersectionBarycentricsKHR") == 0 || |
| 200 | opcode.compare("OpRayQueryGetIntersectionFrontFaceKHR") == 0 || |
| 201 | opcode.compare("OpRayQueryGetIntersectionObjectRayDirectionKHR") == 0 || |
| 202 | opcode.compare("OpRayQueryGetIntersectionObjectRayOriginKHR") == 0 || |
| 203 | opcode.compare("OpRayQueryGetIntersectionObjectToWorldKHR") == 0 || |
| 204 | opcode.compare("OpRayQueryGetIntersectionWorldToObjectKHR") == 0) { |
| 205 | return valid ? "%s32_0" : "%f32_0"; |
| 206 | } |
| 207 | return ""; |
| 208 | } |
| 209 | |
| 210 | using RayQueryCommon = spvtest::ValidateBase<std::string>; |
| 211 | |