1hlsl.intrinsics.d3dcolortoubyte4.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:5  Function Definition: @main( ( temp 4-component vector of int)
60:5    Function Parameters:
70:?     Sequence
80:6      Branch: Return with expression
90:6        Convert float to int ( temp 4-component vector of int)
100:6          vector-scale ( temp 4-component vector of float)
110:6            Constant:
120:6              255.001953
130:6            vector swizzle ( temp 4-component vector of float)
140:6              col4: direct index for structure ( uniform 4-component vector of float)
150:6                'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
160:6                Constant:
170:6                  0 (const uint)
180:6              Sequence
190:6                Constant:
200:6                  2 (const int)
210:6                Constant:
220:6                  1 (const int)
230:6                Constant:
240:6                  0 (const int)
250:6                Constant:
260:6                  3 (const int)
270:5  Function Definition: main( ( temp void)
280:5    Function Parameters:
290:?     Sequence
300:5      move second child to first child ( temp 4-component vector of int)
310:?         '@entryPointOutput' (layout( location=0) out 4-component vector of int)
320:5        Function Call: @main( ( temp 4-component vector of int)
330:?   Linker Objects
340:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
350:?     '@entryPointOutput' (layout( location=0) out 4-component vector of int)
36
37
38Linked fragment stage:
39
40
41Shader version: 500
42gl_FragCoord origin is upper left
430:? Sequence
440:5  Function Definition: @main( ( temp 4-component vector of int)
450:5    Function Parameters:
460:?     Sequence
470:6      Branch: Return with expression
480:6        Convert float to int ( temp 4-component vector of int)
490:6          vector-scale ( temp 4-component vector of float)
500:6            Constant:
510:6              255.001953
520:6            vector swizzle ( temp 4-component vector of float)
530:6              col4: direct index for structure ( uniform 4-component vector of float)
540:6                'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
550:6                Constant:
560:6                  0 (const uint)
570:6              Sequence
580:6                Constant:
590:6                  2 (const int)
600:6                Constant:
610:6                  1 (const int)
620:6                Constant:
630:6                  0 (const int)
640:6                Constant:
650:6                  3 (const int)
660:5  Function Definition: main( ( temp void)
670:5    Function Parameters:
680:?     Sequence
690:5      move second child to first child ( temp 4-component vector of int)
700:?         '@entryPointOutput' (layout( location=0) out 4-component vector of int)
710:5        Function Call: @main( ( temp 4-component vector of int)
720:?   Linker Objects
730:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4})
740:?     '@entryPointOutput' (layout( location=0) out 4-component vector of int)
75
76// Module Version 10000
77// Generated by (magic number): 80007
78// Id's are bound by 29
79
80                              Capability Shader
81               1:             ExtInstImport  "GLSL.std.450"
82                              MemoryModel Logical GLSL450
83                              EntryPoint Fragment 4  "main" 27
84                              ExecutionMode 4 OriginUpperLeft
85                              Source HLSL 500
86                              Name 4  "main"
87                              Name 9  "@main("
88                              Name 14  "$Global"
89                              MemberName 14($Global) 0  "col4"
90                              Name 16  ""
91                              Name 27  "@entryPointOutput"
92                              MemberDecorate 14($Global) 0 Offset 0
93                              Decorate 14($Global) Block
94                              Decorate 16 DescriptorSet 0
95                              Decorate 27(@entryPointOutput) Location 0
96               2:             TypeVoid
97               3:             TypeFunction 2
98               6:             TypeInt 32 1
99               7:             TypeVector 6(int) 4
100               8:             TypeFunction 7(ivec4)
101              11:             TypeFloat 32
102              12:   11(float) Constant 1132396672
103              13:             TypeVector 11(float) 4
104     14($Global):             TypeStruct 13(fvec4)
105              15:             TypePointer Uniform 14($Global)
106              16:     15(ptr) Variable Uniform
107              17:      6(int) Constant 0
108              18:             TypePointer Uniform 13(fvec4)
109              26:             TypePointer Output 7(ivec4)
11027(@entryPointOutput):     26(ptr) Variable Output
111         4(main):           2 Function None 3
112               5:             Label
113              28:    7(ivec4) FunctionCall 9(@main()
114                              Store 27(@entryPointOutput) 28
115                              Return
116                              FunctionEnd
117       9(@main():    7(ivec4) Function None 8
118              10:             Label
119              19:     18(ptr) AccessChain 16 17
120              20:   13(fvec4) Load 19
121              21:   13(fvec4) VectorShuffle 20 20 2 1 0 3
122              22:   13(fvec4) VectorTimesScalar 21 12
123              23:    7(ivec4) ConvertFToS 22
124                              ReturnValue 23
125                              FunctionEnd
126