• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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): 8000a
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 16 Binding 0
96                              Decorate 27(@entryPointOutput) Location 0
97               2:             TypeVoid
98               3:             TypeFunction 2
99               6:             TypeInt 32 1
100               7:             TypeVector 6(int) 4
101               8:             TypeFunction 7(ivec4)
102              11:             TypeFloat 32
103              12:   11(float) Constant 1132396672
104              13:             TypeVector 11(float) 4
105     14($Global):             TypeStruct 13(fvec4)
106              15:             TypePointer Uniform 14($Global)
107              16:     15(ptr) Variable Uniform
108              17:      6(int) Constant 0
109              18:             TypePointer Uniform 13(fvec4)
110              26:             TypePointer Output 7(ivec4)
11127(@entryPointOutput):     26(ptr) Variable Output
112         4(main):           2 Function None 3
113               5:             Label
114              28:    7(ivec4) FunctionCall 9(@main()
115                              Store 27(@entryPointOutput) 28
116                              Return
117                              FunctionEnd
118       9(@main():    7(ivec4) Function None 8
119              10:             Label
120              19:     18(ptr) AccessChain 16 17
121              20:   13(fvec4) Load 19
122              21:   13(fvec4) VectorShuffle 20 20 2 1 0 3
123              22:   13(fvec4) VectorTimesScalar 21 12
124              23:    7(ivec4) ConvertFToS 22
125                              ReturnValue 23
126                              FunctionEnd
127