1 spv.RayGenShader11.rgen 2 // Module Version 10300 3 // Generated by (magic number): 80007 4 // Id's are bound by 60 5 6 Capability RayTracingNV 7 Extension "SPV_NV_ray_tracing" 8 1: ExtInstImport "GLSL.std.450" 9 MemoryModel Logical GLSL450 10 EntryPoint RayGenerationNV 4 "main" 11 21 11 Source GLSL 460 12 SourceExtension "GL_NV_ray_tracing" 13 Name 4 "main" 14 Name 8 "lx" 15 Name 11 "gl_LaunchIDNV" 16 Name 16 "ly" 17 Name 20 "sx" 18 Name 21 "gl_LaunchSizeNV" 19 Name 24 "sy" 20 Name 29 "accNV" 21 Name 48 "block" 22 MemberName 48(block) 0 "arr" 23 MemberName 48(block) 1 "pad" 24 Name 50 "" 25 Name 56 "payload" 26 Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV 27 Decorate 21(gl_LaunchSizeNV) BuiltIn LaunchSizeNV 28 Decorate 29(accNV) DescriptorSet 0 29 Decorate 29(accNV) Binding 0 30 Decorate 46 ArrayStride 4 31 MemberDecorate 48(block) 0 Offset 0 32 MemberDecorate 48(block) 1 Offset 16 33 Decorate 48(block) Block 34 Decorate 56(payload) Location 0 35 2: TypeVoid 36 3: TypeFunction 2 37 6: TypeInt 32 0 38 7: TypePointer Function 6(int) 39 9: TypeVector 6(int) 3 40 10: TypePointer Input 9(ivec3) 41 11(gl_LaunchIDNV): 10(ptr) Variable Input 42 12: 6(int) Constant 0 43 13: TypePointer Input 6(int) 44 17: 6(int) Constant 1 45 21(gl_LaunchSizeNV): 10(ptr) Variable Input 46 27: TypeAccelerationStructureNV 47 28: TypePointer UniformConstant 27 48 29(accNV): 28(ptr) Variable UniformConstant 49 35: TypeFloat 32 50 36: TypeVector 35(float) 3 51 37: 35(float) Constant 0 52 38: 36(fvec3) ConstantComposite 37 37 37 53 39: 35(float) Constant 1056964608 54 40: 35(float) Constant 1065353216 55 41: 36(fvec3) ConstantComposite 40 40 40 56 42: 35(float) Constant 1061158912 57 43: TypeInt 32 1 58 44: 43(int) Constant 1 59 45: 6(int) Constant 4 60 46: TypeArray 35(float) 45 61 47: TypeVector 35(float) 4 62 48(block): TypeStruct 46 47(fvec4) 63 49: TypePointer ShaderRecordBufferNV 48(block) 64 50: 49(ptr) Variable ShaderRecordBufferNV 65 51: 43(int) Constant 0 66 52: 43(int) Constant 3 67 53: TypePointer ShaderRecordBufferNV 35(float) 68 55: TypePointer RayPayloadNV 47(fvec4) 69 56(payload): 55(ptr) Variable RayPayloadNV 70 58: TypePointer ShaderRecordBufferNV 47(fvec4) 71 4(main): 2 Function None 3 72 5: Label 73 8(lx): 7(ptr) Variable Function 74 16(ly): 7(ptr) Variable Function 75 20(sx): 7(ptr) Variable Function 76 24(sy): 7(ptr) Variable Function 77 14: 13(ptr) AccessChain 11(gl_LaunchIDNV) 12 78 15: 6(int) Load 14 79 Store 8(lx) 15 80 18: 13(ptr) AccessChain 11(gl_LaunchIDNV) 17 81 19: 6(int) Load 18 82 Store 16(ly) 19 83 22: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 12 84 23: 6(int) Load 22 85 Store 20(sx) 23 86 25: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 17 87 26: 6(int) Load 25 88 Store 24(sy) 26 89 30: 27 Load 29(accNV) 90 31: 6(int) Load 8(lx) 91 32: 6(int) Load 16(ly) 92 33: 6(int) Load 20(sx) 93 34: 6(int) Load 24(sy) 94 TraceNV 30 31 32 33 34 12 38 39 41 42 44 95 54: 53(ptr) AccessChain 50 51 52 96 Store 54 40 97 57: 47(fvec4) Load 56(payload) 98 59: 58(ptr) AccessChain 50 44 99 Store 59 57 100 Return 101 FunctionEnd 102