HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -4,51 +4,51 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:15 Function Definition: osCall1(struct-os-p11; ( temp 4-component vector of float)
|
||||
0:15 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Sequence
|
||||
0:16 Branch: Return with expression
|
||||
0:16 texture ( temp 4-component vector of float)
|
||||
0:16 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:16 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:20 Function Definition: osCall2(struct-os-p11;vf2; ( temp 4-component vector of float)
|
||||
0:20 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:20 'f2' ( in 2-component vector of float)
|
||||
0:? Sequence
|
||||
0:21 Branch: Return with expression
|
||||
0:21 texture ( temp 4-component vector of float)
|
||||
0:21 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:21 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:21 'f2' ( in 2-component vector of float)
|
||||
0:25 Function Definition: os2Call1(struct-os2-p1-t211; ( temp 4-component vector of float)
|
||||
0:25 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? Sequence
|
||||
0:26 Branch: Return with expression
|
||||
0:26 texture ( temp 4-component vector of float)
|
||||
0:26 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:30 Function Definition: os2Call2(struct-os2-p1-t211;vf2; ( temp 4-component vector of float)
|
||||
0:30 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:30 'f2' ( in 2-component vector of float)
|
||||
0:? Sequence
|
||||
0:31 Branch: Return with expression
|
||||
0:31 texture ( temp 4-component vector of float)
|
||||
0:31 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:31 'f2' ( in 2-component vector of float)
|
||||
0:35 Function Definition: @main( ( temp 4-component vector of float)
|
||||
0:35 Function Parameters:
|
||||
@@ -58,18 +58,18 @@ gl_FragCoord origin is upper left
|
||||
0:37 add ( temp 4-component vector of float)
|
||||
0:36 add ( temp 4-component vector of float)
|
||||
0:36 Function Call: osCall1(struct-os-p11; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:37 Function Call: osCall2(struct-os-p11;vf2; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:38 Function Call: os2Call1(struct-os2-p1-t211; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:39 Function Call: os2Call2(struct-os2-p1-t211;vf2; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
@@ -81,9 +81,9 @@ gl_FragCoord origin is upper left
|
||||
0:35 Function Call: @main( ( temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
|
||||
@@ -95,51 +95,51 @@ gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:15 Function Definition: osCall1(struct-os-p11; ( temp 4-component vector of float)
|
||||
0:15 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Sequence
|
||||
0:16 Branch: Return with expression
|
||||
0:16 texture ( temp 4-component vector of float)
|
||||
0:16 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:16 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:20 Function Definition: osCall2(struct-os-p11;vf2; ( temp 4-component vector of float)
|
||||
0:20 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:20 'f2' ( in 2-component vector of float)
|
||||
0:? Sequence
|
||||
0:21 Branch: Return with expression
|
||||
0:21 texture ( temp 4-component vector of float)
|
||||
0:21 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:21 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:21 'f2' ( in 2-component vector of float)
|
||||
0:25 Function Definition: os2Call1(struct-os2-p1-t211; ( temp 4-component vector of float)
|
||||
0:25 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? Sequence
|
||||
0:26 Branch: Return with expression
|
||||
0:26 texture ( temp 4-component vector of float)
|
||||
0:26 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:30 Function Definition: os2Call2(struct-os2-p1-t211;vf2; ( temp 4-component vector of float)
|
||||
0:30 Function Parameters:
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:30 'f2' ( in 2-component vector of float)
|
||||
0:? Sequence
|
||||
0:31 Branch: Return with expression
|
||||
0:31 texture ( temp 4-component vector of float)
|
||||
0:31 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:? 'tex' ( in texture2D)
|
||||
0:? 's2D' ( in sampler)
|
||||
0:? 's.tex' ( in texture2D)
|
||||
0:? 's.s2D' ( in sampler)
|
||||
0:31 'f2' ( in 2-component vector of float)
|
||||
0:35 Function Definition: @main( ( temp 4-component vector of float)
|
||||
0:35 Function Parameters:
|
||||
@@ -149,18 +149,18 @@ gl_FragCoord origin is upper left
|
||||
0:37 add ( temp 4-component vector of float)
|
||||
0:36 add ( temp 4-component vector of float)
|
||||
0:36 Function Call: osCall1(struct-os-p11; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:37 Function Call: osCall2(struct-os-p11;vf2; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:38 Function Call: os2Call1(struct-os2-p1-t211; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:39 Function Call: os2Call2(struct-os2-p1-t211;vf2; ( temp 4-component vector of float)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
@@ -172,9 +172,9 @@ gl_FragCoord origin is upper left
|
||||
0:35 Function Call: @main( ( temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 's2D' ( uniform sampler)
|
||||
0:? 'tex' ( uniform texture2D)
|
||||
0:? 's.s2D' ( uniform sampler)
|
||||
0:? 's2.s2D' ( uniform sampler)
|
||||
0:? 's2.tex' ( uniform texture2D)
|
||||
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
@@ -189,29 +189,29 @@ gl_FragCoord origin is upper left
|
||||
Source HLSL 500
|
||||
Name 4 "main"
|
||||
Name 12 "osCall1(struct-os-p11;"
|
||||
Name 11 "s2D"
|
||||
Name 11 "s.s2D"
|
||||
Name 19 "osCall2(struct-os-p11;vf2;"
|
||||
Name 17 "s2D"
|
||||
Name 17 "s.s2D"
|
||||
Name 18 "f2"
|
||||
Name 26 "os2Call1(struct-os2-p1-t211;"
|
||||
Name 24 "s2D"
|
||||
Name 25 "tex"
|
||||
Name 24 "s.s2D"
|
||||
Name 25 "s.tex"
|
||||
Name 32 "os2Call2(struct-os2-p1-t211;vf2;"
|
||||
Name 29 "s2D"
|
||||
Name 30 "tex"
|
||||
Name 29 "s.s2D"
|
||||
Name 30 "s.tex"
|
||||
Name 31 "f2"
|
||||
Name 35 "@main("
|
||||
Name 37 "tex"
|
||||
Name 68 "s2D"
|
||||
Name 68 "s.s2D"
|
||||
Name 70 "param"
|
||||
Name 73 "s2D"
|
||||
Name 74 "tex"
|
||||
Name 73 "s2.s2D"
|
||||
Name 74 "s2.tex"
|
||||
Name 77 "param"
|
||||
Name 83 "@entryPointOutput"
|
||||
Decorate 37(tex) DescriptorSet 0
|
||||
Decorate 68(s2D) DescriptorSet 0
|
||||
Decorate 73(s2D) DescriptorSet 0
|
||||
Decorate 74(tex) DescriptorSet 0
|
||||
Decorate 68(s.s2D) DescriptorSet 0
|
||||
Decorate 73(s2.s2D) DescriptorSet 0
|
||||
Decorate 74(s2.tex) DescriptorSet 0
|
||||
Decorate 83(@entryPointOutput) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
@@ -233,9 +233,9 @@ gl_FragCoord origin is upper left
|
||||
42: 8(float) Constant 1045220557
|
||||
43: 8(float) Constant 1050253722
|
||||
44: 14(fvec2) ConstantComposite 42 43
|
||||
68(s2D): 7(ptr) Variable UniformConstant
|
||||
73(s2D): 7(ptr) Variable UniformConstant
|
||||
74(tex): 22(ptr) Variable UniformConstant
|
||||
68(s.s2D): 7(ptr) Variable UniformConstant
|
||||
73(s2.s2D): 7(ptr) Variable UniformConstant
|
||||
74(s2.tex): 22(ptr) Variable UniformConstant
|
||||
82: TypePointer Output 9(fvec4)
|
||||
83(@entryPointOutput): 82(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
@@ -245,42 +245,42 @@ gl_FragCoord origin is upper left
|
||||
Return
|
||||
FunctionEnd
|
||||
12(osCall1(struct-os-p11;): 9(fvec4) Function None 10
|
||||
11(s2D): 7(ptr) FunctionParameter
|
||||
11(s.s2D): 7(ptr) FunctionParameter
|
||||
13: Label
|
||||
38: 21 Load 37(tex)
|
||||
39: 6 Load 11(s2D)
|
||||
39: 6 Load 11(s.s2D)
|
||||
41: 40 SampledImage 38 39
|
||||
45: 9(fvec4) ImageSampleImplicitLod 41 44
|
||||
ReturnValue 45
|
||||
FunctionEnd
|
||||
19(osCall2(struct-os-p11;vf2;): 9(fvec4) Function None 16
|
||||
17(s2D): 7(ptr) FunctionParameter
|
||||
17(s.s2D): 7(ptr) FunctionParameter
|
||||
18(f2): 15(ptr) FunctionParameter
|
||||
20: Label
|
||||
48: 21 Load 37(tex)
|
||||
49: 6 Load 17(s2D)
|
||||
49: 6 Load 17(s.s2D)
|
||||
50: 40 SampledImage 48 49
|
||||
51: 14(fvec2) Load 18(f2)
|
||||
52: 9(fvec4) ImageSampleImplicitLod 50 51
|
||||
ReturnValue 52
|
||||
FunctionEnd
|
||||
26(os2Call1(struct-os2-p1-t211;): 9(fvec4) Function None 23
|
||||
24(s2D): 7(ptr) FunctionParameter
|
||||
25(tex): 22(ptr) FunctionParameter
|
||||
24(s.s2D): 7(ptr) FunctionParameter
|
||||
25(s.tex): 22(ptr) FunctionParameter
|
||||
27: Label
|
||||
55: 21 Load 25(tex)
|
||||
56: 6 Load 24(s2D)
|
||||
55: 21 Load 25(s.tex)
|
||||
56: 6 Load 24(s.s2D)
|
||||
57: 40 SampledImage 55 56
|
||||
58: 9(fvec4) ImageSampleImplicitLod 57 44
|
||||
ReturnValue 58
|
||||
FunctionEnd
|
||||
32(os2Call2(struct-os2-p1-t211;vf2;): 9(fvec4) Function None 28
|
||||
29(s2D): 7(ptr) FunctionParameter
|
||||
30(tex): 22(ptr) FunctionParameter
|
||||
29(s.s2D): 7(ptr) FunctionParameter
|
||||
30(s.tex): 22(ptr) FunctionParameter
|
||||
31(f2): 15(ptr) FunctionParameter
|
||||
33: Label
|
||||
61: 21 Load 30(tex)
|
||||
62: 6 Load 29(s2D)
|
||||
61: 21 Load 30(s.tex)
|
||||
62: 6 Load 29(s.s2D)
|
||||
63: 40 SampledImage 61 62
|
||||
64: 14(fvec2) Load 31(f2)
|
||||
65: 9(fvec4) ImageSampleImplicitLod 63 64
|
||||
@@ -290,14 +290,14 @@ gl_FragCoord origin is upper left
|
||||
36: Label
|
||||
70(param): 15(ptr) Variable Function
|
||||
77(param): 15(ptr) Variable Function
|
||||
69: 9(fvec4) FunctionCall 12(osCall1(struct-os-p11;) 68(s2D)
|
||||
69: 9(fvec4) FunctionCall 12(osCall1(struct-os-p11;) 68(s.s2D)
|
||||
Store 70(param) 44
|
||||
71: 9(fvec4) FunctionCall 19(osCall2(struct-os-p11;vf2;) 68(s2D) 70(param)
|
||||
71: 9(fvec4) FunctionCall 19(osCall2(struct-os-p11;vf2;) 68(s.s2D) 70(param)
|
||||
72: 9(fvec4) FAdd 69 71
|
||||
75: 9(fvec4) FunctionCall 26(os2Call1(struct-os2-p1-t211;) 73(s2D) 74(tex)
|
||||
75: 9(fvec4) FunctionCall 26(os2Call1(struct-os2-p1-t211;) 73(s2.s2D) 74(s2.tex)
|
||||
76: 9(fvec4) FAdd 72 75
|
||||
Store 77(param) 44
|
||||
78: 9(fvec4) FunctionCall 32(os2Call2(struct-os2-p1-t211;vf2;) 73(s2D) 74(tex) 77(param)
|
||||
78: 9(fvec4) FunctionCall 32(os2Call2(struct-os2-p1-t211;vf2;) 73(s2.s2D) 74(s2.tex) 77(param)
|
||||
79: 9(fvec4) FAdd 76 78
|
||||
ReturnValue 79
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user