HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -24,14 +24,14 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:11 Sequence
|
||||
0:11 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:11 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:11 Function Call: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
|
||||
0:11 Constant:
|
||||
0:11 0 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int also_not_the_entry_point})
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -62,14 +62,14 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:11 Sequence
|
||||
0:11 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:11 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:11 Function Call: @main_in_spv( ( temp structure{ temp 4-component vector of float Color})
|
||||
0:11 Constant:
|
||||
0:11 0 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int also_not_the_entry_point})
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -87,11 +87,11 @@ gl_FragCoord origin is upper left
|
||||
MemberName 10(PS_OUTPUT) 0 "Color"
|
||||
Name 12 "@main_in_spv("
|
||||
Name 15 "psout"
|
||||
Name 26 "Color"
|
||||
Name 26 "@entryPointOutput.Color"
|
||||
Name 29 "$Global"
|
||||
MemberName 29($Global) 0 "also_not_the_entry_point"
|
||||
Name 31 ""
|
||||
Decorate 26(Color) Location 0
|
||||
Decorate 26(@entryPointOutput.Color) Location 0
|
||||
MemberDecorate 29($Global) 0 Offset 0
|
||||
Decorate 29($Global) Block
|
||||
Decorate 31 DescriptorSet 0
|
||||
@@ -108,7 +108,7 @@ gl_FragCoord origin is upper left
|
||||
19: 9(fvec4) ConstantComposite 18 18 18 18
|
||||
20: TypePointer Function 9(fvec4)
|
||||
25: TypePointer Output 9(fvec4)
|
||||
26(Color): 25(ptr) Variable Output
|
||||
26(@entryPointOutput.Color): 25(ptr) Variable Output
|
||||
29($Global): TypeStruct 16(int)
|
||||
30: TypePointer Uniform 29($Global)
|
||||
31: 30(ptr) Variable Uniform
|
||||
@@ -116,7 +116,7 @@ gl_FragCoord origin is upper left
|
||||
5: Label
|
||||
27:10(PS_OUTPUT) FunctionCall 12(@main_in_spv()
|
||||
28: 9(fvec4) CompositeExtract 27 0
|
||||
Store 26(Color) 28
|
||||
Store 26(@entryPointOutput.Color) 28
|
||||
Return
|
||||
FunctionEnd
|
||||
6(not_the_entry_point(): 2 Function None 3
|
||||
|
||||
Reference in New Issue
Block a user