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:
@@ -93,7 +93,7 @@ gl_FragCoord origin is upper left
|
||||
0:40 1.000000
|
||||
0:42 Sequence
|
||||
0:42 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:42 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:42 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -207,7 +207,7 @@ gl_FragCoord origin is upper left
|
||||
0:40 1.000000
|
||||
0:42 Sequence
|
||||
0:42 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:42 'psout' (temp structure{temp 4-component vector of float Color, temp float FragDepth Depth})
|
||||
0:42 Branch: Return
|
||||
0:? Linker Objects
|
||||
@@ -225,14 +225,14 @@ gl_FragCoord origin is upper left
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 112
|
||||
// Id's are bound by 113
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledCubeArray
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 99
|
||||
EntryPoint Fragment 4 "main" 100
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 9 "txval20"
|
||||
@@ -252,11 +252,14 @@ gl_FragCoord origin is upper left
|
||||
MemberName 90(PS_OUTPUT) 0 "Color"
|
||||
MemberName 90(PS_OUTPUT) 1 "Depth"
|
||||
Name 92 "psout"
|
||||
Name 99 "@entryPointOutput"
|
||||
Name 104 "g_tTex1df4a"
|
||||
Name 105 "g_tTex1df4"
|
||||
Name 108 "g_tTex1di4a"
|
||||
Name 111 "g_tTex1du4a"
|
||||
Name 98 "PS_OUTPUT"
|
||||
MemberName 98(PS_OUTPUT) 0 "Color"
|
||||
MemberName 98(PS_OUTPUT) 1 "Depth"
|
||||
Name 100 "@entryPointOutput"
|
||||
Name 105 "g_tTex1df4a"
|
||||
Name 106 "g_tTex1df4"
|
||||
Name 109 "g_tTex1di4a"
|
||||
Name 112 "g_tTex1du4a"
|
||||
Decorate 12(g_tTex2df4a) DescriptorSet 0
|
||||
Decorate 16(g_sSamp) DescriptorSet 0
|
||||
Decorate 16(g_sSamp) Binding 0
|
||||
@@ -266,12 +269,14 @@ gl_FragCoord origin is upper left
|
||||
Decorate 70(g_tTexcdi4a) DescriptorSet 0
|
||||
Decorate 80(g_tTexcdu4a) DescriptorSet 0
|
||||
MemberDecorate 90(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 104(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 104(g_tTex1df4a) Binding 1
|
||||
Decorate 105(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 105(g_tTex1df4) Binding 0
|
||||
Decorate 108(g_tTex1di4a) DescriptorSet 0
|
||||
Decorate 111(g_tTex1du4a) DescriptorSet 0
|
||||
MemberDecorate 98(PS_OUTPUT) 1 BuiltIn FragDepth
|
||||
Decorate 100(@entryPointOutput) Location 0
|
||||
Decorate 105(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 105(g_tTex1df4a) Binding 1
|
||||
Decorate 106(g_tTex1df4) DescriptorSet 0
|
||||
Decorate 106(g_tTex1df4) Binding 0
|
||||
Decorate 109(g_tTex1di4a) DescriptorSet 0
|
||||
Decorate 112(g_tTex1du4a) DescriptorSet 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -333,18 +338,19 @@ gl_FragCoord origin is upper left
|
||||
93: 7(fvec4) ConstantComposite 87 87 87 87
|
||||
95: 25(int) Constant 1
|
||||
96: TypePointer Function 6(float)
|
||||
98: TypePointer Output 90(PS_OUTPUT)
|
||||
99(@entryPointOutput): 98(ptr) Variable Output
|
||||
102: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
103: TypePointer UniformConstant 102
|
||||
104(g_tTex1df4a): 103(ptr) Variable UniformConstant
|
||||
105(g_tTex1df4): 103(ptr) Variable UniformConstant
|
||||
106: TypeImage 25(int) 1D array sampled format:Unknown
|
||||
107: TypePointer UniformConstant 106
|
||||
108(g_tTex1di4a): 107(ptr) Variable UniformConstant
|
||||
109: TypeImage 42(int) 1D array sampled format:Unknown
|
||||
110: TypePointer UniformConstant 109
|
||||
111(g_tTex1du4a): 110(ptr) Variable UniformConstant
|
||||
98(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
|
||||
99: TypePointer Output 98(PS_OUTPUT)
|
||||
100(@entryPointOutput): 99(ptr) Variable Output
|
||||
103: TypeImage 6(float) 1D array sampled format:Unknown
|
||||
104: TypePointer UniformConstant 103
|
||||
105(g_tTex1df4a): 104(ptr) Variable UniformConstant
|
||||
106(g_tTex1df4): 104(ptr) Variable UniformConstant
|
||||
107: TypeImage 25(int) 1D array sampled format:Unknown
|
||||
108: TypePointer UniformConstant 107
|
||||
109(g_tTex1di4a): 108(ptr) Variable UniformConstant
|
||||
110: TypeImage 42(int) 1D array sampled format:Unknown
|
||||
111: TypePointer UniformConstant 110
|
||||
112(g_tTex1du4a): 111(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(txval20): 8(ptr) Variable Function
|
||||
@@ -388,7 +394,7 @@ gl_FragCoord origin is upper left
|
||||
Store 94 93
|
||||
97: 96(ptr) AccessChain 92(psout) 95
|
||||
Store 97 87
|
||||
100:90(PS_OUTPUT) Load 92(psout)
|
||||
Store 99(@entryPointOutput) 100
|
||||
101:90(PS_OUTPUT) Load 92(psout)
|
||||
Store 100(@entryPointOutput) 101
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user