• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.logical.binary.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:12  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
60:12    Function Parameters:
70:?     Sequence
80:13      Test condition and select ( temp void)
90:13        Condition
100:13        logical-and ( temp bool)
110:13          Convert int to bool ( temp bool)
120:13            ival: direct index for structure ( uniform int)
130:13              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
140:13              Constant:
150:13                0 (const uint)
160:13          Convert float to bool ( temp bool)
170:13            fval: direct index for structure ( uniform float)
180:13              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
190:13              Constant:
200:13                2 (const uint)
210:13        true case is null
220:14      Test condition and select ( temp void)
230:14        Condition
240:14        logical-or ( temp bool)
250:14          Convert int to bool ( temp bool)
260:14            ival: direct index for structure ( uniform int)
270:14              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
280:14              Constant:
290:14                0 (const uint)
300:14          Convert float to bool ( temp bool)
310:14            fval: direct index for structure ( uniform float)
320:14              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
330:14              Constant:
340:14                2 (const uint)
350:14        true case is null
360:17      move second child to first child ( temp 4-component vector of float)
370:17        Color: direct index for structure ( temp 4-component vector of float)
380:17          'psout' ( temp structure{ temp 4-component vector of float Color})
390:17          Constant:
400:17            0 (const int)
410:17        Constant:
420:17          1.000000
430:17          1.000000
440:17          1.000000
450:17          1.000000
460:18      Branch: Return with expression
470:18        'psout' ( temp structure{ temp 4-component vector of float Color})
480:12  Function Definition: main( ( temp void)
490:12    Function Parameters:
500:?     Sequence
510:12      Sequence
520:12        move second child to first child ( temp 4-component vector of float)
530:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
540:12          Color: direct index for structure ( temp 4-component vector of float)
550:12            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
560:12            Constant:
570:12              0 (const int)
580:?   Linker Objects
590:?     'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
600:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
61
62
63Linked fragment stage:
64
65
66Shader version: 500
67gl_FragCoord origin is upper left
680:? Sequence
690:12  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
700:12    Function Parameters:
710:?     Sequence
720:13      Test condition and select ( temp void)
730:13        Condition
740:13        logical-and ( temp bool)
750:13          Convert int to bool ( temp bool)
760:13            ival: direct index for structure ( uniform int)
770:13              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
780:13              Constant:
790:13                0 (const uint)
800:13          Convert float to bool ( temp bool)
810:13            fval: direct index for structure ( uniform float)
820:13              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
830:13              Constant:
840:13                2 (const uint)
850:13        true case is null
860:14      Test condition and select ( temp void)
870:14        Condition
880:14        logical-or ( temp bool)
890:14          Convert int to bool ( temp bool)
900:14            ival: direct index for structure ( uniform int)
910:14              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
920:14              Constant:
930:14                0 (const uint)
940:14          Convert float to bool ( temp bool)
950:14            fval: direct index for structure ( uniform float)
960:14              'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
970:14              Constant:
980:14                2 (const uint)
990:14        true case is null
1000:17      move second child to first child ( temp 4-component vector of float)
1010:17        Color: direct index for structure ( temp 4-component vector of float)
1020:17          'psout' ( temp structure{ temp 4-component vector of float Color})
1030:17          Constant:
1040:17            0 (const int)
1050:17        Constant:
1060:17          1.000000
1070:17          1.000000
1080:17          1.000000
1090:17          1.000000
1100:18      Branch: Return with expression
1110:18        'psout' ( temp structure{ temp 4-component vector of float Color})
1120:12  Function Definition: main( ( temp void)
1130:12    Function Parameters:
1140:?     Sequence
1150:12      Sequence
1160:12        move second child to first child ( temp 4-component vector of float)
1170:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
1180:12          Color: direct index for structure ( temp 4-component vector of float)
1190:12            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
1200:12            Constant:
1210:12              0 (const int)
1220:?   Linker Objects
1230:?     'anon@0' (layout( row_major std140) uniform block{ uniform int ival,  uniform 4-component vector of int ival4,  uniform float fval,  uniform 4-component vector of float fval4})
1240:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
125
126// Module Version 10000
127// Generated by (magic number): 8000a
128// Id's are bound by 56
129
130                              Capability Shader
131               1:             ExtInstImport  "GLSL.std.450"
132                              MemoryModel Logical GLSL450
133                              EntryPoint Fragment 4  "main" 53
134                              ExecutionMode 4 OriginUpperLeft
135                              Source HLSL 500
136                              Name 4  "main"
137                              Name 8  "PS_OUTPUT"
138                              MemberName 8(PS_OUTPUT) 0  "Color"
139                              Name 10  "@main("
140                              Name 14  "$Global"
141                              MemberName 14($Global) 0  "ival"
142                              MemberName 14($Global) 1  "ival4"
143                              MemberName 14($Global) 2  "fval"
144                              MemberName 14($Global) 3  "fval4"
145                              Name 16  ""
146                              Name 44  "psout"
147                              Name 53  "@entryPointOutput.Color"
148                              MemberDecorate 14($Global) 0 Offset 0
149                              MemberDecorate 14($Global) 1 Offset 16
150                              MemberDecorate 14($Global) 2 Offset 32
151                              MemberDecorate 14($Global) 3 Offset 48
152                              Decorate 14($Global) Block
153                              Decorate 16 DescriptorSet 0
154                              Decorate 16 Binding 0
155                              Decorate 53(@entryPointOutput.Color) Location 0
156               2:             TypeVoid
157               3:             TypeFunction 2
158               6:             TypeFloat 32
159               7:             TypeVector 6(float) 4
160    8(PS_OUTPUT):             TypeStruct 7(fvec4)
161               9:             TypeFunction 8(PS_OUTPUT)
162              12:             TypeInt 32 1
163              13:             TypeVector 12(int) 4
164     14($Global):             TypeStruct 12(int) 13(ivec4) 6(float) 7(fvec4)
165              15:             TypePointer Uniform 14($Global)
166              16:     15(ptr) Variable Uniform
167              17:     12(int) Constant 0
168              18:             TypePointer Uniform 12(int)
169              21:             TypeBool
170              22:             TypeInt 32 0
171              23:     22(int) Constant 0
172              25:     12(int) Constant 2
173              26:             TypePointer Uniform 6(float)
174              29:    6(float) Constant 0
175              43:             TypePointer Function 8(PS_OUTPUT)
176              45:    6(float) Constant 1065353216
177              46:    7(fvec4) ConstantComposite 45 45 45 45
178              47:             TypePointer Function 7(fvec4)
179              52:             TypePointer Output 7(fvec4)
18053(@entryPointOutput.Color):     52(ptr) Variable Output
181         4(main):           2 Function None 3
182               5:             Label
183              54:8(PS_OUTPUT) FunctionCall 10(@main()
184              55:    7(fvec4) CompositeExtract 54 0
185                              Store 53(@entryPointOutput.Color) 55
186                              Return
187                              FunctionEnd
188      10(@main():8(PS_OUTPUT) Function None 9
189              11:             Label
190       44(psout):     43(ptr) Variable Function
191              19:     18(ptr) AccessChain 16 17
192              20:     12(int) Load 19
193              24:    21(bool) INotEqual 20 23
194              27:     26(ptr) AccessChain 16 25
195              28:    6(float) Load 27
196              30:    21(bool) FUnordNotEqual 28 29
197              31:    21(bool) LogicalAnd 24 30
198                              SelectionMerge 33 None
199                              BranchConditional 31 32 33
200              32:               Label
201                                Branch 33
202              33:             Label
203              34:     18(ptr) AccessChain 16 17
204              35:     12(int) Load 34
205              36:    21(bool) INotEqual 35 23
206              37:     26(ptr) AccessChain 16 25
207              38:    6(float) Load 37
208              39:    21(bool) FUnordNotEqual 38 29
209              40:    21(bool) LogicalOr 36 39
210                              SelectionMerge 42 None
211                              BranchConditional 40 41 42
212              41:               Label
213                                Branch 42
214              42:             Label
215              48:     47(ptr) AccessChain 44(psout) 17
216                              Store 48 46
217              49:8(PS_OUTPUT) Load 44(psout)
218                              ReturnValue 49
219                              FunctionEnd
220