HLSL: Start location numbering with the entry-point return value.

Also, increment location numbers by the size of the objects.
This commit is contained in:
John Kessenich
2016-08-29 18:10:47 -06:00
parent a05d8b5604
commit 830b0cc98b
89 changed files with 2517 additions and 2157 deletions

View File

@@ -132,7 +132,7 @@ gl_FragCoord origin is upper left
0:64 1.000000
0:66 Sequence
0:66 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:66 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:66 Branch: Return
0:? Linker Objects
@@ -296,7 +296,7 @@ gl_FragCoord origin is upper left
0:64 1.000000
0:66 Sequence
0:66 move second child to first child (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:? '@entryPointOutput' (layout(location=0 ) out structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:66 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
0:66 Branch: Return
0:? Linker Objects
@@ -325,14 +325,14 @@ gl_FragCoord origin is upper left
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 158
// Id's are bound by 159
Capability Shader
Capability Sampled1D
Capability SampledCubeArray
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 110
EntryPoint Fragment 4 "main" 111
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 8 "r11"
@@ -352,22 +352,25 @@ gl_FragCoord origin is upper left
MemberName 99(PS_OUTPUT) 0 "Color"
MemberName 99(PS_OUTPUT) 1 "Depth"
Name 101 "psout"
Name 110 "@entryPointOutput"
Name 115 "g_tTex1df4"
Name 118 "g_tTex1di4"
Name 121 "g_tTex1du4"
Name 124 "g_tTex2df4"
Name 127 "g_tTex2di4"
Name 130 "g_tTex2du4"
Name 133 "g_tTex3df4"
Name 136 "g_tTex3di4"
Name 139 "g_tTex3du4"
Name 142 "g_tTexcdf4"
Name 145 "g_tTexcdi4"
Name 148 "g_tTexcdu4"
Name 151 "g_tTexcdf4a"
Name 154 "g_tTexcdi4a"
Name 157 "g_tTexcdu4a"
Name 109 "PS_OUTPUT"
MemberName 109(PS_OUTPUT) 0 "Color"
MemberName 109(PS_OUTPUT) 1 "Depth"
Name 111 "@entryPointOutput"
Name 116 "g_tTex1df4"
Name 119 "g_tTex1di4"
Name 122 "g_tTex1du4"
Name 125 "g_tTex2df4"
Name 128 "g_tTex2di4"
Name 131 "g_tTex2du4"
Name 134 "g_tTex3df4"
Name 137 "g_tTex3di4"
Name 140 "g_tTex3du4"
Name 143 "g_tTexcdf4"
Name 146 "g_tTexcdi4"
Name 149 "g_tTexcdu4"
Name 152 "g_tTexcdf4a"
Name 155 "g_tTexcdi4a"
Name 158 "g_tTexcdu4a"
Decorate 11(g_tTex1df4a) DescriptorSet 0
Decorate 15(g_sSamp) DescriptorSet 0
Decorate 15(g_sSamp) Binding 0
@@ -377,22 +380,24 @@ gl_FragCoord origin is upper left
Decorate 77(g_tTex2di4a) DescriptorSet 0
Decorate 89(g_tTex2du4a) DescriptorSet 0
MemberDecorate 99(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 115(g_tTex1df4) DescriptorSet 0
Decorate 115(g_tTex1df4) Binding 0
Decorate 118(g_tTex1di4) DescriptorSet 0
Decorate 121(g_tTex1du4) DescriptorSet 0
Decorate 124(g_tTex2df4) DescriptorSet 0
Decorate 127(g_tTex2di4) DescriptorSet 0
Decorate 130(g_tTex2du4) DescriptorSet 0
Decorate 133(g_tTex3df4) DescriptorSet 0
Decorate 136(g_tTex3di4) DescriptorSet 0
Decorate 139(g_tTex3du4) DescriptorSet 0
Decorate 142(g_tTexcdf4) DescriptorSet 0
Decorate 145(g_tTexcdi4) DescriptorSet 0
Decorate 148(g_tTexcdu4) DescriptorSet 0
Decorate 151(g_tTexcdf4a) DescriptorSet 0
Decorate 154(g_tTexcdi4a) DescriptorSet 0
Decorate 157(g_tTexcdu4a) DescriptorSet 0
MemberDecorate 109(PS_OUTPUT) 1 BuiltIn FragDepth
Decorate 111(@entryPointOutput) Location 0
Decorate 116(g_tTex1df4) DescriptorSet 0
Decorate 116(g_tTex1df4) Binding 0
Decorate 119(g_tTex1di4) DescriptorSet 0
Decorate 122(g_tTex1du4) DescriptorSet 0
Decorate 125(g_tTex2df4) DescriptorSet 0
Decorate 128(g_tTex2di4) DescriptorSet 0
Decorate 131(g_tTex2du4) DescriptorSet 0
Decorate 134(g_tTex3df4) DescriptorSet 0
Decorate 137(g_tTex3di4) DescriptorSet 0
Decorate 140(g_tTex3du4) DescriptorSet 0
Decorate 143(g_tTexcdf4) DescriptorSet 0
Decorate 146(g_tTexcdi4) DescriptorSet 0
Decorate 149(g_tTexcdu4) DescriptorSet 0
Decorate 152(g_tTexcdf4a) DescriptorSet 0
Decorate 155(g_tTexcdi4a) DescriptorSet 0
Decorate 158(g_tTexcdu4a) DescriptorSet 0
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -453,53 +458,54 @@ gl_FragCoord origin is upper left
104: 98(fvec4) ConstantComposite 103 103 103 103
105: TypePointer Function 98(fvec4)
107: 27(int) Constant 1
109: TypePointer Output 99(PS_OUTPUT)
110(@entryPointOutput): 109(ptr) Variable Output
113: TypeImage 6(float) 1D sampled format:Unknown
114: TypePointer UniformConstant 113
115(g_tTex1df4): 114(ptr) Variable UniformConstant
116: TypeImage 27(int) 1D sampled format:Unknown
117: TypePointer UniformConstant 116
118(g_tTex1di4): 117(ptr) Variable UniformConstant
119: TypeImage 44(int) 1D sampled format:Unknown
120: TypePointer UniformConstant 119
121(g_tTex1du4): 120(ptr) Variable UniformConstant
122: TypeImage 6(float) 2D sampled format:Unknown
123: TypePointer UniformConstant 122
124(g_tTex2df4): 123(ptr) Variable UniformConstant
125: TypeImage 27(int) 2D sampled format:Unknown
126: TypePointer UniformConstant 125
127(g_tTex2di4): 126(ptr) Variable UniformConstant
128: TypeImage 44(int) 2D sampled format:Unknown
129: TypePointer UniformConstant 128
130(g_tTex2du4): 129(ptr) Variable UniformConstant
131: TypeImage 6(float) 3D sampled format:Unknown
132: TypePointer UniformConstant 131
133(g_tTex3df4): 132(ptr) Variable UniformConstant
134: TypeImage 27(int) 3D sampled format:Unknown
135: TypePointer UniformConstant 134
136(g_tTex3di4): 135(ptr) Variable UniformConstant
137: TypeImage 44(int) 3D sampled format:Unknown
138: TypePointer UniformConstant 137
139(g_tTex3du4): 138(ptr) Variable UniformConstant
140: TypeImage 6(float) Cube sampled format:Unknown
141: TypePointer UniformConstant 140
142(g_tTexcdf4): 141(ptr) Variable UniformConstant
143: TypeImage 27(int) Cube sampled format:Unknown
144: TypePointer UniformConstant 143
145(g_tTexcdi4): 144(ptr) Variable UniformConstant
146: TypeImage 44(int) Cube sampled format:Unknown
147: TypePointer UniformConstant 146
148(g_tTexcdu4): 147(ptr) Variable UniformConstant
149: TypeImage 6(float) Cube array sampled format:Unknown
150: TypePointer UniformConstant 149
151(g_tTexcdf4a): 150(ptr) Variable UniformConstant
152: TypeImage 27(int) Cube array sampled format:Unknown
153: TypePointer UniformConstant 152
154(g_tTexcdi4a): 153(ptr) Variable UniformConstant
155: TypeImage 44(int) Cube array sampled format:Unknown
156: TypePointer UniformConstant 155
157(g_tTexcdu4a): 156(ptr) Variable UniformConstant
109(PS_OUTPUT): TypeStruct 98(fvec4) 6(float)
110: TypePointer Output 109(PS_OUTPUT)
111(@entryPointOutput): 110(ptr) Variable Output
114: TypeImage 6(float) 1D sampled format:Unknown
115: TypePointer UniformConstant 114
116(g_tTex1df4): 115(ptr) Variable UniformConstant
117: TypeImage 27(int) 1D sampled format:Unknown
118: TypePointer UniformConstant 117
119(g_tTex1di4): 118(ptr) Variable UniformConstant
120: TypeImage 44(int) 1D sampled format:Unknown
121: TypePointer UniformConstant 120
122(g_tTex1du4): 121(ptr) Variable UniformConstant
123: TypeImage 6(float) 2D sampled format:Unknown
124: TypePointer UniformConstant 123
125(g_tTex2df4): 124(ptr) Variable UniformConstant
126: TypeImage 27(int) 2D sampled format:Unknown
127: TypePointer UniformConstant 126
128(g_tTex2di4): 127(ptr) Variable UniformConstant
129: TypeImage 44(int) 2D sampled format:Unknown
130: TypePointer UniformConstant 129
131(g_tTex2du4): 130(ptr) Variable UniformConstant
132: TypeImage 6(float) 3D sampled format:Unknown
133: TypePointer UniformConstant 132
134(g_tTex3df4): 133(ptr) Variable UniformConstant
135: TypeImage 27(int) 3D sampled format:Unknown
136: TypePointer UniformConstant 135
137(g_tTex3di4): 136(ptr) Variable UniformConstant
138: TypeImage 44(int) 3D sampled format:Unknown
139: TypePointer UniformConstant 138
140(g_tTex3du4): 139(ptr) Variable UniformConstant
141: TypeImage 6(float) Cube sampled format:Unknown
142: TypePointer UniformConstant 141
143(g_tTexcdf4): 142(ptr) Variable UniformConstant
144: TypeImage 27(int) Cube sampled format:Unknown
145: TypePointer UniformConstant 144
146(g_tTexcdi4): 145(ptr) Variable UniformConstant
147: TypeImage 44(int) Cube sampled format:Unknown
148: TypePointer UniformConstant 147
149(g_tTexcdu4): 148(ptr) Variable UniformConstant
150: TypeImage 6(float) Cube array sampled format:Unknown
151: TypePointer UniformConstant 150
152(g_tTexcdf4a): 151(ptr) Variable UniformConstant
153: TypeImage 27(int) Cube array sampled format:Unknown
154: TypePointer UniformConstant 153
155(g_tTexcdi4a): 154(ptr) Variable UniformConstant
156: TypeImage 44(int) Cube array sampled format:Unknown
157: TypePointer UniformConstant 156
158(g_tTexcdu4a): 157(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
8(r11): 7(ptr) Variable Function
@@ -555,7 +561,7 @@ gl_FragCoord origin is upper left
Store 106 104
108: 7(ptr) AccessChain 101(psout) 107
Store 108 103
111:99(PS_OUTPUT) Load 101(psout)
Store 110(@entryPointOutput) 111
112:99(PS_OUTPUT) Load 101(psout)
Store 111(@entryPointOutput) 112
Return
FunctionEnd