HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -15,8 +15,8 @@ gl_FragCoord origin is upper left
|
||||
0:25 add ( temp 4-component vector of float)
|
||||
0:25 texture ( temp 4-component vector of float)
|
||||
0:25 Construct combined texture-sampler ( temp sampler1D)
|
||||
0:? 'tex' ( uniform texture1D)
|
||||
0:? 'samp' ( uniform sampler)
|
||||
0:? 'g_texdata.tex' ( uniform texture1D)
|
||||
0:? 'g_texdata.samp' ( uniform sampler)
|
||||
0:25 Constant:
|
||||
0:25 0.500000
|
||||
0:26 texture ( temp 4-component vector of float)
|
||||
@@ -38,7 +38,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'ps_output' ( temp structure{ temp 4-component vector of float color})
|
||||
0:23 Sequence
|
||||
0:23 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'ps_output.color' (layout( location=0) out 4-component vector of float)
|
||||
0:23 color: direct index for structure ( temp 4-component vector of float)
|
||||
0:? 'ps_output' ( temp structure{ temp 4-component vector of float color})
|
||||
0:23 Constant:
|
||||
@@ -46,9 +46,9 @@ gl_FragCoord origin is upper left
|
||||
0:? Linker Objects
|
||||
0:? 'g_samp' ( uniform sampler)
|
||||
0:? 'g_tex' ( uniform texture1D)
|
||||
0:? 'samp' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture1D)
|
||||
0:? 'nonopaque_thing' ( uniform int)
|
||||
0:? 'g_texdata.samp' ( uniform sampler)
|
||||
0:? 'g_texdata.tex' ( uniform texture1D)
|
||||
0:? 'g_texdata.nonopaque_thing' ( uniform int)
|
||||
0:? 'g_texdata_array[0].samp' ( uniform sampler)
|
||||
0:? 'g_texdata_array[0].tex' ( uniform texture1D)
|
||||
0:? 'g_texdata_array[0].nonopaque_thing' ( uniform int)
|
||||
@@ -73,7 +73,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_texdata_array2[2].tex[0]' ( uniform texture1D)
|
||||
0:? 'g_texdata_array2[2].tex[1]' ( uniform texture1D)
|
||||
0:? 'g_texdata_array2[2].nonopaque_thing' ( uniform int)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'ps_output.color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -95,8 +95,8 @@ gl_FragCoord origin is upper left
|
||||
0:25 add ( temp 4-component vector of float)
|
||||
0:25 texture ( temp 4-component vector of float)
|
||||
0:25 Construct combined texture-sampler ( temp sampler1D)
|
||||
0:? 'tex' ( uniform texture1D)
|
||||
0:? 'samp' ( uniform sampler)
|
||||
0:? 'g_texdata.tex' ( uniform texture1D)
|
||||
0:? 'g_texdata.samp' ( uniform sampler)
|
||||
0:25 Constant:
|
||||
0:25 0.500000
|
||||
0:26 texture ( temp 4-component vector of float)
|
||||
@@ -118,7 +118,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'ps_output' ( temp structure{ temp 4-component vector of float color})
|
||||
0:23 Sequence
|
||||
0:23 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'ps_output.color' (layout( location=0) out 4-component vector of float)
|
||||
0:23 color: direct index for structure ( temp 4-component vector of float)
|
||||
0:? 'ps_output' ( temp structure{ temp 4-component vector of float color})
|
||||
0:23 Constant:
|
||||
@@ -126,9 +126,9 @@ gl_FragCoord origin is upper left
|
||||
0:? Linker Objects
|
||||
0:? 'g_samp' ( uniform sampler)
|
||||
0:? 'g_tex' ( uniform texture1D)
|
||||
0:? 'samp' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture1D)
|
||||
0:? 'nonopaque_thing' ( uniform int)
|
||||
0:? 'g_texdata.samp' ( uniform sampler)
|
||||
0:? 'g_texdata.tex' ( uniform texture1D)
|
||||
0:? 'g_texdata.nonopaque_thing' ( uniform int)
|
||||
0:? 'g_texdata_array[0].samp' ( uniform sampler)
|
||||
0:? 'g_texdata_array[0].tex' ( uniform texture1D)
|
||||
0:? 'g_texdata_array[0].nonopaque_thing' ( uniform int)
|
||||
@@ -153,7 +153,7 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_texdata_array2[2].tex[0]' ( uniform texture1D)
|
||||
0:? 'g_texdata_array2[2].tex[1]' ( uniform texture1D)
|
||||
0:? 'g_texdata_array2[2].nonopaque_thing' ( uniform int)
|
||||
0:? 'color' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'ps_output.color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -171,18 +171,18 @@ gl_FragCoord origin is upper left
|
||||
MemberName 8(PS_OUTPUT) 0 "color"
|
||||
Name 12 "@main(struct-PS_OUTPUT-vf41;"
|
||||
Name 11 "ps_output"
|
||||
Name 18 "tex"
|
||||
Name 22 "samp"
|
||||
Name 18 "g_texdata.tex"
|
||||
Name 22 "g_texdata.samp"
|
||||
Name 28 "g_texdata_array[1].tex"
|
||||
Name 30 "g_texdata_array[1].samp"
|
||||
Name 36 "g_texdata_array2[1].tex[0]"
|
||||
Name 38 "g_texdata_array2[1].samp[0]"
|
||||
Name 46 "ps_output"
|
||||
Name 47 "param"
|
||||
Name 51 "color"
|
||||
Name 51 "ps_output.color"
|
||||
Name 54 "g_samp"
|
||||
Name 55 "g_tex"
|
||||
Name 57 "nonopaque_thing"
|
||||
Name 57 "g_texdata.nonopaque_thing"
|
||||
Name 58 "g_texdata_array[0].samp"
|
||||
Name 59 "g_texdata_array[0].tex"
|
||||
Name 60 "g_texdata_array[0].nonopaque_thing"
|
||||
@@ -203,13 +203,13 @@ gl_FragCoord origin is upper left
|
||||
Name 75 "g_texdata_array2[2].tex[0]"
|
||||
Name 76 "g_texdata_array2[2].tex[1]"
|
||||
Name 77 "g_texdata_array2[2].nonopaque_thing"
|
||||
Decorate 18(tex) DescriptorSet 0
|
||||
Decorate 22(samp) DescriptorSet 0
|
||||
Decorate 18(g_texdata.tex) DescriptorSet 0
|
||||
Decorate 22(g_texdata.samp) DescriptorSet 0
|
||||
Decorate 28(g_texdata_array[1].tex) DescriptorSet 0
|
||||
Decorate 30(g_texdata_array[1].samp) DescriptorSet 0
|
||||
Decorate 36(g_texdata_array2[1].tex[0]) DescriptorSet 0
|
||||
Decorate 38(g_texdata_array2[1].samp[0]) DescriptorSet 0
|
||||
Decorate 51(color) Location 0
|
||||
Decorate 51(ps_output.color) Location 0
|
||||
Decorate 54(g_samp) DescriptorSet 0
|
||||
Decorate 55(g_tex) DescriptorSet 0
|
||||
Decorate 58(g_texdata_array[0].samp) DescriptorSet 0
|
||||
@@ -237,10 +237,10 @@ gl_FragCoord origin is upper left
|
||||
15: 14(int) Constant 0
|
||||
16: TypeImage 6(float) 1D sampled format:Unknown
|
||||
17: TypePointer UniformConstant 16
|
||||
18(tex): 17(ptr) Variable UniformConstant
|
||||
18(g_texdata.tex): 17(ptr) Variable UniformConstant
|
||||
20: TypeSampler
|
||||
21: TypePointer UniformConstant 20
|
||||
22(samp): 21(ptr) Variable UniformConstant
|
||||
22(g_texdata.samp): 21(ptr) Variable UniformConstant
|
||||
24: TypeSampledImage 16
|
||||
26: 6(float) Constant 1056964608
|
||||
28(g_texdata_array[1].tex): 17(ptr) Variable UniformConstant
|
||||
@@ -251,11 +251,11 @@ gl_FragCoord origin is upper left
|
||||
41: 6(float) Constant 1050253722
|
||||
44: TypePointer Function 7(fvec4)
|
||||
50: TypePointer Output 7(fvec4)
|
||||
51(color): 50(ptr) Variable Output
|
||||
51(ps_output.color): 50(ptr) Variable Output
|
||||
54(g_samp): 21(ptr) Variable UniformConstant
|
||||
55(g_tex): 17(ptr) Variable UniformConstant
|
||||
56: TypePointer UniformConstant 14(int)
|
||||
57(nonopaque_thing): 56(ptr) Variable UniformConstant
|
||||
57(g_texdata.nonopaque_thing): 56(ptr) Variable UniformConstant
|
||||
58(g_texdata_array[0].samp): 21(ptr) Variable UniformConstant
|
||||
59(g_texdata_array[0].tex): 17(ptr) Variable UniformConstant
|
||||
60(g_texdata_array[0].nonopaque_thing): 56(ptr) Variable UniformConstant
|
||||
@@ -285,14 +285,14 @@ gl_FragCoord origin is upper left
|
||||
Store 46(ps_output) 49
|
||||
52: 44(ptr) AccessChain 46(ps_output) 15
|
||||
53: 7(fvec4) Load 52
|
||||
Store 51(color) 53
|
||||
Store 51(ps_output.color) 53
|
||||
Return
|
||||
FunctionEnd
|
||||
12(@main(struct-PS_OUTPUT-vf41;): 2 Function None 10
|
||||
11(ps_output): 9(ptr) FunctionParameter
|
||||
13: Label
|
||||
19: 16 Load 18(tex)
|
||||
23: 20 Load 22(samp)
|
||||
19: 16 Load 18(g_texdata.tex)
|
||||
23: 20 Load 22(g_texdata.samp)
|
||||
25: 24 SampledImage 19 23
|
||||
27: 7(fvec4) ImageSampleImplicitLod 25 26
|
||||
29: 16 Load 28(g_texdata_array[1].tex)
|
||||
|
||||
Reference in New Issue
Block a user