HLSL: Start location numbering with the entry-point return value.

Also, increment location numbers by the size of the objects.
This commit is contained in:
John Kessenich
2016-08-29 18:10:47 -06:00
parent a05d8b5604
commit 830b0cc98b
89 changed files with 2517 additions and 2157 deletions

View File

@@ -264,7 +264,7 @@ gl_FragCoord origin is upper left
0:74 1.000000
0:76 Sequence
0:76 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:76 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:76 Branch: Return
0:? Linker Objects
@@ -557,7 +557,7 @@ gl_FragCoord origin is upper left
0:74 1.000000
0:76 Sequence
0:76 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:76 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:76 Branch: Return
0:? Linker Objects
@@ -583,13 +583,13 @@ gl_FragCoord origin is upper left
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 232
// Id's are bound by 233
Capability Shader
Capability Sampled1D
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 205
EntryPoint Fragment 4 "main" 206
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 9 "txval00"
@@ -629,17 +629,20 @@ gl_FragCoord origin is upper left
MemberName 196(PS_OUTPUT) 0 "Color"
MemberName 196(PS_OUTPUT) 1 "Depth"
Name 198 "psout"
Name 205 "@entryPointOutput"
Name 208 "g_sSamp2d"
Name 211 "g_tTex1df4a"
Name 212 "g_tTex1df4"
Name 215 "g_tTex1di4"
Name 218 "g_tTex1du4"
Name 221 "g_tTex3df4"
Name 224 "g_tTex3di4"
Name 227 "g_tTex3du4"
Name 229 "c1"
Name 231 "c4"
Name 204 "PS_OUTPUT"
MemberName 204(PS_OUTPUT) 0 "Color"
MemberName 204(PS_OUTPUT) 1 "Depth"
Name 206 "@entryPointOutput"
Name 209 "g_sSamp2d"
Name 212 "g_tTex1df4a"
Name 213 "g_tTex1df4"
Name 216 "g_tTex1di4"
Name 219 "g_tTex1du4"
Name 222 "g_tTex3df4"
Name 225 "g_tTex3di4"
Name 228 "g_tTex3du4"
Name 230 "c1"
Name 232 "c4"
Decorate 12(g_tTex2df4) DescriptorSet 0
Decorate 16(g_sSamp) DescriptorSet 0
Decorate 16(g_sSamp) Binding 0
@@ -649,16 +652,18 @@ gl_FragCoord origin is upper left
Decorate 125(g_tTexcdi4) DescriptorSet 0
Decorate 135(g_tTexcdu4) DescriptorSet 0
MemberDecorate 196(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 208(g_sSamp2d) DescriptorSet 0
Decorate 211(g_tTex1df4a) DescriptorSet 0
Decorate 211(g_tTex1df4a) Binding 1
Decorate 212(g_tTex1df4) DescriptorSet 0
Decorate 212(g_tTex1df4) Binding 0
Decorate 215(g_tTex1di4) DescriptorSet 0
Decorate 218(g_tTex1du4) DescriptorSet 0
Decorate 221(g_tTex3df4) DescriptorSet 0
Decorate 224(g_tTex3di4) DescriptorSet 0
Decorate 227(g_tTex3du4) DescriptorSet 0
MemberDecorate 204(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 206(@entryPointOutput) Location 0
Decorate 209(g_sSamp2d) DescriptorSet 0
Decorate 212(g_tTex1df4a) DescriptorSet 0
Decorate 212(g_tTex1df4a) Binding 1
Decorate 213(g_tTex1df4) DescriptorSet 0
Decorate 213(g_tTex1df4) Binding 0
Decorate 216(g_tTex1di4) DescriptorSet 0
Decorate 219(g_tTex1du4) DescriptorSet 0
Decorate 222(g_tTex3df4) DescriptorSet 0
Decorate 225(g_tTex3di4) DescriptorSet 0
Decorate 228(g_tTex3du4) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -712,32 +717,33 @@ gl_FragCoord origin is upper left
199: 6(float) Constant 1065353216
200: 7(fvec4) ConstantComposite 199 199 199 199
202: TypePointer Function 6(float)
204: TypePointer Output 196(PS_OUTPUT)
205(@entryPointOutput): 204(ptr) Variable Output
208(g_sSamp2d): 15(ptr) Variable UniformConstant
209: TypeImage 6(float) 1D sampled format:Unknown
210: TypePointer UniformConstant 209
211(g_tTex1df4a): 210(ptr) Variable UniformConstant
212(g_tTex1df4): 210(ptr) Variable UniformConstant
213: TypeImage 24(int) 1D sampled format:Unknown
214: TypePointer UniformConstant 213
215(g_tTex1di4): 214(ptr) Variable UniformConstant
216: TypeImage 39(int) 1D sampled format:Unknown
217: TypePointer UniformConstant 216
218(g_tTex1du4): 217(ptr) Variable UniformConstant
219: TypeImage 6(float) 3D sampled format:Unknown
220: TypePointer UniformConstant 219
221(g_tTex3df4): 220(ptr) Variable UniformConstant
222: TypeImage 24(int) 3D sampled format:Unknown
223: TypePointer UniformConstant 222
224(g_tTex3di4): 223(ptr) Variable UniformConstant
225: TypeImage 39(int) 3D sampled format:Unknown
226: TypePointer UniformConstant 225
227(g_tTex3du4): 226(ptr) Variable UniformConstant
228: TypePointer UniformConstant 6(float)
229(c1): 228(ptr) Variable UniformConstant
230: TypePointer UniformConstant 7(fvec4)
231(c4): 230(ptr) Variable UniformConstant
204(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
205: TypePointer Output 204(PS_OUTPUT)
206(@entryPointOutput): 205(ptr) Variable Output
209(g_sSamp2d): 15(ptr) Variable UniformConstant
210: TypeImage 6(float) 1D sampled format:Unknown
211: TypePointer UniformConstant 210
212(g_tTex1df4a): 211(ptr) Variable UniformConstant
213(g_tTex1df4): 211(ptr) Variable UniformConstant
214: TypeImage 24(int) 1D sampled format:Unknown
215: TypePointer UniformConstant 214
216(g_tTex1di4): 215(ptr) Variable UniformConstant
217: TypeImage 39(int) 1D sampled format:Unknown
218: TypePointer UniformConstant 217
219(g_tTex1du4): 218(ptr) Variable UniformConstant
220: TypeImage 6(float) 3D sampled format:Unknown
221: TypePointer UniformConstant 220
222(g_tTex3df4): 221(ptr) Variable UniformConstant
223: TypeImage 24(int) 3D sampled format:Unknown
224: TypePointer UniformConstant 223
225(g_tTex3di4): 224(ptr) Variable UniformConstant
226: TypeImage 39(int) 3D sampled format:Unknown
227: TypePointer UniformConstant 226
228(g_tTex3du4): 227(ptr) Variable UniformConstant
229: TypePointer UniformConstant 6(float)
230(c1): 229(ptr) Variable UniformConstant
231: TypePointer UniformConstant 7(fvec4)
232(c4): 231(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
9(txval00): 8(ptr) Variable Function
@@ -913,7 +919,7 @@ gl_FragCoord origin is upper left
Store 201 200
203: 202(ptr) AccessChain 198(psout) 57
Store 203 199
206:196(PS_OUTPUT) Load 198(psout)
Store 205(@entryPointOutput) 206
207:196(PS_OUTPUT) Load 198(psout)
Store 206(@entryPointOutput) 207
Return
FunctionEnd