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:
@@ -336,7 +336,7 @@ gl_FragCoord origin is upper left
|
||||
0:113 1.000000
|
||||
0:115 Sequence
|
||||
0:115 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:115 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:115 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -705,7 +705,7 @@ gl_FragCoord origin is upper left
|
||||
0:113 1.000000
|
||||
0:115 Sequence
|
||||
0:115 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:115 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:115 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -735,14 +735,14 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 313
|
||||
// Id's are bound by 314
|
||||
|
||||
Capability Shader
|
||||
Capability ImageGatherExtended
|
||||
Capability Sampled1D
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 267
|
||||
EntryPoint Fragment 4 "main" 268
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval001"
|
||||
@@ -779,43 +779,48 @@ gl_FragCoord origin is upper left
|
||||
MemberName 258(PS_OUTPUT) 0 "Color"
|
||||
MemberName 258(PS_OUTPUT) 1 "Depth"
|
||||
Name 260 "psout"
|
||||
Name 267 "@entryPointOutput"
|
||||
Name 270 "g_sSamp2d"
|
||||
Name 273 "g_tTex1df4a"
|
||||
Name 274 "g_tTex1df4"
|
||||
Name 277 "g_tTex1di4"
|
||||
Name 280 "g_tTex1du4"
|
||||
Name 283 "g_tTex3df4"
|
||||
Name 286 "g_tTex3di4"
|
||||
Name 289 "g_tTex3du4"
|
||||
Name 292 "g_tTexcdf4"
|
||||
Name 295 "g_tTexcdi4"
|
||||
Name 298 "g_tTexcdu4"
|
||||
Name 300 "c1"
|
||||
Name 303 "c3"
|
||||
Name 305 "c4"
|
||||
Name 307 "o1"
|
||||
Name 310 "o3"
|
||||
Name 312 "o4"
|
||||
Name 266 "PS_OUTPUT"
|
||||
MemberName 266(PS_OUTPUT) 0 "Color"
|
||||
MemberName 266(PS_OUTPUT) 1 "Depth"
|
||||
Name 268 "@entryPointOutput"
|
||||
Name 271 "g_sSamp2d"
|
||||
Name 274 "g_tTex1df4a"
|
||||
Name 275 "g_tTex1df4"
|
||||
Name 278 "g_tTex1di4"
|
||||
Name 281 "g_tTex1du4"
|
||||
Name 284 "g_tTex3df4"
|
||||
Name 287 "g_tTex3di4"
|
||||
Name 290 "g_tTex3du4"
|
||||
Name 293 "g_tTexcdf4"
|
||||
Name 296 "g_tTexcdi4"
|
||||
Name 299 "g_tTexcdu4"
|
||||
Name 301 "c1"
|
||||
Name 304 "c3"
|
||||
Name 306 "c4"
|
||||
Name 308 "o1"
|
||||
Name 311 "o3"
|
||||
Name 313 "o4"
|
||||
Decorate 12(g_tTex2df4) DescriptorSet 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
Decorate 16(g_sSamp) Binding 0
|
||||
Decorate 36(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 50(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 258(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 270(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 273(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 273(g_tTex1df4a) Binding 1
|
||||
Decorate 274(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 274(g_tTex1df4) Binding 0
|
||||
Decorate 277(g_tTex1di4) DescriptorSet 0
|
||||
Decorate 280(g_tTex1du4) DescriptorSet 0
|
||||
Decorate 283(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 286(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 289(g_tTex3du4) DescriptorSet 0
|
||||
Decorate 292(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 295(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 298(g_tTexcdu4) DescriptorSet 0
|
||||
MemberDecorate 266(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 268(@entryPointOutput) Location 0
|
||||
Decorate 271(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 274(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 274(g_tTex1df4a) Binding 1
|
||||
Decorate 275(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 275(g_tTex1df4) Binding 0
|
||||
Decorate 278(g_tTex1di4) DescriptorSet 0
|
||||
Decorate 281(g_tTex1du4) DescriptorSet 0
|
||||
Decorate 284(g_tTex3df4) DescriptorSet 0
|
||||
Decorate 287(g_tTex3di4) DescriptorSet 0
|
||||
Decorate 290(g_tTex3du4) DescriptorSet 0
|
||||
Decorate 293(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 296(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 299(g_tTexcdu4) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -859,51 +864,52 @@ gl_FragCoord origin is upper left
|
||||
261: 6(float) Constant 1065353216
|
||||
262: 7(fvec4) ConstantComposite 261 261 261 261
|
||||
264: TypePointer Function 6(float)
|
||||
266: TypePointer Output 258(PS_OUTPUT)
|
||||
267(@entryPointOutput): 266(ptr) Variable Output
|
||||
270(g_sSamp2d): 15(ptr) Variable UniformConstant
|
||||
271: TypeImage 6(float) 1D sampled format:Unknown
|
||||
272: TypePointer UniformConstant 271
|
||||
273(g_tTex1df4a): 272(ptr) Variable UniformConstant
|
||||
274(g_tTex1df4): 272(ptr) Variable UniformConstant
|
||||
275: TypeImage 24(int) 1D sampled format:Unknown
|
||||
276: TypePointer UniformConstant 275
|
||||
277(g_tTex1di4): 276(ptr) Variable UniformConstant
|
||||
278: TypeImage 44(int) 1D sampled format:Unknown
|
||||
279: TypePointer UniformConstant 278
|
||||
280(g_tTex1du4): 279(ptr) Variable UniformConstant
|
||||
281: TypeImage 6(float) 3D sampled format:Unknown
|
||||
282: TypePointer UniformConstant 281
|
||||
283(g_tTex3df4): 282(ptr) Variable UniformConstant
|
||||
284: TypeImage 24(int) 3D sampled format:Unknown
|
||||
285: TypePointer UniformConstant 284
|
||||
286(g_tTex3di4): 285(ptr) Variable UniformConstant
|
||||
287: TypeImage 44(int) 3D sampled format:Unknown
|
||||
288: TypePointer UniformConstant 287
|
||||
289(g_tTex3du4): 288(ptr) Variable UniformConstant
|
||||
290: TypeImage 6(float) Cube sampled format:Unknown
|
||||
291: TypePointer UniformConstant 290
|
||||
292(g_tTexcdf4): 291(ptr) Variable UniformConstant
|
||||
293: TypeImage 24(int) Cube sampled format:Unknown
|
||||
294: TypePointer UniformConstant 293
|
||||
295(g_tTexcdi4): 294(ptr) Variable UniformConstant
|
||||
296: TypeImage 44(int) Cube sampled format:Unknown
|
||||
297: TypePointer UniformConstant 296
|
||||
298(g_tTexcdu4): 297(ptr) Variable UniformConstant
|
||||
299: TypePointer UniformConstant 6(float)
|
||||
300(c1): 299(ptr) Variable UniformConstant
|
||||
301: TypeVector 6(float) 3
|
||||
302: TypePointer UniformConstant 301(fvec3)
|
||||
303(c3): 302(ptr) Variable UniformConstant
|
||||
304: TypePointer UniformConstant 7(fvec4)
|
||||
305(c4): 304(ptr) Variable UniformConstant
|
||||
306: TypePointer UniformConstant 24(int)
|
||||
307(o1): 306(ptr) Variable UniformConstant
|
||||
308: TypeVector 24(int) 3
|
||||
309: TypePointer UniformConstant 308(ivec3)
|
||||
310(o3): 309(ptr) Variable UniformConstant
|
||||
311: TypePointer UniformConstant 31(ivec4)
|
||||
312(o4): 311(ptr) Variable UniformConstant
|
||||
266(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
267: TypePointer Output 266(PS_OUTPUT)
|
||||
268(@entryPointOutput): 267(ptr) Variable Output
|
||||
271(g_sSamp2d): 15(ptr) Variable UniformConstant
|
||||
272: TypeImage 6(float) 1D sampled format:Unknown
|
||||
273: TypePointer UniformConstant 272
|
||||
274(g_tTex1df4a): 273(ptr) Variable UniformConstant
|
||||
275(g_tTex1df4): 273(ptr) Variable UniformConstant
|
||||
276: TypeImage 24(int) 1D sampled format:Unknown
|
||||
277: TypePointer UniformConstant 276
|
||||
278(g_tTex1di4): 277(ptr) Variable UniformConstant
|
||||
279: TypeImage 44(int) 1D sampled format:Unknown
|
||||
280: TypePointer UniformConstant 279
|
||||
281(g_tTex1du4): 280(ptr) Variable UniformConstant
|
||||
282: TypeImage 6(float) 3D sampled format:Unknown
|
||||
283: TypePointer UniformConstant 282
|
||||
284(g_tTex3df4): 283(ptr) Variable UniformConstant
|
||||
285: TypeImage 24(int) 3D sampled format:Unknown
|
||||
286: TypePointer UniformConstant 285
|
||||
287(g_tTex3di4): 286(ptr) Variable UniformConstant
|
||||
288: TypeImage 44(int) 3D sampled format:Unknown
|
||||
289: TypePointer UniformConstant 288
|
||||
290(g_tTex3du4): 289(ptr) Variable UniformConstant
|
||||
291: TypeImage 6(float) Cube sampled format:Unknown
|
||||
292: TypePointer UniformConstant 291
|
||||
293(g_tTexcdf4): 292(ptr) Variable UniformConstant
|
||||
294: TypeImage 24(int) Cube sampled format:Unknown
|
||||
295: TypePointer UniformConstant 294
|
||||
296(g_tTexcdi4): 295(ptr) Variable UniformConstant
|
||||
297: TypeImage 44(int) Cube sampled format:Unknown
|
||||
298: TypePointer UniformConstant 297
|
||||
299(g_tTexcdu4): 298(ptr) Variable UniformConstant
|
||||
300: TypePointer UniformConstant 6(float)
|
||||
301(c1): 300(ptr) Variable UniformConstant
|
||||
302: TypeVector 6(float) 3
|
||||
303: TypePointer UniformConstant 302(fvec3)
|
||||
304(c3): 303(ptr) Variable UniformConstant
|
||||
305: TypePointer UniformConstant 7(fvec4)
|
||||
306(c4): 305(ptr) Variable UniformConstant
|
||||
307: TypePointer UniformConstant 24(int)
|
||||
308(o1): 307(ptr) Variable UniformConstant
|
||||
309: TypeVector 24(int) 3
|
||||
310: TypePointer UniformConstant 309(ivec3)
|
||||
311(o3): 310(ptr) Variable UniformConstant
|
||||
312: TypePointer UniformConstant 31(ivec4)
|
||||
313(o4): 312(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval001): 8(ptr) Variable Function
|
||||
@@ -1151,7 +1157,7 @@ gl_FragCoord origin is upper left
|
||||
Store 263 262
|
||||
265: 264(ptr) AccessChain 260(psout) 99
|
||||
Store 265 261
|
||||
268:258(PS_OUTPUT) Load 260(psout)
|
||||
Store 267(@entryPointOutput) 268
|
||||
269:258(PS_OUTPUT) Load 260(psout)
|
||||
Store 268(@entryPointOutput) 269
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user