1rayQuery-no-cse.rgen 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 107 5 6 Capability RayQueryKHR 7 Capability RayTracingNV 8 Extension "SPV_KHR_ray_query" 9 Extension "SPV_NV_ray_tracing" 10 1: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint RayGenerationKHR 4 "main" 23 28 13 Source GLSL 460 14 SourceExtension "GL_EXT_ray_query" 15 SourceExtension "GL_NV_ray_tracing" 16 Name 4 "main" 17 Name 8 "launchIndex(" 18 Name 14 "Ray" 19 MemberName 14(Ray) 0 "pos" 20 MemberName 14(Ray) 1 "tmin" 21 MemberName 14(Ray) 2 "dir" 22 MemberName 14(Ray) 3 "tmax" 23 Name 19 "doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;" 24 Name 17 "rayQuery" 25 Name 18 "ray" 26 Name 23 "gl_LaunchIDNV" 27 Name 28 "gl_LaunchSizeNV" 28 Name 50 "rtas" 29 Name 69 "index" 30 Name 71 "ray" 31 Name 72 "Ray" 32 MemberName 72(Ray) 0 "pos" 33 MemberName 72(Ray) 1 "tmin" 34 MemberName 72(Ray) 2 "dir" 35 MemberName 72(Ray) 3 "tmax" 36 Name 74 "Rays" 37 MemberName 74(Rays) 0 "rays" 38 Name 76 "" 39 Name 89 "rayQuery1" 40 Name 90 "param" 41 Name 103 "rayQuery2" 42 Name 104 "param" 43 Decorate 23(gl_LaunchIDNV) BuiltIn LaunchIdKHR 44 Decorate 28(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR 45 Decorate 50(rtas) DescriptorSet 0 46 Decorate 50(rtas) Binding 0 47 MemberDecorate 72(Ray) 0 Offset 0 48 MemberDecorate 72(Ray) 1 Offset 12 49 MemberDecorate 72(Ray) 2 Offset 16 50 MemberDecorate 72(Ray) 3 Offset 28 51 Decorate 73 ArrayStride 32 52 MemberDecorate 74(Rays) 0 Offset 0 53 Decorate 74(Rays) BufferBlock 54 Decorate 76 DescriptorSet 0 55 Decorate 76 Binding 2 56 2: TypeVoid 57 3: TypeFunction 2 58 6: TypeInt 32 0 59 7: TypeFunction 6(int) 60 10: TypeRayQueryKHR 61 11: TypePointer Private 10 62 12: TypeFloat 32 63 13: TypeVector 12(float) 3 64 14(Ray): TypeStruct 13(fvec3) 12(float) 13(fvec3) 12(float) 65 15: TypePointer Function 14(Ray) 66 16: TypeFunction 2 11(ptr) 15(ptr) 67 21: TypeVector 6(int) 3 68 22: TypePointer Input 21(ivec3) 6923(gl_LaunchIDNV): 22(ptr) Variable Input 70 24: 6(int) Constant 2 71 25: TypePointer Input 6(int) 7228(gl_LaunchSizeNV): 22(ptr) Variable Input 73 29: 6(int) Constant 0 74 33: 6(int) Constant 1 75 48: TypeAccelerationStructureKHR 76 49: TypePointer UniformConstant 48 77 50(rtas): 49(ptr) Variable UniformConstant 78 52: 6(int) Constant 16 79 53: TypeInt 32 1 80 54: 53(int) Constant 0 81 55: TypePointer Function 13(fvec3) 82 58: 53(int) Constant 1 83 59: TypePointer Function 12(float) 84 62: 53(int) Constant 2 85 65: 53(int) Constant 3 86 68: TypePointer Function 6(int) 87 72(Ray): TypeStruct 13(fvec3) 12(float) 13(fvec3) 12(float) 88 73: TypeRuntimeArray 72(Ray) 89 74(Rays): TypeStruct 73 90 75: TypePointer Uniform 74(Rays) 91 76: 75(ptr) Variable Uniform 92 78: TypePointer Uniform 72(Ray) 93 89(rayQuery1): 11(ptr) Variable Private 94 94: 6(int) Constant 32 95 103(rayQuery2): 11(ptr) Variable Private 96 4(main): 2 Function None 3 97 5: Label 98 69(index): 68(ptr) Variable Function 99 71(ray): 15(ptr) Variable Function 100 90(param): 15(ptr) Variable Function 101 104(param): 15(ptr) Variable Function 102 70: 6(int) FunctionCall 8(launchIndex() 103 Store 69(index) 70 104 77: 6(int) Load 69(index) 105 79: 78(ptr) AccessChain 76 54 77 106 80: 72(Ray) Load 79 107 81: 13(fvec3) CompositeExtract 80 0 108 82: 55(ptr) AccessChain 71(ray) 54 109 Store 82 81 110 83: 12(float) CompositeExtract 80 1 111 84: 59(ptr) AccessChain 71(ray) 58 112 Store 84 83 113 85: 13(fvec3) CompositeExtract 80 2 114 86: 55(ptr) AccessChain 71(ray) 62 115 Store 86 85 116 87: 12(float) CompositeExtract 80 3 117 88: 59(ptr) AccessChain 71(ray) 65 118 Store 88 87 119 91: 14(Ray) Load 71(ray) 120 Store 90(param) 91 121 92: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 89(rayQuery1) 90(param) 122 93: 48 Load 50(rtas) 123 95: 55(ptr) AccessChain 71(ray) 54 124 96: 13(fvec3) Load 95 125 97: 59(ptr) AccessChain 71(ray) 58 126 98: 12(float) Load 97 127 99: 55(ptr) AccessChain 71(ray) 62 128 100: 13(fvec3) Load 99 129 101: 59(ptr) AccessChain 71(ray) 65 130 102: 12(float) Load 101 131 RayQueryInitializeKHR 89(rayQuery1) 93 33 94 96 98 100 102 132 105: 14(Ray) Load 71(ray) 133 Store 104(param) 105 134 106: 2 FunctionCall 19(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;) 103(rayQuery2) 104(param) 135 Return 136 FunctionEnd 137 8(launchIndex(): 6(int) Function None 7 138 9: Label 139 26: 25(ptr) AccessChain 23(gl_LaunchIDNV) 24 140 27: 6(int) Load 26 141 30: 25(ptr) AccessChain 28(gl_LaunchSizeNV) 29 142 31: 6(int) Load 30 143 32: 6(int) IMul 27 31 144 34: 25(ptr) AccessChain 28(gl_LaunchSizeNV) 33 145 35: 6(int) Load 34 146 36: 6(int) IMul 32 35 147 37: 25(ptr) AccessChain 23(gl_LaunchIDNV) 33 148 38: 6(int) Load 37 149 39: 25(ptr) AccessChain 28(gl_LaunchSizeNV) 29 150 40: 6(int) Load 39 151 41: 6(int) IMul 38 40 152 42: 6(int) IAdd 36 41 153 43: 25(ptr) AccessChain 23(gl_LaunchIDNV) 29 154 44: 6(int) Load 43 155 45: 6(int) IAdd 42 44 156 ReturnValue 45 157 FunctionEnd 15819(doInitialize(rq1;struct-Ray-vf3-f1-vf3-f11;): 2 Function None 16 159 17(rayQuery): 11(ptr) FunctionParameter 160 18(ray): 15(ptr) FunctionParameter 161 20: Label 162 51: 48 Load 50(rtas) 163 56: 55(ptr) AccessChain 18(ray) 54 164 57: 13(fvec3) Load 56 165 60: 59(ptr) AccessChain 18(ray) 58 166 61: 12(float) Load 60 167 63: 55(ptr) AccessChain 18(ray) 62 168 64: 13(fvec3) Load 63 169 66: 59(ptr) AccessChain 18(ray) 65 170 67: 12(float) Load 66 171 RayQueryInitializeKHR 17(rayQuery) 51 29 52 57 61 64 67 172 Return 173 FunctionEnd 174