1spv.ext.RayGenShader.rgen 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 58 5 6 Capability RayTraversalPrimitiveCullingKHR 7 Capability RayTracingKHR 8 Extension "SPV_KHR_ray_tracing" 9 1: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint RayGenerationKHR 4 "main" 11 21 29 40 53 54 57 12 Source GLSL 460 13 SourceExtension "GL_EXT_opacity_micromap" 14 SourceExtension "GL_EXT_ray_flags_primitive_culling" 15 SourceExtension "GL_EXT_ray_tracing" 16 Name 4 "main" 17 Name 8 "lx" 18 Name 11 "gl_LaunchIDEXT" 19 Name 16 "ly" 20 Name 20 "sx" 21 Name 21 "gl_LaunchSizeEXT" 22 Name 24 "sy" 23 Name 29 "accEXT0" 24 Name 38 "block" 25 MemberName 38(block) 0 "dir" 26 MemberName 38(block) 1 "origin" 27 Name 40 "" 28 Name 53 "payload" 29 Name 54 "accEXT1" 30 Name 57 "imageu" 31 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 32 Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 33 Decorate 29(accEXT0) Binding 0 34 Decorate 29(accEXT0) DescriptorSet 0 35 Decorate 38(block) Block 36 MemberDecorate 38(block) 0 Offset 0 37 MemberDecorate 38(block) 1 Offset 16 38 Decorate 54(accEXT1) Binding 1 39 Decorate 54(accEXT1) DescriptorSet 0 40 Decorate 57(imageu) Binding 2 41 Decorate 57(imageu) DescriptorSet 0 42 2: TypeVoid 43 3: TypeFunction 2 44 6: TypeInt 32 0 45 7: TypePointer Function 6(int) 46 9: TypeVector 6(int) 3 47 10: TypePointer Input 9(ivec3) 4811(gl_LaunchIDEXT): 10(ptr) Variable Input 49 12: 6(int) Constant 0 50 13: TypePointer Input 6(int) 51 17: 6(int) Constant 1 5221(gl_LaunchSizeEXT): 10(ptr) Variable Input 53 27: TypeAccelerationStructureKHR 54 28: TypePointer UniformConstant 27 55 29(accEXT0): 28(ptr) Variable UniformConstant 56 35: 6(int) Constant 1792 57 36: TypeFloat 32 58 37: TypeVector 36(float) 3 59 38(block): TypeStruct 37(fvec3) 37(fvec3) 60 39: TypePointer ShaderRecordBufferKHR 38(block) 61 40: 39(ptr) Variable ShaderRecordBufferKHR 62 41: TypeInt 32 1 63 42: 41(int) Constant 1 64 43: TypePointer ShaderRecordBufferKHR 37(fvec3) 65 46: 36(float) Constant 1056964608 66 47: 41(int) Constant 0 67 50: 36(float) Constant 1061158912 68 51: TypeVector 36(float) 4 69 52: TypePointer RayPayloadKHR 51(fvec4) 70 53(payload): 52(ptr) Variable RayPayloadKHR 71 54(accEXT1): 28(ptr) Variable UniformConstant 72 55: TypeImage 6(int) 2D nonsampled format:R32ui 73 56: TypePointer UniformConstant 55 74 57(imageu): 56(ptr) Variable UniformConstant 75 4(main): 2 Function None 3 76 5: Label 77 8(lx): 7(ptr) Variable Function 78 16(ly): 7(ptr) Variable Function 79 20(sx): 7(ptr) Variable Function 80 24(sy): 7(ptr) Variable Function 81 14: 13(ptr) AccessChain 11(gl_LaunchIDEXT) 12 82 15: 6(int) Load 14 83 Store 8(lx) 15 84 18: 13(ptr) AccessChain 11(gl_LaunchIDEXT) 17 85 19: 6(int) Load 18 86 Store 16(ly) 19 87 22: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12 88 23: 6(int) Load 22 89 Store 20(sx) 23 90 25: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17 91 26: 6(int) Load 25 92 Store 24(sy) 26 93 30: 27 Load 29(accEXT0) 94 31: 6(int) Load 8(lx) 95 32: 6(int) Load 16(ly) 96 33: 6(int) Load 20(sx) 97 34: 6(int) Load 24(sy) 98 44: 43(ptr) AccessChain 40 42 99 45: 37(fvec3) Load 44 100 48: 43(ptr) AccessChain 40 47 101 49: 37(fvec3) Load 48 102 TraceRayKHR 30 31 32 33 34 35 45 46 49 50 53(payload) 103 Return 104 FunctionEnd 105