1spv.ext.RayGenSBTlayoutscalar.rgen 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 74 5 6 Capability Int64 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 38 60 12 Source GLSL 460 13 SourceExtension "GL_ARB_gpu_shader_int64" 14 SourceExtension "GL_EXT_ray_tracing" 15 SourceExtension "GL_EXT_scalar_block_layout" 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 36 "block" 24 MemberName 36(block) 0 "dir" 25 MemberName 36(block) 1 "origin" 26 MemberName 36(block) 2 "i" 27 MemberName 36(block) 3 "aHandle32" 28 MemberName 36(block) 4 "aHandle64" 29 MemberName 36(block) 5 "arr" 30 MemberName 36(block) 6 "a" 31 MemberName 36(block) 7 "arr3" 32 MemberName 36(block) 8 "packme" 33 MemberName 36(block) 9 "b" 34 MemberName 36(block) 10 "c" 35 Name 38 "" 36 Name 60 "payload" 37 Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR 38 Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR 39 Decorate 34 ArrayStride 8 40 Decorate 35 ArrayStride 12 41 MemberDecorate 36(block) 0 Offset 0 42 MemberDecorate 36(block) 1 Offset 12 43 MemberDecorate 36(block) 2 Offset 24 44 MemberDecorate 36(block) 3 Offset 28 45 MemberDecorate 36(block) 4 Offset 40 46 MemberDecorate 36(block) 5 Offset 48 47 MemberDecorate 36(block) 6 Offset 64 48 MemberDecorate 36(block) 7 Offset 68 49 MemberDecorate 36(block) 8 Offset 92 50 MemberDecorate 36(block) 9 Offset 96 51 MemberDecorate 36(block) 10 Offset 104 52 Decorate 36(block) Block 53 2: TypeVoid 54 3: TypeFunction 2 55 6: TypeInt 32 0 56 7: TypePointer Function 6(int) 57 9: TypeVector 6(int) 3 58 10: TypePointer Input 9(ivec3) 5911(gl_LaunchIDEXT): 10(ptr) Variable Input 60 12: 6(int) Constant 0 61 13: TypePointer Input 6(int) 62 17: 6(int) Constant 1 6321(gl_LaunchSizeEXT): 10(ptr) Variable Input 64 27: TypeFloat 32 65 28: TypeVector 27(float) 3 66 29: TypeInt 32 1 67 30: TypeVector 6(int) 2 68 31: TypeInt 64 0 69 32: TypeVector 27(float) 2 70 33: 6(int) Constant 2 71 34: TypeArray 32(fvec2) 33 72 35: TypeArray 28(fvec3) 33 73 36(block): TypeStruct 28(fvec3) 28(fvec3) 29(int) 30(ivec2) 31(int64_t) 34 27(float) 35 27(float) 32(fvec2) 27(float) 74 37: TypePointer ShaderRecordBufferKHR 36(block) 75 38: 37(ptr) Variable ShaderRecordBufferKHR 76 39: 29(int) Constant 3 77 40: TypePointer ShaderRecordBufferKHR 30(ivec2) 78 43: TypeAccelerationStructureKHR 79 49: 29(int) Constant 1 80 50: TypePointer ShaderRecordBufferKHR 28(fvec3) 81 53: 27(float) Constant 1056964608 82 54: 29(int) Constant 0 83 57: 27(float) Constant 1061158912 84 58: TypeVector 27(float) 4 85 59: TypePointer RayPayloadKHR 58(fvec4) 86 60(payload): 59(ptr) Variable RayPayloadKHR 87 61: 29(int) Constant 4 88 62: TypePointer ShaderRecordBufferKHR 31(int64_t) 89 4(main): 2 Function None 3 90 5: Label 91 8(lx): 7(ptr) Variable Function 92 16(ly): 7(ptr) Variable Function 93 20(sx): 7(ptr) Variable Function 94 24(sy): 7(ptr) Variable Function 95 14: 13(ptr) AccessChain 11(gl_LaunchIDEXT) 12 96 15: 6(int) Load 14 97 Store 8(lx) 15 98 18: 13(ptr) AccessChain 11(gl_LaunchIDEXT) 17 99 19: 6(int) Load 18 100 Store 16(ly) 19 101 22: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12 102 23: 6(int) Load 22 103 Store 20(sx) 23 104 25: 13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17 105 26: 6(int) Load 25 106 Store 24(sy) 26 107 41: 40(ptr) AccessChain 38 39 108 42: 30(ivec2) Load 41 109 44: 43 ConvertUToAccelerationStructureKHR 42 110 45: 6(int) Load 8(lx) 111 46: 6(int) Load 16(ly) 112 47: 6(int) Load 20(sx) 113 48: 6(int) Load 24(sy) 114 51: 50(ptr) AccessChain 38 49 115 52: 28(fvec3) Load 51 116 55: 50(ptr) AccessChain 38 54 117 56: 28(fvec3) Load 55 118 TraceRayKHR 44 45 46 47 48 12 52 53 56 57 60(payload) 119 63: 62(ptr) AccessChain 38 61 120 64: 31(int64_t) Load 63 121 65: 43 ConvertUToAccelerationStructureKHR 64 122 66: 6(int) Load 8(lx) 123 67: 6(int) Load 16(ly) 124 68: 6(int) Load 20(sx) 125 69: 6(int) Load 24(sy) 126 70: 50(ptr) AccessChain 38 49 127 71: 28(fvec3) Load 70 128 72: 50(ptr) AccessChain 38 54 129 73: 28(fvec3) Load 72 130 TraceRayKHR 65 66 67 68 69 12 71 53 73 57 60(payload) 131 Return 132 FunctionEnd 133