blob: db6ecfc9521998110869c1f3407c7ea18bff9cf3 [file] [log] [blame]
Chao Chenb50c02e2018-09-19 11:42:24 -07001spv.RayGenShader.rgen
Chao Chenb50c02e2018-09-19 11:42:24 -07002// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 60
5
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
Ashwin Leleff1783d2018-10-22 16:41:44 -070010 EntryPoint RayGenerationNV 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"
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"
Ashwin Leleff1783d2018-10-22 16:41:44 -070026 Decorate 11(gl_LaunchIDNV) BuiltIn LaunchIdNV
27 Decorate 21(gl_LaunchSizeNV) BuiltIn LaunchSizeNV
Chao Chenb50c02e2018-09-19 11:42:24 -070028 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) BufferBlock
34 Decorate 56(payload) Location 0
35 2: TypeVoid
36 3: TypeFunction 2
37 6: TypeInt 32 0
38 7: TypePointer Function 6(int)
Ashwin Leleff1783d2018-10-22 16:41:44 -070039 9: TypeVector 6(int) 3
40 10: TypePointer Input 9(ivec3)
4111(gl_LaunchIDNV): 10(ptr) Variable Input
Chao Chenb50c02e2018-09-19 11:42:24 -070042 12: 6(int) Constant 0
43 13: TypePointer Input 6(int)
44 17: 6(int) Constant 1
Ashwin Leleff1783d2018-10-22 16:41:44 -07004521(gl_LaunchSizeNV): 10(ptr) Variable Input
46 27: TypeAccelerationStructureNV
Chao Chenb50c02e2018-09-19 11:42:24 -070047 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)
Ashwin Leleff1783d2018-10-22 16:41:44 -070063 49: TypePointer ShaderRecordBufferNV 48(block)
64 50: 49(ptr) Variable ShaderRecordBufferNV
Chao Chenb50c02e2018-09-19 11:42:24 -070065 51: 43(int) Constant 0
66 52: 43(int) Constant 3
Ashwin Leleff1783d2018-10-22 16:41:44 -070067 53: TypePointer ShaderRecordBufferNV 35(float)
68 55: TypePointer RayPayloadNV 47(fvec4)
69 56(payload): 55(ptr) Variable RayPayloadNV
70 58: TypePointer ShaderRecordBufferNV 47(fvec4)
Chao Chenb50c02e2018-09-19 11:42:24 -070071 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
Ashwin Leleff1783d2018-10-22 16:41:44 -070077 14: 13(ptr) AccessChain 11(gl_LaunchIDNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070078 15: 6(int) Load 14
79 Store 8(lx) 15
Ashwin Leleff1783d2018-10-22 16:41:44 -070080 18: 13(ptr) AccessChain 11(gl_LaunchIDNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070081 19: 6(int) Load 18
82 Store 16(ly) 19
Ashwin Leleff1783d2018-10-22 16:41:44 -070083 22: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070084 23: 6(int) Load 22
85 Store 20(sx) 23
Ashwin Leleff1783d2018-10-22 16:41:44 -070086 25: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070087 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)
Ashwin Leleff1783d2018-10-22 16:41:44 -070094 TraceNV 30 31 32 33 34 12 38 39 41 42 44
Chao Chenb50c02e2018-09-19 11:42:24 -070095 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