Fix for two defects as follows: - The IO mapping traverser was not setting inVisit, and would skip some AST nodes. Depending on the order of nodes, this could have prevented the binding from showing up in the generated SPIR-V. - If a uniform array was flattened, each of the flattened scalars from the array is still a (now-scalar) uniform. It was being converted to a temporary.
58 lines
2.6 KiB
Plaintext
58 lines
2.6 KiB
Plaintext
spv.register.autoassign-2.frag
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 30
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 9
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Name 4 "main"
|
|
Name 9 "Color"
|
|
Name 12 "g_tScene[0]"
|
|
Name 16 "g_tSamp"
|
|
Name 24 "g_tScene[1]"
|
|
Decorate 9(Color) Location 0
|
|
Decorate 12(g_tScene[0]) DescriptorSet 0
|
|
Decorate 12(g_tScene[0]) Binding 10
|
|
Decorate 16(g_tSamp) DescriptorSet 0
|
|
Decorate 16(g_tSamp) Binding 5
|
|
Decorate 24(g_tScene[1]) DescriptorSet 0
|
|
Decorate 24(g_tScene[1]) Binding 11
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeFloat 32
|
|
7: TypeVector 6(float) 4
|
|
8: TypePointer Output 7(fvec4)
|
|
9(Color): 8(ptr) Variable Output
|
|
10: TypeImage 6(float) 2D sampled format:Unknown
|
|
11: TypePointer UniformConstant 10
|
|
12(g_tScene[0]): 11(ptr) Variable UniformConstant
|
|
14: TypeSampler
|
|
15: TypePointer UniformConstant 14
|
|
16(g_tSamp): 15(ptr) Variable UniformConstant
|
|
18: TypeSampledImage 10
|
|
20: TypeVector 6(float) 2
|
|
21: 6(float) Constant 1050253722
|
|
22: 20(fvec2) ConstantComposite 21 21
|
|
24(g_tScene[1]): 11(ptr) Variable UniformConstant
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
13: 10 Load 12(g_tScene[0])
|
|
17: 14 Load 16(g_tSamp)
|
|
19: 18 SampledImage 13 17
|
|
23: 7(fvec4) ImageSampleImplicitLod 19 22
|
|
25: 10 Load 24(g_tScene[1])
|
|
26: 14 Load 16(g_tSamp)
|
|
27: 18 SampledImage 25 26
|
|
28: 7(fvec4) ImageSampleImplicitLod 27 22
|
|
29: 7(fvec4) FAdd 23 28
|
|
Store 9(Color) 29
|
|
Return
|
|
FunctionEnd
|