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

Function RayQueryIntersection

test/val/val_ray_query_test.cpp:190–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190std::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
210using RayQueryCommon = spvtest::ValidateBase<std::string>;
211

Callers 1

TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected