Fix #944: Convert argument type to match formal parameter type.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
spv.multiStructFuncall.frag
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80006
|
||||
// Id's are bound by 63
|
||||
// Id's are bound by 66
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -23,20 +23,21 @@ spv.multiStructFuncall.frag
|
||||
Name 23 "blockName"
|
||||
MemberName 23(blockName) 0 "s1"
|
||||
Name 25 ""
|
||||
Name 33 "s2"
|
||||
Name 36 "S"
|
||||
MemberName 36(S) 0 "m"
|
||||
Name 38 "param"
|
||||
Name 45 "param"
|
||||
Name 31 "S"
|
||||
MemberName 31(S) 0 "m"
|
||||
Name 32 "arg"
|
||||
Name 39 "s2"
|
||||
Name 42 "param"
|
||||
Name 48 "param"
|
||||
Name 59 "param"
|
||||
Name 51 "param"
|
||||
Name 62 "param"
|
||||
MemberDecorate 22(S) 0 ColMajor
|
||||
MemberDecorate 22(S) 0 Offset 0
|
||||
MemberDecorate 22(S) 0 MatrixStride 16
|
||||
MemberDecorate 23(blockName) 0 Offset 0
|
||||
Decorate 23(blockName) BufferBlock
|
||||
Decorate 25 DescriptorSet 0
|
||||
MemberDecorate 36(S) 0 ColMajor
|
||||
MemberDecorate 31(S) 0 ColMajor
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -53,48 +54,52 @@ spv.multiStructFuncall.frag
|
||||
26: TypeInt 32 1
|
||||
27: 26(int) Constant 0
|
||||
28: TypePointer Uniform 22(S)
|
||||
32: TypePointer Private 9(S)
|
||||
33(s2): 32(ptr) Variable Private
|
||||
36(S): TypeStruct 8
|
||||
37: TypePointer Function 36(S)
|
||||
42: TypePointer Function 8
|
||||
57: TypePointer Uniform 8
|
||||
31(S): TypeStruct 8
|
||||
34: TypePointer Function 8
|
||||
38: TypePointer Private 9(S)
|
||||
39(s2): 38(ptr) Variable Private
|
||||
60: TypePointer Uniform 8
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
38(param): 37(ptr) Variable Function
|
||||
45(param): 14(ptr) Variable Function
|
||||
48(param): 37(ptr) Variable Function
|
||||
59(param): 14(ptr) Variable Function
|
||||
32(arg): 14(ptr) Variable Function
|
||||
42(param): 14(ptr) Variable Function
|
||||
48(param): 14(ptr) Variable Function
|
||||
51(param): 14(ptr) Variable Function
|
||||
62(param): 14(ptr) Variable Function
|
||||
29: 28(ptr) AccessChain 25 27
|
||||
30: 22(S) Load 29
|
||||
31: 2 FunctionCall 12(fooConst(struct-S-mf441;) 30
|
||||
34: 9(S) Load 33(s2)
|
||||
35: 2 FunctionCall 12(fooConst(struct-S-mf441;) 34
|
||||
39: 28(ptr) AccessChain 25 27
|
||||
40: 22(S) Load 39
|
||||
41: 8 CompositeExtract 40 0
|
||||
43: 42(ptr) AccessChain 38(param) 27
|
||||
Store 43 41
|
||||
44: 2 FunctionCall 17(foo(struct-S-mf441;) 38(param)
|
||||
46: 9(S) Load 33(s2)
|
||||
Store 45(param) 46
|
||||
47: 2 FunctionCall 17(foo(struct-S-mf441;) 45(param)
|
||||
49: 28(ptr) AccessChain 25 27
|
||||
50: 22(S) Load 49
|
||||
51: 8 CompositeExtract 50 0
|
||||
52: 42(ptr) AccessChain 48(param) 27
|
||||
Store 52 51
|
||||
53: 2 FunctionCall 20(fooOut(struct-S-mf441;) 48(param)
|
||||
54: 36(S) Load 48(param)
|
||||
55: 28(ptr) AccessChain 25 27
|
||||
56: 8 CompositeExtract 54 0
|
||||
58: 57(ptr) AccessChain 55 27
|
||||
Store 58 56
|
||||
60: 9(S) Load 33(s2)
|
||||
Store 59(param) 60
|
||||
61: 2 FunctionCall 20(fooOut(struct-S-mf441;) 59(param)
|
||||
62: 9(S) Load 59(param)
|
||||
Store 33(s2) 62
|
||||
33: 8 CompositeExtract 30 0
|
||||
35: 34(ptr) AccessChain 32(arg) 27
|
||||
Store 35 33
|
||||
36: 9(S) Load 32(arg)
|
||||
37: 2 FunctionCall 12(fooConst(struct-S-mf441;) 36
|
||||
40: 9(S) Load 39(s2)
|
||||
41: 2 FunctionCall 12(fooConst(struct-S-mf441;) 40
|
||||
43: 28(ptr) AccessChain 25 27
|
||||
44: 22(S) Load 43
|
||||
45: 8 CompositeExtract 44 0
|
||||
46: 34(ptr) AccessChain 42(param) 27
|
||||
Store 46 45
|
||||
47: 2 FunctionCall 17(foo(struct-S-mf441;) 42(param)
|
||||
49: 9(S) Load 39(s2)
|
||||
Store 48(param) 49
|
||||
50: 2 FunctionCall 17(foo(struct-S-mf441;) 48(param)
|
||||
52: 28(ptr) AccessChain 25 27
|
||||
53: 22(S) Load 52
|
||||
54: 8 CompositeExtract 53 0
|
||||
55: 34(ptr) AccessChain 51(param) 27
|
||||
Store 55 54
|
||||
56: 2 FunctionCall 20(fooOut(struct-S-mf441;) 51(param)
|
||||
57: 9(S) Load 51(param)
|
||||
58: 28(ptr) AccessChain 25 27
|
||||
59: 8 CompositeExtract 57 0
|
||||
61: 60(ptr) AccessChain 58 27
|
||||
Store 61 59
|
||||
63: 9(S) Load 39(s2)
|
||||
Store 62(param) 63
|
||||
64: 2 FunctionCall 20(fooOut(struct-S-mf441;) 62(param)
|
||||
65: 9(S) Load 62(param)
|
||||
Store 39(s2) 65
|
||||
Return
|
||||
FunctionEnd
|
||||
12(fooConst(struct-S-mf441;): 2 Function None 10
|
||||
|
||||
Reference in New Issue
Block a user