HLSL: Flatten a return struct from an entry point and assign locations after flattening.
Locations now get assigned in order, but skipping built-ins, which can be done post flattening.
This commit is contained in:
@@ -7,13 +7,13 @@ Linked fragment stage:
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 185
|
||||
// Id's are bound by 189
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 180
|
||||
EntryPoint Fragment 4 "main" 180 186 188
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Decorate 41 DescriptorSet 0
|
||||
Decorate 41 Binding 0
|
||||
@@ -31,11 +31,12 @@ Linked fragment stage:
|
||||
Decorate 156 DescriptorSet 0
|
||||
Decorate 165 DescriptorSet 0
|
||||
MemberDecorate 171 1 BuiltIn FragDepth
|
||||
Decorate 180 Location 0
|
||||
Decorate 182 DescriptorSet 0
|
||||
Decorate 183 DescriptorSet 0
|
||||
Decorate 184 DescriptorSet 0
|
||||
Decorate 184 Binding 1
|
||||
Decorate 186 Location 0
|
||||
Decorate 188 BuiltIn FragDepth
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
@@ -140,6 +141,10 @@ Linked fragment stage:
|
||||
182: 44(ptr) Variable UniformConstant
|
||||
183: 44(ptr) Variable UniformConstant
|
||||
184: 40(ptr) Variable UniformConstant
|
||||
185: TypePointer Output 36(fvec4)
|
||||
186: 185(ptr) Variable Output
|
||||
187: TypePointer Output 35(float)
|
||||
188: 187(ptr) Variable Output
|
||||
4: 2 Function None 3
|
||||
5: Label
|
||||
9: 8(ptr) Variable Function
|
||||
|
||||
Reference in New Issue
Block a user