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:
@@ -132,7 +132,7 @@ gl_FragCoord origin is upper left
|
||||
0:36 1.000000
|
||||
0:38 Sequence
|
||||
0:38 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:38 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:38 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -285,7 +285,7 @@ gl_FragCoord origin is upper left
|
||||
0:36 1.000000
|
||||
0:38 Sequence
|
||||
0:38 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:38 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:38 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -303,14 +303,14 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 108
|
||||
// Id's are bound by 109
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 95
|
||||
EntryPoint Fragment 4 "main" 96
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval10"
|
||||
@@ -330,11 +330,14 @@ gl_FragCoord origin is upper left
|
||||
MemberName 86(PS_OUTPUT) 0 "Color"
|
||||
MemberName 86(PS_OUTPUT) 1 "Depth"
|
||||
Name 88 "psout"
|
||||
Name 95 "@entryPointOutput"
|
||||
Name 98 "g_tTex1df4a"
|
||||
Name 101 "g_tTexcdf4"
|
||||
Name 104 "g_tTexcdi4"
|
||||
Name 107 "g_tTexcdu4"
|
||||
Name 94 "PS_OUTPUT"
|
||||
MemberName 94(PS_OUTPUT) 0 "Color"
|
||||
MemberName 94(PS_OUTPUT) 1 "Depth"
|
||||
Name 96 "@entryPointOutput"
|
||||
Name 99 "g_tTex1df4a"
|
||||
Name 102 "g_tTexcdf4"
|
||||
Name 105 "g_tTexcdi4"
|
||||
Name 108 "g_tTexcdu4"
|
||||
Decorate 12(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 12(g_tTex1df4) Binding 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
@@ -345,11 +348,13 @@ gl_FragCoord origin is upper left
|
||||
Decorate 71(g_tTex2di4) DescriptorSet 0
|
||||
Decorate 80(g_tTex2du4) DescriptorSet 0
|
||||
MemberDecorate 86(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 98(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 98(g_tTex1df4a) Binding 1
|
||||
Decorate 101(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 104(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 107(g_tTexcdu4) DescriptorSet 0
|
||||
MemberDecorate 94(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 96(@entryPointOutput) Location 0
|
||||
Decorate 99(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 99(g_tTex1df4a) Binding 1
|
||||
Decorate 102(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 105(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 108(g_tTexcdu4) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -407,18 +412,19 @@ gl_FragCoord origin is upper left
|
||||
89: 6(float) Constant 1065353216
|
||||
90: 7(fvec4) ConstantComposite 89 89 89 89
|
||||
92: TypePointer Function 6(float)
|
||||
94: TypePointer Output 86(PS_OUTPUT)
|
||||
95(@entryPointOutput): 94(ptr) Variable Output
|
||||
98(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
99: TypeImage 6(float) Cube array sampled format:Unknown
|
||||
100: TypePointer UniformConstant 99
|
||||
101(g_tTexcdf4): 100(ptr) Variable UniformConstant
|
||||
102: TypeImage 26(int) Cube array sampled format:Unknown
|
||||
103: TypePointer UniformConstant 102
|
||||
104(g_tTexcdi4): 103(ptr) Variable UniformConstant
|
||||
105: TypeImage 40(int) Cube array sampled format:Unknown
|
||||
106: TypePointer UniformConstant 105
|
||||
107(g_tTexcdu4): 106(ptr) Variable UniformConstant
|
||||
94(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
95: TypePointer Output 94(PS_OUTPUT)
|
||||
96(@entryPointOutput): 95(ptr) Variable Output
|
||||
99(g_tTex1df4a): 11(ptr) Variable UniformConstant
|
||||
100: TypeImage 6(float) Cube array sampled format:Unknown
|
||||
101: TypePointer UniformConstant 100
|
||||
102(g_tTexcdf4): 101(ptr) Variable UniformConstant
|
||||
103: TypeImage 26(int) Cube array sampled format:Unknown
|
||||
104: TypePointer UniformConstant 103
|
||||
105(g_tTexcdi4): 104(ptr) Variable UniformConstant
|
||||
106: TypeImage 40(int) Cube array sampled format:Unknown
|
||||
107: TypePointer UniformConstant 106
|
||||
108(g_tTexcdu4): 107(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval10): 8(ptr) Variable Function
|
||||
@@ -462,7 +468,7 @@ gl_FragCoord origin is upper left
|
||||
Store 91 90
|
||||
93: 92(ptr) AccessChain 88(psout) 27
|
||||
Store 93 89
|
||||
96:86(PS_OUTPUT) Load 88(psout)
|
||||
Store 95(@entryPointOutput) 96
|
||||
97:86(PS_OUTPUT) Load 88(psout)
|
||||
Store 96(@entryPointOutput) 97
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user