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