HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -30,21 +30,21 @@ gl_FragCoord origin is upper left
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:7 Constant:
|
||||
0:7 0 (const int)
|
||||
0:? 'interp' (layout( location=0) in float)
|
||||
0:? 'input.interp' (layout( location=0) in float)
|
||||
0:7 move second child to first child ( temp uint)
|
||||
0:7 no_interp: direct index for structure ( temp uint)
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:7 Constant:
|
||||
0:7 1 (const int)
|
||||
0:? 'no_interp' (layout( location=1) flat in uint)
|
||||
0:? 'input.no_interp' (layout( location=1) flat in uint)
|
||||
0:7 move second child to first child ( temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:7 Function Call: @main(struct-PSInput-f1-u11; ( temp 4-component vector of float)
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'interp' (layout( location=0) in float)
|
||||
0:? 'no_interp' (layout( location=1) flat in uint)
|
||||
0:? 'input.interp' (layout( location=0) in float)
|
||||
0:? 'input.no_interp' (layout( location=1) flat in uint)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -81,21 +81,21 @@ gl_FragCoord origin is upper left
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:7 Constant:
|
||||
0:7 0 (const int)
|
||||
0:? 'interp' (layout( location=0) in float)
|
||||
0:? 'input.interp' (layout( location=0) in float)
|
||||
0:7 move second child to first child ( temp uint)
|
||||
0:7 no_interp: direct index for structure ( temp uint)
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:7 Constant:
|
||||
0:7 1 (const int)
|
||||
0:? 'no_interp' (layout( location=1) flat in uint)
|
||||
0:? 'input.no_interp' (layout( location=1) flat in uint)
|
||||
0:7 move second child to first child ( temp 4-component vector of float)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:7 Function Call: @main(struct-PSInput-f1-u11; ( temp 4-component vector of float)
|
||||
0:? 'input' ( temp structure{ temp float interp, temp uint no_interp})
|
||||
0:? Linker Objects
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'interp' (layout( location=0) in float)
|
||||
0:? 'no_interp' (layout( location=1) flat in uint)
|
||||
0:? 'input.interp' (layout( location=0) in float)
|
||||
0:? 'input.no_interp' (layout( location=1) flat in uint)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -114,13 +114,13 @@ gl_FragCoord origin is upper left
|
||||
Name 13 "@main(struct-PSInput-f1-u11;"
|
||||
Name 12 "input"
|
||||
Name 30 "input"
|
||||
Name 32 "interp"
|
||||
Name 36 "no_interp"
|
||||
Name 32 "input.interp"
|
||||
Name 36 "input.no_interp"
|
||||
Name 40 "@entryPointOutput"
|
||||
Name 41 "param"
|
||||
Decorate 32(interp) Location 0
|
||||
Decorate 36(no_interp) Flat
|
||||
Decorate 36(no_interp) Location 1
|
||||
Decorate 32(input.interp) Location 0
|
||||
Decorate 36(input.no_interp) Flat
|
||||
Decorate 36(input.no_interp) Location 1
|
||||
Decorate 40(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
@@ -138,19 +138,19 @@ gl_FragCoord origin is upper left
|
||||
25: 6(float) Constant 0
|
||||
26: 6(float) Constant 1065353216
|
||||
31: TypePointer Input 6(float)
|
||||
32(interp): 31(ptr) Variable Input
|
||||
32(input.interp): 31(ptr) Variable Input
|
||||
35: TypePointer Input 7(int)
|
||||
36(no_interp): 35(ptr) Variable Input
|
||||
36(input.no_interp): 35(ptr) Variable Input
|
||||
39: TypePointer Output 10(fvec4)
|
||||
40(@entryPointOutput): 39(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
30(input): 9(ptr) Variable Function
|
||||
41(param): 9(ptr) Variable Function
|
||||
33: 6(float) Load 32(interp)
|
||||
33: 6(float) Load 32(input.interp)
|
||||
34: 22(ptr) AccessChain 30(input) 21
|
||||
Store 34 33
|
||||
37: 7(int) Load 36(no_interp)
|
||||
37: 7(int) Load 36(input.no_interp)
|
||||
38: 17(ptr) AccessChain 30(input) 16
|
||||
Store 38 37
|
||||
42: 8(PSInput) Load 30(input)
|
||||
|
||||
Reference in New Issue
Block a user