aboutsummaryrefslogtreecommitdiff
path: root/Test/baseResults/hlsl.rw.register.frag.out
blob: 558bf424bc3d1be279001100e0b727beb66c67ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
hlsl.rw.register.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
0:11    Function Parameters: 
0:?     Sequence
0:12      Sequence
0:12        move second child to first child ( temp float)
0:12          'r00' ( temp float)
0:12          imageLoad ( temp float)
0:12            'g_tTex1df1' (layout( binding=2 r32f) uniform image1D)
0:12            Constant:
0:12              0 (const int)
0:13      Sequence
0:13        move second child to first child ( temp uint)
0:13          'r01' ( temp uint)
0:13          imageLoad ( temp uint)
0:13            'g_tBuf1du1' (layout( binding=3 r32ui) uniform uimageBuffer)
0:13            Constant:
0:13              0 (const int)
0:16      move second child to first child ( temp 4-component vector of float)
0:16        Color: direct index for structure ( temp 4-component vector of float)
0:16          'psout' ( temp structure{ temp 4-component vector of float Color})
0:16          Constant:
0:16            0 (const int)
0:16        Constant:
0:16          1.000000
0:16          1.000000
0:16          1.000000
0:16          1.000000
0:17      Branch: Return with expression
0:17        'psout' ( temp structure{ temp 4-component vector of float Color})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:11          Color: direct index for structure ( temp 4-component vector of float)
0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
0:11            Constant:
0:11              0 (const int)
0:?   Linker Objects
0:?     'g_tTex1df1' (layout( binding=2 r32f) uniform image1D)
0:?     'g_tBuf1du1' (layout( binding=3 r32ui) uniform uimageBuffer)
0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)


Linked fragment stage:


Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:11  Function Definition: @main( ( temp structure{ temp 4-component vector of float Color})
0:11    Function Parameters: 
0:?     Sequence
0:12      Sequence
0:12        move second child to first child ( temp float)
0:12          'r00' ( temp float)
0:12          imageLoad ( temp float)
0:12            'g_tTex1df1' (layout( binding=2 r32f) uniform image1D)
0:12            Constant:
0:12              0 (const int)
0:13      Sequence
0:13        move second child to first child ( temp uint)
0:13          'r01' ( temp uint)
0:13          imageLoad ( temp uint)
0:13            'g_tBuf1du1' (layout( binding=3 r32ui) uniform uimageBuffer)
0:13            Constant:
0:13              0 (const int)
0:16      move second child to first child ( temp 4-component vector of float)
0:16        Color: direct index for structure ( temp 4-component vector of float)
0:16          'psout' ( temp structure{ temp 4-component vector of float Color})
0:16          Constant:
0:16            0 (const int)
0:16        Constant:
0:16          1.000000
0:16          1.000000
0:16          1.000000
0:16          1.000000
0:17      Branch: Return with expression
0:17        'psout' ( temp structure{ temp 4-component vector of float Color})
0:11  Function Definition: main( ( temp void)
0:11    Function Parameters: 
0:?     Sequence
0:11      Sequence
0:11        move second child to first child ( temp 4-component vector of float)
0:?           '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
0:11          Color: direct index for structure ( temp 4-component vector of float)
0:11            Function Call: @main( ( temp structure{ temp 4-component vector of float Color})
0:11            Constant:
0:11              0 (const int)
0:?   Linker Objects
0:?     'g_tTex1df1' (layout( binding=2 r32f) uniform image1D)
0:?     'g_tBuf1du1' (layout( binding=3 r32ui) uniform uimageBuffer)
0:?     '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)

// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 45

                              Capability Shader
                              Capability Image1D
                              Capability ImageBuffer
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 42
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 8  "PS_OUTPUT"
                              MemberName 8(PS_OUTPUT) 0  "Color"
                              Name 10  "@main("
                              Name 13  "r00"
                              Name 16  "g_tTex1df1"
                              Name 24  "r01"
                              Name 27  "g_tBuf1du1"
                              Name 33  "psout"
                              Name 42  "@entryPointOutput.Color"
                              Decorate 16(g_tTex1df1) DescriptorSet 0
                              Decorate 16(g_tTex1df1) Binding 2
                              Decorate 27(g_tBuf1du1) DescriptorSet 0
                              Decorate 27(g_tBuf1du1) Binding 3
                              Decorate 42(@entryPointOutput.Color) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeVector 6(float) 4
    8(PS_OUTPUT):             TypeStruct 7(fvec4)
               9:             TypeFunction 8(PS_OUTPUT)
              12:             TypePointer Function 6(float)
              14:             TypeImage 6(float) 1D nonsampled format:R32f
              15:             TypePointer UniformConstant 14
  16(g_tTex1df1):     15(ptr) Variable UniformConstant
              18:             TypeInt 32 1
              19:     18(int) Constant 0
              22:             TypeInt 32 0
              23:             TypePointer Function 22(int)
              25:             TypeImage 22(int) Buffer nonsampled format:R32ui
              26:             TypePointer UniformConstant 25
  27(g_tBuf1du1):     26(ptr) Variable UniformConstant
              29:             TypeVector 22(int) 4
              32:             TypePointer Function 8(PS_OUTPUT)
              34:    6(float) Constant 1065353216
              35:    7(fvec4) ConstantComposite 34 34 34 34
              36:             TypePointer Function 7(fvec4)
              41:             TypePointer Output 7(fvec4)
42(@entryPointOutput.Color):     41(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
              43:8(PS_OUTPUT) FunctionCall 10(@main()
              44:    7(fvec4) CompositeExtract 43 0
                              Store 42(@entryPointOutput.Color) 44
                              Return
                              FunctionEnd
      10(@main():8(PS_OUTPUT) Function None 9
              11:             Label
         13(r00):     12(ptr) Variable Function
         24(r01):     23(ptr) Variable Function
       33(psout):     32(ptr) Variable Function
              17:          14 Load 16(g_tTex1df1)
              20:    7(fvec4) ImageRead 17 19
              21:    6(float) CompositeExtract 20 0
                              Store 13(r00) 21
              28:          25 Load 27(g_tBuf1du1)
              30:   29(ivec4) ImageRead 28 19
              31:     22(int) CompositeExtract 30 0
                              Store 24(r01) 31
              37:     36(ptr) AccessChain 33(psout) 19
                              Store 37 35
              38:8(PS_OUTPUT) Load 33(psout)
                              ReturnValue 38
                              FunctionEnd