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
2.9 KiB61 linesraw
1spv.330.location.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 38
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 9 12 22
10                              ExecutionMode 4 OriginUpperLeft
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                              Decorate 9(fragColor) Location 0
20                              Decorate 12(color) Location 0
21                              Decorate 20(Block) Block
22                              Decorate 22(blk) Location 1
23               2:             TypeVoid
24               3:             TypeFunction 2
25               6:             TypeFloat 32
26               7:             TypeVector 6(float) 4
27               8:             TypePointer Output 7(fvec4)
28    9(fragColor):      8(ptr) Variable Output
29              10:             TypeVector 6(float) 3
30              11:             TypePointer Input 10(fvec3)
31       12(color):     11(ptr) Variable Input
32              14:    6(float) Constant 1065353216
33              19:             TypeVector 6(float) 2
34       20(Block):             TypeStruct 7(fvec4) 19(fvec2)
35              21:             TypePointer Input 20(Block)
36         22(blk):     21(ptr) Variable Input
37              23:             TypeInt 32 1
38              24:     23(int) Constant 0
39              25:             TypePointer Input 7(fvec4)
40              29:     23(int) Constant 1
41              30:             TypePointer Input 19(fvec2)
42              33:    6(float) Constant 0
43         4(main):           2 Function None 3
44               5:             Label
45              13:   10(fvec3) Load 12(color)
46              15:    6(float) CompositeExtract 13 0
47              16:    6(float) CompositeExtract 13 1
48              17:    6(float) CompositeExtract 13 2
49              18:    7(fvec4) CompositeConstruct 15 16 17 14
50              26:     25(ptr) AccessChain 22(blk) 24
51              27:    7(fvec4) Load 26
52              28:    7(fvec4) FAdd 18 27
53              31:     30(ptr) AccessChain 22(blk) 29
54              32:   19(fvec2) Load 31
55              34:    6(float) CompositeExtract 32 0
56              35:    6(float) CompositeExtract 32 1
57              36:    7(fvec4) CompositeConstruct 34 35 33 33
58              37:    7(fvec4) FAdd 28 36
59                              Store 9(fragColor) 37
60                              Return
61                              FunctionEnd