yum-mirror/glslang

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

Matthew NichollsApply `NoContraction` to `dot()`f5d2960b

main
2.3 KiB51 linesraw
1spv.precise.dot.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 28
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Vertex 4  "main" 21
10                              Source GLSL 450
11                              Name 4  "main"
12                              Name 9  "v"
13                              Name 11  "u"
14                              Name 15  "f"
15                              Name 19  "gl_PerVertex"
16                              MemberName 19(gl_PerVertex) 0  "gl_Position"
17                              Name 21  ""
18                              Decorate 18 NoContraction
19                              Decorate 19(gl_PerVertex) Block
20                              MemberDecorate 19(gl_PerVertex) 0 BuiltIn Position
21               2:             TypeVoid
22               3:             TypeFunction 2
23               6:             TypeFloat 32
24               7:             TypeVector 6(float) 4
25               8:             TypePointer Function 7(fvec4)
26              10:             TypePointer Private 6(float)
27           11(u):     10(ptr) Variable Private
28              14:             TypePointer Function 6(float)
2919(gl_PerVertex):             TypeStruct 7(fvec4)
30              20:             TypePointer Output 19(gl_PerVertex)
31              21:     20(ptr) Variable Output
32              22:             TypeInt 32 1
33              23:     22(int) Constant 0
34              26:             TypePointer Output 7(fvec4)
35         4(main):           2 Function None 3
36               5:             Label
37            9(v):      8(ptr) Variable Function
38           15(f):     14(ptr) Variable Function
39              12:    6(float) Load 11(u)
40              13:    7(fvec4) CompositeConstruct 12 12 12 12
41                              Store 9(v) 13
42              16:    7(fvec4) Load 9(v)
43              17:    7(fvec4) Load 9(v)
44              18:    6(float) Dot 16 17
45                              Store 15(f) 18
46              24:    6(float) Load 15(f)
47              25:    7(fvec4) CompositeConstruct 24 24 24 24
48              27:     26(ptr) AccessChain 21 23
49                              Store 27 25
50                              Return
51                              FunctionEnd