blob: cbcd66fe646825c03c95dfdf2a4f4d6ae366e1d3 [file] [log] [blame]
xaviereb71cdd2017-08-24 08:28:57 +02001hlsl.preprocessor.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:9 Function Definition: @main(vf4; ( temp 4-component vector of float)
60:9 Function Parameters:
70:9 'input' ( in 4-component vector of float)
80:? Sequence
90:10 Sequence
100:10 move second child to first child ( temp 4-component vector of float)
110:10 'tex' ( temp 4-component vector of float)
120:10 texture ( temp 4-component vector of float)
130:10 Construct combined texture-sampler ( temp sampler2D)
140:10 'test_texture' ( uniform texture2D)
150:10 'test_texture_ss' ( uniform sampler)
160:10 vector swizzle ( temp 2-component vector of float)
170:10 vector swizzle ( temp 2-component vector of float)
180:10 'input' ( in 4-component vector of float)
190:10 Sequence
200:10 Constant:
210:10 0 (const int)
220:10 Constant:
230:10 1 (const int)
240:10 Sequence
250:10 Constant:
260:10 0 (const int)
270:10 Constant:
280:10 1 (const int)
290:11 Branch: Return with expression
300:11 'tex' ( temp 4-component vector of float)
310:9 Function Definition: main( ( temp void)
320:9 Function Parameters:
330:? Sequence
340:9 move second child to first child ( temp 4-component vector of float)
350:? 'input' ( temp 4-component vector of float)
360:? 'input' (layout( location=0) in 4-component vector of float)
370:9 move second child to first child ( temp 4-component vector of float)
380:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
390:9 Function Call: @main(vf4; ( temp 4-component vector of float)
400:? 'input' ( temp 4-component vector of float)
410:? Linker Objects
420:? 'test_texture' ( uniform texture2D)
430:? 'test_texture_ss' ( uniform sampler)
440:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
450:? 'input' (layout( location=0) in 4-component vector of float)
46
47
48Linked fragment stage:
49
50
51Shader version: 500
52gl_FragCoord origin is upper left
530:? Sequence
540:9 Function Definition: @main(vf4; ( temp 4-component vector of float)
550:9 Function Parameters:
560:9 'input' ( in 4-component vector of float)
570:? Sequence
580:10 Sequence
590:10 move second child to first child ( temp 4-component vector of float)
600:10 'tex' ( temp 4-component vector of float)
610:10 texture ( temp 4-component vector of float)
620:10 Construct combined texture-sampler ( temp sampler2D)
630:10 'test_texture' ( uniform texture2D)
640:10 'test_texture_ss' ( uniform sampler)
650:10 vector swizzle ( temp 2-component vector of float)
660:10 vector swizzle ( temp 2-component vector of float)
670:10 'input' ( in 4-component vector of float)
680:10 Sequence
690:10 Constant:
700:10 0 (const int)
710:10 Constant:
720:10 1 (const int)
730:10 Sequence
740:10 Constant:
750:10 0 (const int)
760:10 Constant:
770:10 1 (const int)
780:11 Branch: Return with expression
790:11 'tex' ( temp 4-component vector of float)
800:9 Function Definition: main( ( temp void)
810:9 Function Parameters:
820:? Sequence
830:9 move second child to first child ( temp 4-component vector of float)
840:? 'input' ( temp 4-component vector of float)
850:? 'input' (layout( location=0) in 4-component vector of float)
860:9 move second child to first child ( temp 4-component vector of float)
870:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
880:9 Function Call: @main(vf4; ( temp 4-component vector of float)
890:? 'input' ( temp 4-component vector of float)
900:? Linker Objects
910:? 'test_texture' ( uniform texture2D)
920:? 'test_texture_ss' ( uniform sampler)
930:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
940:? 'input' (layout( location=0) in 4-component vector of float)
95
96// Module Version 10000
John Kessenich07ed11f2017-10-07 11:33:11 -060097// Generated by (magic number): 80002
xaviereb71cdd2017-08-24 08:28:57 +020098// Id's are bound by 40
99
100 Capability Shader
101 1: ExtInstImport "GLSL.std.450"
102 MemoryModel Logical GLSL450
103 EntryPoint Fragment 4 "main" 33 36
104 ExecutionMode 4 OriginUpperLeft
105 Source HLSL 500
106 Name 4 "main"
107 Name 11 "@main(vf4;"
108 Name 10 "input"
109 Name 13 "tex"
110 Name 16 "test_texture"
111 Name 20 "test_texture_ss"
112 Name 31 "input"
113 Name 33 "input"
114 Name 36 "@entryPointOutput"
115 Name 37 "param"
116 Decorate 16(test_texture) DescriptorSet 0
117 Decorate 20(test_texture_ss) DescriptorSet 0
118 Decorate 33(input) Location 0
119 Decorate 36(@entryPointOutput) Location 0
120 2: TypeVoid
121 3: TypeFunction 2
122 6: TypeFloat 32
123 7: TypeVector 6(float) 4
124 8: TypePointer Function 7(fvec4)
125 9: TypeFunction 7(fvec4) 8(ptr)
126 14: TypeImage 6(float) 2D sampled format:Unknown
127 15: TypePointer UniformConstant 14
12816(test_texture): 15(ptr) Variable UniformConstant
129 18: TypeSampler
130 19: TypePointer UniformConstant 18
13120(test_texture_ss): 19(ptr) Variable UniformConstant
132 22: TypeSampledImage 14
133 24: TypeVector 6(float) 2
134 32: TypePointer Input 7(fvec4)
135 33(input): 32(ptr) Variable Input
136 35: TypePointer Output 7(fvec4)
13736(@entryPointOutput): 35(ptr) Variable Output
138 4(main): 2 Function None 3
139 5: Label
140 31(input): 8(ptr) Variable Function
141 37(param): 8(ptr) Variable Function
142 34: 7(fvec4) Load 33(input)
143 Store 31(input) 34
144 38: 7(fvec4) Load 31(input)
145 Store 37(param) 38
146 39: 7(fvec4) FunctionCall 11(@main(vf4;) 37(param)
147 Store 36(@entryPointOutput) 39
148 Return
149 FunctionEnd
150 11(@main(vf4;): 7(fvec4) Function None 9
151 10(input): 8(ptr) FunctionParameter
152 12: Label
153 13(tex): 8(ptr) Variable Function
154 17: 14 Load 16(test_texture)
155 21: 18 Load 20(test_texture_ss)
156 23: 22 SampledImage 17 21
157 25: 7(fvec4) Load 10(input)
158 26: 24(fvec2) VectorShuffle 25 25 0 1
159 27: 7(fvec4) ImageSampleImplicitLod 23 26
160 Store 13(tex) 27
161 28: 7(fvec4) Load 13(tex)
162 ReturnValue 28
163 FunctionEnd