yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Sven van HaastregtEmit SPV_EXT_opacity_micromap if GL extension is present360aacdb

main
5.4 KiB106 linesraw
1spv.ext.RayGenShader.rgen
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 58
5
6                              Capability RayTraversalPrimitiveCullingKHR
7                              Capability RayTracingKHR
8                              Capability RayTracingOpacityMicromapEXT
9                              Extension  "SPV_EXT_opacity_micromap"
10                              Extension  "SPV_KHR_ray_tracing"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint RayGenerationKHR 4  "main" 11 21 29 40 53 54 57
14                              Source GLSL 460
15                              SourceExtension  "GL_EXT_opacity_micromap"
16                              SourceExtension  "GL_EXT_ray_flags_primitive_culling"
17                              SourceExtension  "GL_EXT_ray_tracing"
18                              Name 4  "main"
19                              Name 8  "lx"
20                              Name 11  "gl_LaunchIDEXT"
21                              Name 16  "ly"
22                              Name 20  "sx"
23                              Name 21  "gl_LaunchSizeEXT"
24                              Name 24  "sy"
25                              Name 29  "accEXT0"
26                              Name 38  "block"
27                              MemberName 38(block) 0  "dir"
28                              MemberName 38(block) 1  "origin"
29                              Name 40  ""
30                              Name 53  "payload"
31                              Name 54  "accEXT1"
32                              Name 57  "imageu"
33                              Decorate 11(gl_LaunchIDEXT) BuiltIn LaunchIdKHR
34                              Decorate 21(gl_LaunchSizeEXT) BuiltIn LaunchSizeKHR
35                              Decorate 29(accEXT0) Binding 0
36                              Decorate 29(accEXT0) DescriptorSet 0
37                              Decorate 38(block) Block
38                              MemberDecorate 38(block) 0 Offset 0
39                              MemberDecorate 38(block) 1 Offset 16
40                              Decorate 54(accEXT1) Binding 1
41                              Decorate 54(accEXT1) DescriptorSet 0
42                              Decorate 57(imageu) Binding 2
43                              Decorate 57(imageu) DescriptorSet 0
44               2:             TypeVoid
45               3:             TypeFunction 2
46               6:             TypeInt 32 0
47               7:             TypePointer Function 6(int)
48               9:             TypeVector 6(int) 3
49              10:             TypePointer Input 9(ivec3)
5011(gl_LaunchIDEXT):     10(ptr) Variable Input
51              12:      6(int) Constant 0
52              13:             TypePointer Input 6(int)
53              17:      6(int) Constant 1
5421(gl_LaunchSizeEXT):     10(ptr) Variable Input
55              27:             TypeAccelerationStructureKHR
56              28:             TypePointer UniformConstant 27
57     29(accEXT0):     28(ptr) Variable UniformConstant
58              35:      6(int) Constant 1792
59              36:             TypeFloat 32
60              37:             TypeVector 36(float) 3
61       38(block):             TypeStruct 37(fvec3) 37(fvec3)
62              39:             TypePointer ShaderRecordBufferKHR 38(block)
63              40:     39(ptr) Variable ShaderRecordBufferKHR
64              41:             TypeInt 32 1
65              42:     41(int) Constant 1
66              43:             TypePointer ShaderRecordBufferKHR 37(fvec3)
67              46:   36(float) Constant 1056964608
68              47:     41(int) Constant 0
69              50:   36(float) Constant 1061158912
70              51:             TypeVector 36(float) 4
71              52:             TypePointer RayPayloadKHR 51(fvec4)
72     53(payload):     52(ptr) Variable RayPayloadKHR
73     54(accEXT1):     28(ptr) Variable UniformConstant
74              55:             TypeImage 6(int) 2D nonsampled format:R32ui
75              56:             TypePointer UniformConstant 55
76      57(imageu):     56(ptr) Variable UniformConstant
77         4(main):           2 Function None 3
78               5:             Label
79           8(lx):      7(ptr) Variable Function
80          16(ly):      7(ptr) Variable Function
81          20(sx):      7(ptr) Variable Function
82          24(sy):      7(ptr) Variable Function
83              14:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 12
84              15:      6(int) Load 14
85                              Store 8(lx) 15
86              18:     13(ptr) AccessChain 11(gl_LaunchIDEXT) 17
87              19:      6(int) Load 18
88                              Store 16(ly) 19
89              22:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 12
90              23:      6(int) Load 22
91                              Store 20(sx) 23
92              25:     13(ptr) AccessChain 21(gl_LaunchSizeEXT) 17
93              26:      6(int) Load 25
94                              Store 24(sy) 26
95              30:          27 Load 29(accEXT0)
96              31:      6(int) Load 8(lx)
97              32:      6(int) Load 16(ly)
98              33:      6(int) Load 20(sx)
99              34:      6(int) Load 24(sy)
100              44:     43(ptr) AccessChain 40 42
101              45:   37(fvec3) Load 44
102              48:     43(ptr) AccessChain 40 47
103              49:   37(fvec3) Load 48
104                              TraceRayKHR 30 31 32 33 34 35 45 46 49 50 53(payload)
105                              Return
106                              FunctionEnd