yum-mirror/glslang

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

Pavel AsyutchenkoFix HLSL built-in passthrough via inout2c4348f0

main
6.4 KiB137 linesraw
1hlsl.entry-inout.vert
2Shader version: 500
30:? Sequence
40:1  Function Definition: @main(vf4;vf2; ( temp void)
50:1    Function Parameters: 
60:1      'pos' ( inout 4-component vector of float)
70:1      'uv' ( inout 2-component vector of float)
80:1  Function Definition: main( ( temp void)
90:1    Function Parameters: 
100:?     Sequence
110:1      move second child to first child ( temp 4-component vector of float)
120:?         'pos' ( temp 4-component vector of float)
130:?         'pos' (layout( location=0) in 4-component vector of float)
140:1      move second child to first child ( temp 2-component vector of float)
150:?         'uv' ( temp 2-component vector of float)
160:?         'uv' (layout( location=1) in 2-component vector of float)
170:1      Function Call: @main(vf4;vf2; ( temp void)
180:?         'pos' ( temp 4-component vector of float)
190:?         'uv' ( temp 2-component vector of float)
200:1      move second child to first child ( temp 4-component vector of float)
210:?         'pos' ( out 4-component vector of float Position)
220:?         'pos' ( temp 4-component vector of float)
230:1      move second child to first child ( temp 2-component vector of float)
240:?         'uv' (layout( location=0) out 2-component vector of float)
250:?         'uv' ( temp 2-component vector of float)
260:?   Linker Objects
270:?     'pos' (layout( location=0) in 4-component vector of float)
280:?     'uv' (layout( location=1) in 2-component vector of float)
290:?     'pos' ( out 4-component vector of float Position)
300:?     'uv' (layout( location=0) out 2-component vector of float)
31
32
33Linked vertex stage:
34
35
36Shader version: 500
370:? Sequence
380:1  Function Definition: @main(vf4;vf2; ( temp void)
390:1    Function Parameters: 
400:1      'pos' ( inout 4-component vector of float)
410:1      'uv' ( inout 2-component vector of float)
420:1  Function Definition: main( ( temp void)
430:1    Function Parameters: 
440:?     Sequence
450:1      move second child to first child ( temp 4-component vector of float)
460:?         'pos' ( temp 4-component vector of float)
470:?         'pos' (layout( location=0) in 4-component vector of float)
480:1      move second child to first child ( temp 2-component vector of float)
490:?         'uv' ( temp 2-component vector of float)
500:?         'uv' (layout( location=1) in 2-component vector of float)
510:1      Function Call: @main(vf4;vf2; ( temp void)
520:?         'pos' ( temp 4-component vector of float)
530:?         'uv' ( temp 2-component vector of float)
540:1      move second child to first child ( temp 4-component vector of float)
550:?         'pos' ( out 4-component vector of float Position)
560:?         'pos' ( temp 4-component vector of float)
570:1      move second child to first child ( temp 2-component vector of float)
580:?         'uv' (layout( location=0) out 2-component vector of float)
590:?         'uv' ( temp 2-component vector of float)
600:?   Linker Objects
610:?     'pos' (layout( location=0) in 4-component vector of float)
620:?     'uv' (layout( location=1) in 2-component vector of float)
630:?     'pos' ( out 4-component vector of float Position)
640:?     'uv' (layout( location=0) out 2-component vector of float)
65
66// Module Version 10000
67// Generated by (magic number): 8000b
68// Id's are bound by 37
69
70                              Capability Shader
71               1:             ExtInstImport  "GLSL.std.450"
72                              MemoryModel Logical GLSL450
73                              EntryPoint Vertex 4  "main" 18 22 32 35
74                              Source HLSL 500
75                              Name 4  "main"
76                              Name 14  "@main(vf4;vf2;"
77                              Name 12  "pos"
78                              Name 13  "uv"
79                              Name 16  "pos"
80                              Name 18  "pos"
81                              Name 20  "uv"
82                              Name 22  "uv"
83                              Name 24  "param"
84                              Name 26  "param"
85                              Name 32  "pos"
86                              Name 35  "uv"
87                              Decorate 18(pos) Location 0
88                              Decorate 22(uv) Location 1
89                              Decorate 32(pos) BuiltIn Position
90                              Decorate 35(uv) Location 0
91               2:             TypeVoid
92               3:             TypeFunction 2
93               6:             TypeFloat 32
94               7:             TypeVector 6(float) 4
95               8:             TypePointer Function 7(fvec4)
96               9:             TypeVector 6(float) 2
97              10:             TypePointer Function 9(fvec2)
98              11:             TypeFunction 2 8(ptr) 10(ptr)
99              17:             TypePointer Input 7(fvec4)
100         18(pos):     17(ptr) Variable Input
101              21:             TypePointer Input 9(fvec2)
102          22(uv):     21(ptr) Variable Input
103              31:             TypePointer Output 7(fvec4)
104         32(pos):     31(ptr) Variable Output
105              34:             TypePointer Output 9(fvec2)
106          35(uv):     34(ptr) Variable Output
107         4(main):           2 Function None 3
108               5:             Label
109         16(pos):      8(ptr) Variable Function
110          20(uv):     10(ptr) Variable Function
111       24(param):      8(ptr) Variable Function
112       26(param):     10(ptr) Variable Function
113              19:    7(fvec4) Load 18(pos)
114                              Store 16(pos) 19
115              23:    9(fvec2) Load 22(uv)
116                              Store 20(uv) 23
117              25:    7(fvec4) Load 16(pos)
118                              Store 24(param) 25
119              27:    9(fvec2) Load 20(uv)
120                              Store 26(param) 27
121              28:           2 FunctionCall 14(@main(vf4;vf2;) 24(param) 26(param)
122              29:    7(fvec4) Load 24(param)
123                              Store 16(pos) 29
124              30:    9(fvec2) Load 26(param)
125                              Store 20(uv) 30
126              33:    7(fvec4) Load 16(pos)
127                              Store 32(pos) 33
128              36:    9(fvec2) Load 20(uv)
129                              Store 35(uv) 36
130                              Return
131                              FunctionEnd
13214(@main(vf4;vf2;):           2 Function None 11
133         12(pos):      8(ptr) FunctionParameter
134          13(uv):     10(ptr) FunctionParameter
135              15:             Label
136                              Return
137                              FunctionEnd