yum-mirror/glslang

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

janharaldAdding support for GL_KHR_compute_shader_derivatives91bfd96a

main
7.4 KiB137 linesraw
1spv.khrComputeShaderDerivatives.mesh
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 73
5
6                              Capability ImageQuery
7                              Capability MeshShadingEXT
8                              Capability ComputeDerivativeGroupLinearKHR
9                              Extension  "SPV_EXT_mesh_shader"
10                              Extension  "SPV_KHR_compute_shader_derivatives"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint MeshEXT 4  "main" 10 24 39 48 62
14                              ExecutionMode 4 LocalSize 4 1 1
15                              ExecutionMode 4 DerivativeGroupLinearKHR
16                              ExecutionMode 4 OutputVertices 3
17                              ExecutionMode 4 OutputPrimitivesNV 1
18                              ExecutionMode 4 OutputTrianglesNV
19                              Source GLSL 450
20                              SourceExtension  "GL_EXT_mesh_shader"
21                              SourceExtension  "GL_KHR_compute_shader_derivatives"
22                              Name 4  "main"
23                              Name 8  "iid"
24                              Name 10  "gl_LocalInvocationIndex"
25                              Name 14  "localDx"
26                              Name 20  "localLod"
27                              Name 24  "tex"
28                              Name 37  "Output"
29                              MemberName 37(Output) 0  "lod"
30                              Name 39  "outData"
31                              Name 48  "gl_PrimitiveTriangleIndicesEXT"
32                              Name 59  "gl_MeshPerVertexEXT"
33                              MemberName 59(gl_MeshPerVertexEXT) 0  "gl_Position"
34                              MemberName 59(gl_MeshPerVertexEXT) 1  "gl_PointSize"
35                              MemberName 59(gl_MeshPerVertexEXT) 2  "gl_ClipDistance"
36                              MemberName 59(gl_MeshPerVertexEXT) 3  "gl_CullDistance"
37                              Name 62  "gl_MeshVerticesEXT"
38                              Decorate 10(gl_LocalInvocationIndex) BuiltIn LocalInvocationIndex
39                              Decorate 24(tex) Binding 0
40                              Decorate 24(tex) DescriptorSet 0
41                              Decorate 37(Output) Block
42                              MemberDecorate 37(Output) 0 Offset 0
43                              Decorate 39(outData) Binding 1
44                              Decorate 39(outData) DescriptorSet 0
45                              Decorate 48(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT
46                              Decorate 59(gl_MeshPerVertexEXT) Block
47                              MemberDecorate 59(gl_MeshPerVertexEXT) 0 BuiltIn Position
48                              MemberDecorate 59(gl_MeshPerVertexEXT) 1 BuiltIn PointSize
49                              MemberDecorate 59(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance
50                              MemberDecorate 59(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance
51                              Decorate 72 BuiltIn WorkgroupSize
52               2:             TypeVoid
53               3:             TypeFunction 2
54               6:             TypeInt 32 0
55               7:             TypePointer Function 6(int)
56               9:             TypePointer Input 6(int)
5710(gl_LocalInvocationIndex):      9(ptr) Variable Input
58              12:             TypeFloat 32
59              13:             TypePointer Function 12(float)
60              18:             TypeVector 12(float) 2
61              19:             TypePointer Function 18(fvec2)
62              21:             TypeImage 12(float) 2D sampled format:Unknown
63              22:             TypeSampledImage 21
64              23:             TypePointer UniformConstant 22
65         24(tex):     23(ptr) Variable UniformConstant
66              26:   12(float) Constant 1056964608
67              27:   18(fvec2) ConstantComposite 26 26
68              30:      6(int) Constant 0
69              31:             TypeBool
70              35:      6(int) Constant 3
71              36:      6(int) Constant 1
72      37(Output):             TypeStruct 18(fvec2)
73              38:             TypePointer StorageBuffer 37(Output)
74     39(outData):     38(ptr) Variable StorageBuffer
75              40:             TypeInt 32 1
76              41:     40(int) Constant 0
77              43:             TypePointer StorageBuffer 18(fvec2)
78              45:             TypeVector 6(int) 3
79              46:             TypeArray 45(ivec3) 36
80              47:             TypePointer Output 46
8148(gl_PrimitiveTriangleIndicesEXT):     47(ptr) Variable Output
82              49:      6(int) Constant 2
83              50:   45(ivec3) ConstantComposite 30 36 49
84              51:             TypePointer Output 45(ivec3)
85              57:             TypeVector 12(float) 4
86              58:             TypeArray 12(float) 36
8759(gl_MeshPerVertexEXT):             TypeStruct 57(fvec4) 12(float) 58 58
88              60:             TypeArray 59(gl_MeshPerVertexEXT) 35
89              61:             TypePointer Output 60
9062(gl_MeshVerticesEXT):     61(ptr) Variable Output
91              69:             TypePointer Output 57(fvec4)
92              71:      6(int) Constant 4
93              72:   45(ivec3) ConstantComposite 71 36 36
94         4(main):           2 Function None 3
95               5:             Label
96          8(iid):      7(ptr) Variable Function
97     14(localDx):     13(ptr) Variable Function
98    20(localLod):     19(ptr) Variable Function
99              11:      6(int) Load 10(gl_LocalInvocationIndex)
100                              Store 8(iid) 11
101              15:      6(int) Load 8(iid)
102              16:   12(float) ConvertUToF 15
103              17:   12(float) DPdx 16
104                              Store 14(localDx) 17
105              25:          22 Load 24(tex)
106              28:   18(fvec2) ImageQueryLod 25 27
107                              Store 20(localLod) 28
108              29:      6(int) Load 8(iid)
109              32:    31(bool) IEqual 29 30
110                              SelectionMerge 34 None
111                              BranchConditional 32 33 34
112              33:               Label
113                                SetMeshOutputsEXT 35 36
114              42:   18(fvec2)   Load 20(localLod)
115              44:     43(ptr)   AccessChain 39(outData) 41
116                                Store 44 42
117              52:     51(ptr)   AccessChain 48(gl_PrimitiveTriangleIndicesEXT) 41
118                                Store 52 50
119                                Branch 34
120              34:             Label
121              53:      6(int) Load 8(iid)
122              54:    31(bool) ULessThan 53 35
123                              SelectionMerge 56 None
124                              BranchConditional 54 55 56
125              55:               Label
126              63:      6(int)   Load 8(iid)
127              64:   12(float)   Load 14(localDx)
128              65:     13(ptr)   AccessChain 20(localLod) 30
129              66:   12(float)   Load 65
130              67:   12(float)   FAdd 64 66
131              68:   57(fvec4)   CompositeConstruct 67 67 67 67
132              70:     69(ptr)   AccessChain 62(gl_MeshVerticesEXT) 63 41
133                                Store 70 68
134                                Branch 56
135              56:             Label
136                              Return
137                              FunctionEnd