HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -27,34 +27,34 @@ gl_FragCoord origin is upper left
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Function Call: @main( ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
|
||||
0:16 color: direct index for structure ( temp 4-component vector of float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 0 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member1' (layout( location=1) out float)
|
||||
0:? '@entryPointOutput.other_struct_member1' (layout( location=1) out float)
|
||||
0:16 other_struct_member1: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 1 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member2' (layout( location=2) out float)
|
||||
0:? '@entryPointOutput.other_struct_member2' (layout( location=2) out float)
|
||||
0:16 other_struct_member2: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 2 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member3' (layout( location=3) out float)
|
||||
0:? '@entryPointOutput.other_struct_member3' (layout( location=3) out float)
|
||||
0:16 other_struct_member3: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 3 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'other_struct_member1' (layout( location=1) out float)
|
||||
0:? 'other_struct_member2' (layout( location=2) out float)
|
||||
0:? 'other_struct_member3' (layout( location=3) out float)
|
||||
0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.other_struct_member1' (layout( location=1) out float)
|
||||
0:? '@entryPointOutput.other_struct_member2' (layout( location=2) out float)
|
||||
0:? '@entryPointOutput.other_struct_member3' (layout( location=3) out float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -88,34 +88,34 @@ gl_FragCoord origin is upper left
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Function Call: @main( ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
|
||||
0:16 color: direct index for structure ( temp 4-component vector of float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 0 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member1' (layout( location=1) out float)
|
||||
0:? '@entryPointOutput.other_struct_member1' (layout( location=1) out float)
|
||||
0:16 other_struct_member1: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 1 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member2' (layout( location=2) out float)
|
||||
0:? '@entryPointOutput.other_struct_member2' (layout( location=2) out float)
|
||||
0:16 other_struct_member2: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 2 (const int)
|
||||
0:16 move second child to first child ( temp float)
|
||||
0:? 'other_struct_member3' (layout( location=3) out float)
|
||||
0:? '@entryPointOutput.other_struct_member3' (layout( location=3) out float)
|
||||
0:16 other_struct_member3: direct index for structure ( temp float)
|
||||
0:16 'flattenTemp' ( temp structure{ temp 4-component vector of float color, temp float other_struct_member1, temp float other_struct_member2, temp float other_struct_member3})
|
||||
0:16 Constant:
|
||||
0:16 3 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'other_struct_member1' (layout( location=1) out float)
|
||||
0:? 'other_struct_member2' (layout( location=2) out float)
|
||||
0:? 'other_struct_member3' (layout( location=3) out float)
|
||||
0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.other_struct_member1' (layout( location=1) out float)
|
||||
0:? '@entryPointOutput.other_struct_member2' (layout( location=2) out float)
|
||||
0:? '@entryPointOutput.other_struct_member3' (layout( location=3) out float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -136,14 +136,14 @@ gl_FragCoord origin is upper left
|
||||
Name 10 "Func1("
|
||||
Name 12 "@main("
|
||||
Name 26 "flattenTemp"
|
||||
Name 29 "color"
|
||||
Name 36 "other_struct_member1"
|
||||
Name 41 "other_struct_member2"
|
||||
Name 45 "other_struct_member3"
|
||||
Decorate 29(color) Location 0
|
||||
Decorate 36(other_struct_member1) Location 1
|
||||
Decorate 41(other_struct_member2) Location 2
|
||||
Decorate 45(other_struct_member3) Location 3
|
||||
Name 29 "@entryPointOutput.color"
|
||||
Name 36 "@entryPointOutput.other_struct_member1"
|
||||
Name 41 "@entryPointOutput.other_struct_member2"
|
||||
Name 45 "@entryPointOutput.other_struct_member3"
|
||||
Decorate 29(@entryPointOutput.color) Location 0
|
||||
Decorate 36(@entryPointOutput.other_struct_member1) Location 1
|
||||
Decorate 41(@entryPointOutput.other_struct_member2) Location 2
|
||||
Decorate 45(@entryPointOutput.other_struct_member3) Location 3
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -158,17 +158,17 @@ gl_FragCoord origin is upper left
|
||||
19:8(PS_OUTPUT) ConstantComposite 15 16 17 18
|
||||
25: TypePointer Function 8(PS_OUTPUT)
|
||||
28: TypePointer Output 7(fvec4)
|
||||
29(color): 28(ptr) Variable Output
|
||||
29(@entryPointOutput.color): 28(ptr) Variable Output
|
||||
30: TypeInt 32 1
|
||||
31: 30(int) Constant 0
|
||||
32: TypePointer Function 7(fvec4)
|
||||
35: TypePointer Output 6(float)
|
||||
36(other_struct_member1): 35(ptr) Variable Output
|
||||
36(@entryPointOutput.other_struct_member1): 35(ptr) Variable Output
|
||||
37: 30(int) Constant 1
|
||||
38: TypePointer Function 6(float)
|
||||
41(other_struct_member2): 35(ptr) Variable Output
|
||||
41(@entryPointOutput.other_struct_member2): 35(ptr) Variable Output
|
||||
42: 30(int) Constant 2
|
||||
45(other_struct_member3): 35(ptr) Variable Output
|
||||
45(@entryPointOutput.other_struct_member3): 35(ptr) Variable Output
|
||||
46: 30(int) Constant 3
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -177,16 +177,16 @@ gl_FragCoord origin is upper left
|
||||
Store 26(flattenTemp) 27
|
||||
33: 32(ptr) AccessChain 26(flattenTemp) 31
|
||||
34: 7(fvec4) Load 33
|
||||
Store 29(color) 34
|
||||
Store 29(@entryPointOutput.color) 34
|
||||
39: 38(ptr) AccessChain 26(flattenTemp) 37
|
||||
40: 6(float) Load 39
|
||||
Store 36(other_struct_member1) 40
|
||||
Store 36(@entryPointOutput.other_struct_member1) 40
|
||||
43: 38(ptr) AccessChain 26(flattenTemp) 42
|
||||
44: 6(float) Load 43
|
||||
Store 41(other_struct_member2) 44
|
||||
Store 41(@entryPointOutput.other_struct_member2) 44
|
||||
47: 38(ptr) AccessChain 26(flattenTemp) 46
|
||||
48: 6(float) Load 47
|
||||
Store 45(other_struct_member3) 48
|
||||
Store 45(@entryPointOutput.other_struct_member3) 48
|
||||
Return
|
||||
FunctionEnd
|
||||
10(Func1():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user