• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.coverage.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:15  Function Definition: @main(struct-PS_INPUT1; ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
60:15    Function Parameters:
70:15      'i' ( in structure{})
80:?     Sequence
90:17      move second child to first child ( temp 4-component vector of float)
100:17        vColor: direct index for structure ( temp 4-component vector of float)
110:17          'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
120:17          Constant:
130:17            0 (const int)
140:?         Constant:
150:?           1.000000
160:?           0.000000
170:?           0.000000
180:?           1.000000
190:18      move second child to first child ( temp uint)
200:18        nCoverageMask: direct index for structure ( temp uint)
210:18          'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
220:18          Constant:
230:18            1 (const int)
240:18        Constant:
250:18          0 (const uint)
260:19      Branch: Return with expression
270:19        'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
280:15  Function Definition: main( ( temp void)
290:15    Function Parameters:
300:?     Sequence
310:15      Sequence
320:15        move second child to first child ( temp structure{})
330:?           'i' ( temp structure{})
340:?           'i' ( in structure{})
350:15      Sequence
360:15        move second child to first child ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
370:15          'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
380:15          Function Call: @main(struct-PS_INPUT1; ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
390:?             'i' ( temp structure{})
400:15        move second child to first child ( temp 4-component vector of float)
410:?           '@entryPointOutput.vColor' (layout( location=0) out 4-component vector of float)
420:15          vColor: direct index for structure ( temp 4-component vector of float)
430:15            'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
440:15            Constant:
450:15              0 (const int)
460:15        move second child to first child ( temp uint)
470:15          direct index ( out uint SampleMaskIn)
480:?             '@entryPointOutput.nCoverageMask' ( out 1-element array of uint SampleMaskIn)
490:15            Constant:
500:15              0 (const int)
510:15          nCoverageMask: direct index for structure ( temp uint)
520:15            'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
530:15            Constant:
540:15              1 (const int)
550:?   Linker Objects
560:?     '@entryPointOutput.nCoverageMask' ( out 1-element array of uint SampleMaskIn)
570:?     '@entryPointOutput.vColor' (layout( location=0) out 4-component vector of float)
58
59
60Linked fragment stage:
61
62
63Shader version: 500
64gl_FragCoord origin is upper left
650:? Sequence
660:15  Function Definition: @main(struct-PS_INPUT1; ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
670:15    Function Parameters:
680:15      'i' ( in structure{})
690:?     Sequence
700:17      move second child to first child ( temp 4-component vector of float)
710:17        vColor: direct index for structure ( temp 4-component vector of float)
720:17          'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
730:17          Constant:
740:17            0 (const int)
750:?         Constant:
760:?           1.000000
770:?           0.000000
780:?           0.000000
790:?           1.000000
800:18      move second child to first child ( temp uint)
810:18        nCoverageMask: direct index for structure ( temp uint)
820:18          'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
830:18          Constant:
840:18            1 (const int)
850:18        Constant:
860:18          0 (const uint)
870:19      Branch: Return with expression
880:19        'o' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
890:15  Function Definition: main( ( temp void)
900:15    Function Parameters:
910:?     Sequence
920:15      Sequence
930:15        move second child to first child ( temp structure{})
940:?           'i' ( temp structure{})
950:?           'i' ( in structure{})
960:15      Sequence
970:15        move second child to first child ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
980:15          'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
990:15          Function Call: @main(struct-PS_INPUT1; ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
1000:?             'i' ( temp structure{})
1010:15        move second child to first child ( temp 4-component vector of float)
1020:?           '@entryPointOutput.vColor' (layout( location=0) out 4-component vector of float)
1030:15          vColor: direct index for structure ( temp 4-component vector of float)
1040:15            'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
1050:15            Constant:
1060:15              0 (const int)
1070:15        move second child to first child ( temp uint)
1080:15          direct index ( out uint SampleMaskIn)
1090:?             '@entryPointOutput.nCoverageMask' ( out 1-element array of uint SampleMaskIn)
1100:15            Constant:
1110:15              0 (const int)
1120:15          nCoverageMask: direct index for structure ( temp uint)
1130:15            'flattenTemp' ( temp structure{ temp 4-component vector of float vColor,  temp uint nCoverageMask})
1140:15            Constant:
1150:15              1 (const int)
1160:?   Linker Objects
1170:?     '@entryPointOutput.nCoverageMask' ( out 1-element array of uint SampleMaskIn)
1180:?     '@entryPointOutput.vColor' (layout( location=0) out 4-component vector of float)
119
120Validation failed
121// Module Version 10000
122// Generated by (magic number): 80007
123// Id's are bound by 52
124
125                              Capability Shader
126               1:             ExtInstImport  "GLSL.std.450"
127                              MemoryModel Logical GLSL450
128                              EntryPoint Fragment 4  "main" 41 47
129                              ExecutionMode 4 OriginUpperLeft
130                              Source HLSL 500
131                              Name 4  "main"
132                              Name 6  "PS_INPUT"
133                              Name 11  "PS_OUTPUT"
134                              MemberName 11(PS_OUTPUT) 0  "vColor"
135                              MemberName 11(PS_OUTPUT) 1  "nCoverageMask"
136                              Name 14  "@main(struct-PS_INPUT1;"
137                              Name 13  "i"
138                              Name 17  "o"
139                              Name 32  "i"
140                              Name 34  "i"
141                              Name 36  "flattenTemp"
142                              Name 37  "param"
143                              Name 41  "@entryPointOutput.vColor"
144                              Name 47  "@entryPointOutput.nCoverageMask"
145                              Decorate 41(@entryPointOutput.vColor) Location 0
146                              Decorate 47(@entryPointOutput.nCoverageMask) BuiltIn SampleMask
147               2:             TypeVoid
148               3:             TypeFunction 2
149     6(PS_INPUT):             TypeStruct
150               7:             TypePointer Function 6(PS_INPUT)
151               8:             TypeFloat 32
152               9:             TypeVector 8(float) 4
153              10:             TypeInt 32 0
154   11(PS_OUTPUT):             TypeStruct 9(fvec4) 10(int)
155              12:             TypeFunction 11(PS_OUTPUT) 7(ptr)
156              16:             TypePointer Function 11(PS_OUTPUT)
157              18:             TypeInt 32 1
158              19:     18(int) Constant 0
159              20:    8(float) Constant 1065353216
160              21:    8(float) Constant 0
161              22:    9(fvec4) ConstantComposite 20 21 21 20
162              23:             TypePointer Function 9(fvec4)
163              25:     18(int) Constant 1
164              26:     10(int) Constant 0
165              27:             TypePointer Function 10(int)
166              33:             TypePointer Input 6(PS_INPUT)
167           34(i):     33(ptr) Variable Input
168              40:             TypePointer Output 9(fvec4)
16941(@entryPointOutput.vColor):     40(ptr) Variable Output
170              44:     10(int) Constant 1
171              45:             TypeArray 10(int) 44
172              46:             TypePointer Output 45
17347(@entryPointOutput.nCoverageMask):     46(ptr) Variable Output
174              50:             TypePointer Output 10(int)
175         4(main):           2 Function None 3
176               5:             Label
177           32(i):      7(ptr) Variable Function
178 36(flattenTemp):     16(ptr) Variable Function
179       37(param):      7(ptr) Variable Function
180              35: 6(PS_INPUT) Load 34(i)
181                              Store 32(i) 35
182              38: 6(PS_INPUT) Load 32(i)
183                              Store 37(param) 38
184              39:11(PS_OUTPUT) FunctionCall 14(@main(struct-PS_INPUT1;) 37(param)
185                              Store 36(flattenTemp) 39
186              42:     23(ptr) AccessChain 36(flattenTemp) 19
187              43:    9(fvec4) Load 42
188                              Store 41(@entryPointOutput.vColor) 43
189              48:     27(ptr) AccessChain 36(flattenTemp) 25
190              49:     10(int) Load 48
191              51:     50(ptr) AccessChain 47(@entryPointOutput.nCoverageMask) 19
192                              Store 51 49
193                              Return
194                              FunctionEnd
19514(@main(struct-PS_INPUT1;):11(PS_OUTPUT) Function None 12
196           13(i):      7(ptr) FunctionParameter
197              15:             Label
198           17(o):     16(ptr) Variable Function
199              24:     23(ptr) AccessChain 17(o) 19
200                              Store 24 22
201              28:     27(ptr) AccessChain 17(o) 25
202                              Store 28 26
203              29:11(PS_OUTPUT) Load 17(o)
204                              ReturnValue 29
205                              FunctionEnd
206