1rayQuery.rgen 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 44 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" 13 Source GLSL 460 14 SourceExtension "GL_EXT_ray_query" 15 SourceExtension "GL_NV_ray_tracing" 16 Name 4 "main" 17 Name 8 "rayFlags" 18 Name 12 "tMin" 19 Name 14 "tMax" 20 Name 18 "localRayQuery" 21 Name 21 "acc0" 22 Name 26 "block" 23 MemberName 26(block) 0 "dir" 24 MemberName 26(block) 1 "origin" 25 Name 28 "" 26 Decorate 21(acc0) DescriptorSet 0 27 Decorate 21(acc0) Binding 0 28 MemberDecorate 26(block) 0 Offset 0 29 MemberDecorate 26(block) 1 Offset 16 30 Decorate 26(block) BufferBlock 31 2: TypeVoid 32 3: TypeFunction 2 33 6: TypeInt 32 0 34 7: TypePointer Function 6(int) 35 9: 6(int) Constant 9 36 10: TypeFloat 32 37 11: TypePointer Function 10(float) 38 13: 10(float) Constant 0 39 15: 10(float) Constant 1148846080 40 16: TypeRayQueryKHR 41 17: TypePointer Private 16 4218(localRayQuery): 17(ptr) Variable Private 43 19: TypeAccelerationStructureKHR 44 20: TypePointer UniformConstant 19 45 21(acc0): 20(ptr) Variable UniformConstant 46 24: 6(int) Constant 255 47 25: TypeVector 10(float) 3 48 26(block): TypeStruct 25(fvec3) 25(fvec3) 49 27: TypePointer ShaderRecordBufferKHR 26(block) 50 28: 27(ptr) Variable ShaderRecordBufferKHR 51 29: TypeInt 32 1 52 30: 29(int) Constant 1 53 31: TypePointer ShaderRecordBufferKHR 25(fvec3) 54 35: 29(int) Constant 0 55 39: TypeBool 56 4(main): 2 Function None 3 57 5: Label 58 8(rayFlags): 7(ptr) Variable Function 59 12(tMin): 11(ptr) Variable Function 60 14(tMax): 11(ptr) Variable Function 61 Store 8(rayFlags) 9 62 Store 12(tMin) 13 63 Store 14(tMax) 15 64 22: 19 Load 21(acc0) 65 23: 6(int) Load 8(rayFlags) 66 32: 31(ptr) AccessChain 28 30 67 33: 25(fvec3) Load 32 68 34: 10(float) Load 12(tMin) 69 36: 31(ptr) AccessChain 28 35 70 37: 25(fvec3) Load 36 71 38: 10(float) Load 14(tMax) 72 RayQueryInitializeKHR 18(localRayQuery) 22 23 24 33 34 37 38 73 40: 39(bool) RayQueryProceedKHR 18(localRayQuery) 74 41: 39(bool) LogicalNot 40 75 SelectionMerge 43 None 76 BranchConditional 41 42 43 77 42: Label 78 RayQueryTerminateKHR 18(localRayQuery) 79 Branch 43 80 43: Label 81 Return 82 FunctionEnd 83