1rayQuery-global.rgen 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 44 5 6 Capability RayQueryKHR 7 Capability RayTracingKHR 8 Extension "SPV_KHR_ray_query" 9 Extension "SPV_KHR_ray_tracing" 10 1: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint RayGenerationKHR 4 "main" 13 Source GLSL 460 14 SourceExtension "GL_EXT_ray_flags_primitive_culling" 15 SourceExtension "GL_EXT_ray_query" 16 Name 4 "main" 17 Name 10 "otherWrapper(rq1;" 18 Name 9 "rq" 19 Name 13 "wrapper(rq1;" 20 Name 12 "rq" 21 Name 17 "rqGlobal" 22 Name 22 "rq2" 23 Name 27 "rtas" 24 Name 40 "rq2" 25 Decorate 27(rtas) DescriptorSet 0 26 Decorate 27(rtas) Binding 1 27 2: TypeVoid 28 3: TypeFunction 2 29 6: TypeRayQueryKHR 30 7: TypePointer Private 6 31 8: TypeFunction 2 7(ptr) 32 15: TypeBool 33 17(rqGlobal): 7(ptr) Variable Private 34 22(rq2): 7(ptr) Variable Private 35 25: TypeAccelerationStructureKHR 36 26: TypePointer UniformConstant 25 37 27(rtas): 26(ptr) Variable UniformConstant 38 29: TypeInt 32 0 39 30: 29(int) Constant 0 40 31: 29(int) Constant 255 41 32: TypeFloat 32 42 33: TypeVector 32(float) 3 43 34: 32(float) Constant 0 44 35: 33(fvec3) ConstantComposite 34 34 34 45 36: 32(float) Constant 1065353216 46 37: 33(fvec3) ConstantComposite 36 34 34 47 40(rq2): 7(ptr) Variable Private 48 4(main): 2 Function None 3 49 5: Label 50 28: 25 Load 27(rtas) 51 RayQueryInitializeKHR 17(rqGlobal) 28 30 31 35 34 37 36 52 38: 2 FunctionCall 13(wrapper(rq1;) 17(rqGlobal) 53 39: 2 FunctionCall 10(otherWrapper(rq1;) 17(rqGlobal) 54 41: 25 Load 27(rtas) 55 RayQueryInitializeKHR 40(rq2) 41 30 31 35 34 37 36 56 42: 2 FunctionCall 13(wrapper(rq1;) 40(rq2) 57 43: 2 FunctionCall 10(otherWrapper(rq1;) 40(rq2) 58 Return 59 FunctionEnd 6010(otherWrapper(rq1;): 2 Function None 8 61 9(rq): 7(ptr) FunctionParameter 62 11: Label 63 16: 15(bool) RayQueryProceedKHR 9(rq) 64 18: 15(bool) RayQueryProceedKHR 17(rqGlobal) 65 Return 66 FunctionEnd 6713(wrapper(rq1;): 2 Function None 8 68 12(rq): 7(ptr) FunctionParameter 69 14: Label 70 19: 15(bool) RayQueryProceedKHR 12(rq) 71 20: 15(bool) RayQueryProceedKHR 17(rqGlobal) 72 21: 2 FunctionCall 10(otherWrapper(rq1;) 12(rq) 73 23: 2 FunctionCall 10(otherWrapper(rq1;) 22(rq2) 74 24: 2 FunctionCall 10(otherWrapper(rq1;) 17(rqGlobal) 75 Return 76 FunctionEnd 77