yum-mirror/glslang

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

Wint3rNightAllow location on inputs and outputs at any version when generating SPIR-V9a1dc751

main
3.8 KiB78 linesraw
1spv.330.location.opengl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 47
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 9 12 22 35
10                              ExecutionMode 4 OriginLowerLeft
11                              Source GLSL 330
12                              Name 4  "main"
13                              Name 9  "fragColor"
14                              Name 12  "color"
15                              Name 20  "Block"
16                              MemberName 20(Block) 0  "a"
17                              MemberName 20(Block) 1  "b"
18                              Name 22  "blk"
19                              Name 33  "Members"
20                              MemberName 33(Members) 0  "c"
21                              MemberName 33(Members) 1  "d"
22                              Name 35  "mem"
23                              Decorate 9(fragColor) Location 0
24                              Decorate 12(color) Location 0
25                              Decorate 20(Block) Block
26                              Decorate 22(blk) Location 1
27                              Decorate 33(Members) Block
28                              MemberDecorate 33(Members) 0 Location 3
29                              MemberDecorate 33(Members) 1 Location 4
30                              Decorate 35(mem) Location 0
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeFloat 32
34               7:             TypeVector 6(float) 4
35               8:             TypePointer Output 7(fvec4)
36    9(fragColor):      8(ptr) Variable Output
37              10:             TypeVector 6(float) 3
38              11:             TypePointer Input 10(fvec3)
39       12(color):     11(ptr) Variable Input
40              14:    6(float) Constant 1065353216
41              19:             TypeVector 6(float) 2
42       20(Block):             TypeStruct 7(fvec4) 19(fvec2)
43              21:             TypePointer Input 20(Block)
44         22(blk):     21(ptr) Variable Input
45              23:             TypeInt 32 1
46              24:     23(int) Constant 0
47              25:             TypePointer Input 7(fvec4)
48              29:     23(int) Constant 1
49              30:             TypePointer Input 19(fvec2)
50     33(Members):             TypeStruct 7(fvec4) 6(float)
51              34:             TypePointer Input 33(Members)
52         35(mem):     34(ptr) Variable Input
53              36:             TypePointer Input 6(float)
54              39:    6(float) Constant 0
55         4(main):           2 Function None 3
56               5:             Label
57              13:   10(fvec3) Load 12(color)
58              15:    6(float) CompositeExtract 13 0
59              16:    6(float) CompositeExtract 13 1
60              17:    6(float) CompositeExtract 13 2
61              18:    7(fvec4) CompositeConstruct 15 16 17 14
62              26:     25(ptr) AccessChain 22(blk) 24
63              27:    7(fvec4) Load 26
64              28:    7(fvec4) FAdd 18 27
65              31:     30(ptr) AccessChain 22(blk) 29
66              32:   19(fvec2) Load 31
67              37:     36(ptr) AccessChain 35(mem) 29
68              38:    6(float) Load 37
69              40:    6(float) CompositeExtract 32 0
70              41:    6(float) CompositeExtract 32 1
71              42:    7(fvec4) CompositeConstruct 40 41 38 39
72              43:    7(fvec4) FAdd 28 42
73              44:     25(ptr) AccessChain 35(mem) 24
74              45:    7(fvec4) Load 44
75              46:    7(fvec4) FAdd 43 45
76                              Store 9(fragColor) 46
77                              Return
78                              FunctionEnd