blob: f8f3fd65d8c855a459af181cc3405966e519d46e [file] [log] [blame]
Chao Chenb50c02e2018-09-19 11:42:24 -07001spv.RayGenShader.rgen
Chao Chenb50c02e2018-09-19 11:42:24 -07002// Module Version 10000
Graeme Leese182ab462020-06-22 11:49:38 +01003// Generated by (magic number): 8000a
Ashwin Leleafa56712019-03-04 11:05:55 -08004// Id's are bound by 54
Chao Chenb50c02e2018-09-19 11:42:24 -07005
Ashwin Leleff1783d2018-10-22 16:41:44 -07006 Capability RayTracingNV
7 Extension "SPV_NV_ray_tracing"
Chao Chenb50c02e2018-09-19 11:42:24 -07008 1: ExtInstImport "GLSL.std.450"
9 MemoryModel Logical GLSL450
Daniel Kochdb32b242020-03-17 20:42:47 -040010 EntryPoint RayGenerationKHR 4 "main" 11 21
Chao Chenb50c02e2018-09-19 11:42:24 -070011 Source GLSL 460
Ashwin Leleff1783d2018-10-22 16:41:44 -070012 SourceExtension "GL_NV_ray_tracing"
Chao Chenb50c02e2018-09-19 11:42:24 -070013 Name 4 "main"
14 Name 8 "lx"
Ashwin Leleff1783d2018-10-22 16:41:44 -070015 Name 11 "gl_LaunchIDNV"
Chao Chenb50c02e2018-09-19 11:42:24 -070016 Name 16 "ly"
17 Name 20 "sx"
Ashwin Leleff1783d2018-10-22 16:41:44 -070018 Name 21 "gl_LaunchSizeNV"
Chao Chenb50c02e2018-09-19 11:42:24 -070019 Name 24 "sy"
Piers Daniell3cf3f962019-01-07 14:17:44 -070020 Name 29 "accNV0"
Ashwin Leleafa56712019-03-04 11:05:55 -080021 Name 37 "block"
22 MemberName 37(block) 0 "dir"
23 MemberName 37(block) 1 "origin"
24 Name 39 ""
25 Name 50 "accNV1"
26 Name 53 "payload"
Daniel Kochdb32b242020-03-17 20:42:47 -040027 Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdKHR
28 Decorate 21(gl_LaunchSizeNV) BuiltIn LaunchSizeKHR
Piers Daniell3cf3f962019-01-07 14:17:44 -070029 Decorate 29(accNV0) DescriptorSet 0
30 Decorate 29(accNV0) Binding 0
Ashwin Leleafa56712019-03-04 11:05:55 -080031 MemberDecorate 37(block) 0 Offset 0
32 MemberDecorate 37(block) 1 Offset 16
33 Decorate 37(block) BufferBlock
John Kessenichf6facfa2020-07-01 06:30:16 -060034 Decorate 39 DescriptorSet 0
35 Decorate 39 Binding 2
Ashwin Leleafa56712019-03-04 11:05:55 -080036 Decorate 50(accNV1) DescriptorSet 0
37 Decorate 50(accNV1) Binding 1
38 Decorate 53(payload) Location 0
Chao Chenb50c02e2018-09-19 11:42:24 -070039 2: TypeVoid
40 3: TypeFunction 2
41 6: TypeInt 32 0
42 7: TypePointer Function 6(int)
Ashwin Leleff1783d2018-10-22 16:41:44 -070043 9: TypeVector 6(int) 3
44 10: TypePointer Input 9(ivec3)
4511(gl_LaunchIDNV): 10(ptr) Variable Input
Chao Chenb50c02e2018-09-19 11:42:24 -070046 12: 6(int) Constant 0
47 13: TypePointer Input 6(int)
48 17: 6(int) Constant 1
Ashwin Leleff1783d2018-10-22 16:41:44 -07004921(gl_LaunchSizeNV): 10(ptr) Variable Input
Daniel Kochdb32b242020-03-17 20:42:47 -040050 27: TypeAccelerationStructureKHR
Chao Chenb50c02e2018-09-19 11:42:24 -070051 28: TypePointer UniformConstant 27
Piers Daniell3cf3f962019-01-07 14:17:44 -070052 29(accNV0): 28(ptr) Variable UniformConstant
Chao Chenb50c02e2018-09-19 11:42:24 -070053 35: TypeFloat 32
54 36: TypeVector 35(float) 3
Ashwin Leleafa56712019-03-04 11:05:55 -080055 37(block): TypeStruct 36(fvec3) 36(fvec3)
Daniel Kochdb32b242020-03-17 20:42:47 -040056 38: TypePointer ShaderRecordBufferKHR 37(block)
57 39: 38(ptr) Variable ShaderRecordBufferKHR
Ashwin Leleafa56712019-03-04 11:05:55 -080058 40: TypeInt 32 1
59 41: 40(int) Constant 1
Daniel Kochdb32b242020-03-17 20:42:47 -040060 42: TypePointer ShaderRecordBufferKHR 36(fvec3)
Ashwin Leleafa56712019-03-04 11:05:55 -080061 45: 35(float) Constant 1056964608
62 46: 40(int) Constant 0
63 49: 35(float) Constant 1061158912
64 50(accNV1): 28(ptr) Variable UniformConstant
65 51: TypeVector 35(float) 4
Daniel Kochdb32b242020-03-17 20:42:47 -040066 52: TypePointer RayPayloadKHR 51(fvec4)
67 53(payload): 52(ptr) Variable RayPayloadKHR
Chao Chenb50c02e2018-09-19 11:42:24 -070068 4(main): 2 Function None 3
69 5: Label
70 8(lx): 7(ptr) Variable Function
71 16(ly): 7(ptr) Variable Function
72 20(sx): 7(ptr) Variable Function
73 24(sy): 7(ptr) Variable Function
Ashwin Leleff1783d2018-10-22 16:41:44 -070074 14: 13(ptr) AccessChain 11(gl_LaunchIDNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070075 15: 6(int) Load 14
76 Store 8(lx) 15
Ashwin Leleff1783d2018-10-22 16:41:44 -070077 18: 13(ptr) AccessChain 11(gl_LaunchIDNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070078 19: 6(int) Load 18
79 Store 16(ly) 19
Ashwin Leleff1783d2018-10-22 16:41:44 -070080 22: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070081 23: 6(int) Load 22
82 Store 20(sx) 23
Ashwin Leleff1783d2018-10-22 16:41:44 -070083 25: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070084 26: 6(int) Load 25
85 Store 24(sy) 26
Piers Daniell3cf3f962019-01-07 14:17:44 -070086 30: 27 Load 29(accNV0)
Chao Chenb50c02e2018-09-19 11:42:24 -070087 31: 6(int) Load 8(lx)
88 32: 6(int) Load 16(ly)
89 33: 6(int) Load 20(sx)
90 34: 6(int) Load 24(sy)
Ashwin Leleafa56712019-03-04 11:05:55 -080091 43: 42(ptr) AccessChain 39 41
92 44: 36(fvec3) Load 43
93 47: 42(ptr) AccessChain 39 46
94 48: 36(fvec3) Load 47
Daniel Kochffccefd2020-11-23 15:41:27 -050095 TraceNV 30 31 32 33 34 12 44 45 48 49 41
Chao Chenb50c02e2018-09-19 11:42:24 -070096 Return
97 FunctionEnd