blob: 01fdbf018206095a6ff71b2f0382ec692f3339c9 [file] [log] [blame]
Chao Chenb50c02e2018-09-19 11:42:24 -07001spv.RayGenShader.rgen
Chao Chenb50c02e2018-09-19 11:42:24 -07002// Module Version 10000
Jeremy Hayes78221d62022-10-12 18:16:41 -06003// Generated by (magic number): 8000b
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
34 Decorate 50(accNV1) DescriptorSet 0
35 Decorate 50(accNV1) Binding 1
36 Decorate 53(payload) Location 0
Chao Chenb50c02e2018-09-19 11:42:24 -070037 2: TypeVoid
38 3: TypeFunction 2
39 6: TypeInt 32 0
40 7: TypePointer Function 6(int)
Ashwin Leleff1783d2018-10-22 16:41:44 -070041 9: TypeVector 6(int) 3
42 10: TypePointer Input 9(ivec3)
4311(gl_LaunchIDNV): 10(ptr) Variable Input
Chao Chenb50c02e2018-09-19 11:42:24 -070044 12: 6(int) Constant 0
45 13: TypePointer Input 6(int)
46 17: 6(int) Constant 1
Ashwin Leleff1783d2018-10-22 16:41:44 -07004721(gl_LaunchSizeNV): 10(ptr) Variable Input
Daniel Kochdb32b242020-03-17 20:42:47 -040048 27: TypeAccelerationStructureKHR
Chao Chenb50c02e2018-09-19 11:42:24 -070049 28: TypePointer UniformConstant 27
Piers Daniell3cf3f962019-01-07 14:17:44 -070050 29(accNV0): 28(ptr) Variable UniformConstant
Chao Chenb50c02e2018-09-19 11:42:24 -070051 35: TypeFloat 32
52 36: TypeVector 35(float) 3
Ashwin Leleafa56712019-03-04 11:05:55 -080053 37(block): TypeStruct 36(fvec3) 36(fvec3)
Daniel Kochdb32b242020-03-17 20:42:47 -040054 38: TypePointer ShaderRecordBufferKHR 37(block)
55 39: 38(ptr) Variable ShaderRecordBufferKHR
Ashwin Leleafa56712019-03-04 11:05:55 -080056 40: TypeInt 32 1
57 41: 40(int) Constant 1
Daniel Kochdb32b242020-03-17 20:42:47 -040058 42: TypePointer ShaderRecordBufferKHR 36(fvec3)
Ashwin Leleafa56712019-03-04 11:05:55 -080059 45: 35(float) Constant 1056964608
60 46: 40(int) Constant 0
61 49: 35(float) Constant 1061158912
62 50(accNV1): 28(ptr) Variable UniformConstant
63 51: TypeVector 35(float) 4
Daniel Kochdb32b242020-03-17 20:42:47 -040064 52: TypePointer RayPayloadKHR 51(fvec4)
65 53(payload): 52(ptr) Variable RayPayloadKHR
Chao Chenb50c02e2018-09-19 11:42:24 -070066 4(main): 2 Function None 3
67 5: Label
68 8(lx): 7(ptr) Variable Function
69 16(ly): 7(ptr) Variable Function
70 20(sx): 7(ptr) Variable Function
71 24(sy): 7(ptr) Variable Function
Ashwin Leleff1783d2018-10-22 16:41:44 -070072 14: 13(ptr) AccessChain 11(gl_LaunchIDNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070073 15: 6(int) Load 14
74 Store 8(lx) 15
Ashwin Leleff1783d2018-10-22 16:41:44 -070075 18: 13(ptr) AccessChain 11(gl_LaunchIDNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070076 19: 6(int) Load 18
77 Store 16(ly) 19
Ashwin Leleff1783d2018-10-22 16:41:44 -070078 22: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 12
Chao Chenb50c02e2018-09-19 11:42:24 -070079 23: 6(int) Load 22
80 Store 20(sx) 23
Ashwin Leleff1783d2018-10-22 16:41:44 -070081 25: 13(ptr) AccessChain 21(gl_LaunchSizeNV) 17
Chao Chenb50c02e2018-09-19 11:42:24 -070082 26: 6(int) Load 25
83 Store 24(sy) 26
Piers Daniell3cf3f962019-01-07 14:17:44 -070084 30: 27 Load 29(accNV0)
Chao Chenb50c02e2018-09-19 11:42:24 -070085 31: 6(int) Load 8(lx)
86 32: 6(int) Load 16(ly)
87 33: 6(int) Load 20(sx)
88 34: 6(int) Load 24(sy)
Ashwin Leleafa56712019-03-04 11:05:55 -080089 43: 42(ptr) AccessChain 39 41
90 44: 36(fvec3) Load 43
91 47: 42(ptr) AccessChain 39 46
92 48: 36(fvec3) Load 47
Daniel Kochffccefd2020-11-23 15:41:27 -050093 TraceNV 30 31 32 33 34 12 44 45 48 49 41
Chao Chenb50c02e2018-09-19 11:42:24 -070094 Return
95 FunctionEnd