• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.stringtoken.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:16  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
60:16    Function Parameters:
70:?     Sequence
80:18      move second child to first child ( temp 4-component vector of float)
90:18        Color: direct index for structure ( temp 4-component vector of float)
100:18          'psout' ( temp structure{ temp 4-component vector of float Color})
110:18          Constant:
120:18            0 (const int)
130:18        Constant:
140:18          0.000000
150:18          0.000000
160:18          0.000000
170:18          1.000000
180:19      Branch: Return with expression
190:19        'psout' ( temp structure{ temp 4-component vector of float Color})
200:16  Function Definition: main( ( temp void)
210:16    Function Parameters:
220:?     Sequence
230:16      Sequence
240:16        move second child to first child ( temp 4-component vector of float)
250:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
260:16          Color: direct index for structure ( temp 4-component vector of float)
270:16            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
280:16            Constant:
290:16              0 (const int)
300:?   Linker Objects
310:?     'TestTexture' ( uniform texture2D)
320:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float TestUF})
330:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
34
35
36Linked fragment stage:
37
38
39Shader version: 500
40gl_FragCoord origin is upper left
410:? Sequence
420:16  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
430:16    Function Parameters:
440:?     Sequence
450:18      move second child to first child ( temp 4-component vector of float)
460:18        Color: direct index for structure ( temp 4-component vector of float)
470:18          'psout' ( temp structure{ temp 4-component vector of float Color})
480:18          Constant:
490:18            0 (const int)
500:18        Constant:
510:18          0.000000
520:18          0.000000
530:18          0.000000
540:18          1.000000
550:19      Branch: Return with expression
560:19        'psout' ( temp structure{ temp 4-component vector of float Color})
570:16  Function Definition: main( ( temp void)
580:16    Function Parameters:
590:?     Sequence
600:16      Sequence
610:16        move second child to first child ( temp 4-component vector of float)
620:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
630:16          Color: direct index for structure ( temp 4-component vector of float)
640:16            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
650:16            Constant:
660:16              0 (const int)
670:?   Linker Objects
680:?     'TestTexture' ( uniform texture2D)
690:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float TestUF})
700:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
71
72// Module Version 10000
73// Generated by (magic number): 8000b
74// Id's are bound by 34
75
76                              Capability Shader
77               1:             ExtInstImport  "GLSL.std.450"
78                              MemoryModel Logical GLSL450
79                              EntryPoint Fragment 4  "main" 25
80                              ExecutionMode 4 OriginUpperLeft
81                              Source HLSL 500
82                              Name 4  "main"
83                              Name 8  "PS_OUTPUT"
84                              MemberName 8(PS_OUTPUT) 0  "Color"
85                              Name 10  "@main("
86                              Name 13  "psout"
87                              Name 25  "@entryPointOutput.Color"
88                              Name 30  "TestTexture"
89                              Name 31  "$Global"
90                              MemberName 31($Global) 0  "TestUF"
91                              Name 33  ""
92                              Decorate 25(@entryPointOutput.Color) Location 0
93                              Decorate 30(TestTexture) DescriptorSet 0
94                              Decorate 30(TestTexture) Binding 0
95                              MemberDecorate 31($Global) 0 Offset 0
96                              Decorate 31($Global) Block
97                              Decorate 33 DescriptorSet 0
98                              Decorate 33 Binding 0
99               2:             TypeVoid
100               3:             TypeFunction 2
101               6:             TypeFloat 32
102               7:             TypeVector 6(float) 4
103    8(PS_OUTPUT):             TypeStruct 7(fvec4)
104               9:             TypeFunction 8(PS_OUTPUT)
105              12:             TypePointer Function 8(PS_OUTPUT)
106              14:             TypeInt 32 1
107              15:     14(int) Constant 0
108              16:    6(float) Constant 0
109              17:    6(float) Constant 1065353216
110              18:    7(fvec4) ConstantComposite 16 16 16 17
111              19:             TypePointer Function 7(fvec4)
112              24:             TypePointer Output 7(fvec4)
11325(@entryPointOutput.Color):     24(ptr) Variable Output
114              28:             TypeImage 6(float) 2D sampled format:Unknown
115              29:             TypePointer UniformConstant 28
116 30(TestTexture):     29(ptr) Variable UniformConstant
117     31($Global):             TypeStruct 7(fvec4)
118              32:             TypePointer Uniform 31($Global)
119              33:     32(ptr) Variable Uniform
120         4(main):           2 Function None 3
121               5:             Label
122              26:8(PS_OUTPUT) FunctionCall 10(@main()
123              27:    7(fvec4) CompositeExtract 26 0
124                              Store 25(@entryPointOutput.Color) 27
125                              Return
126                              FunctionEnd
127      10(@main():8(PS_OUTPUT) Function None 9
128              11:             Label
129       13(psout):     12(ptr) Variable Function
130              20:     19(ptr) AccessChain 13(psout) 15
131                              Store 20 18
132              21:8(PS_OUTPUT) Load 13(psout)
133                              ReturnValue 21
134                              FunctionEnd
135