This also removes an no longer needed makeTemporary() and rationalizes makeTypeNonIo()'s interface.
267 lines
13 KiB
Plaintext
267 lines
13 KiB
Plaintext
hlsl.struct.split.assign.frag
|
|
Shader version: 450
|
|
gl_FragCoord origin is upper left
|
|
0:? Sequence
|
|
0:7 Function Definition: @main(i1;struct-S-f1-vf41[3]; (temp 4-component vector of float)
|
|
0:7 Function Parameters:
|
|
0:7 'i' (in int)
|
|
0:7 'input' (in 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:? Sequence
|
|
0:9 move second child to first child (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:9 'input' (in 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:9 'a' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:11 Branch: Return with expression
|
|
0:11 Constant:
|
|
0:11 1.000000
|
|
0:11 1.000000
|
|
0:11 1.000000
|
|
0:7 Function Definition: main( (temp void)
|
|
0:7 Function Parameters:
|
|
0:? Sequence
|
|
0:7 move second child to first child (temp int)
|
|
0:? 'i' (temp int)
|
|
0:? 'i' (layout(location=0 ) in int)
|
|
0:7 Sequence
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 1 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 1 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 2 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 2 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
|
0:7 Function Call: @main(i1;struct-S-f1-vf41[3]; (temp 4-component vector of float)
|
|
0:? 'i' (temp int)
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:? Linker Objects
|
|
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
|
0:? 'i' (layout(location=0 ) in int)
|
|
0:? 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:? 'input_pos' (in 3-element array of 4-component vector of float FragCoord)
|
|
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
Shader version: 450
|
|
gl_FragCoord origin is upper left
|
|
0:? Sequence
|
|
0:7 Function Definition: @main(i1;struct-S-f1-vf41[3]; (temp 4-component vector of float)
|
|
0:7 Function Parameters:
|
|
0:7 'i' (in int)
|
|
0:7 'input' (in 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:? Sequence
|
|
0:9 move second child to first child (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:9 'input' (in 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:9 'a' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:11 Branch: Return with expression
|
|
0:11 Constant:
|
|
0:11 1.000000
|
|
0:11 1.000000
|
|
0:11 1.000000
|
|
0:7 Function Definition: main( (temp void)
|
|
0:7 Function Parameters:
|
|
0:? Sequence
|
|
0:7 move second child to first child (temp int)
|
|
0:? 'i' (temp int)
|
|
0:? 'i' (layout(location=0 ) in int)
|
|
0:7 Sequence
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 1 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 1 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp float)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (temp structure{temp float f, temp 4-component vector of float pos})
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:7 Constant:
|
|
0:7 2 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 f: direct index for structure (temp float)
|
|
0:7 direct index (layout(location=1 ) in structure{temp float f})
|
|
0:7 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:7 Constant:
|
|
0:7 2 (const int)
|
|
0:7 Constant:
|
|
0:7 0 (const int)
|
|
0:7 move second child to first child (temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
|
0:7 Function Call: @main(i1;struct-S-f1-vf41[3]; (temp 4-component vector of float)
|
|
0:? 'i' (temp int)
|
|
0:? 'input' (temp 3-element array of structure{temp float f, temp 4-component vector of float pos})
|
|
0:? Linker Objects
|
|
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
|
0:? 'i' (layout(location=0 ) in int)
|
|
0:? 'input' (layout(location=1 ) in 3-element array of structure{temp float f})
|
|
0:? 'input_pos' (in 3-element array of 4-component vector of float FragCoord)
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 63
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 32 39 54 62
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Name 4 "main"
|
|
Name 10 "S"
|
|
MemberName 10(S) 0 "f"
|
|
MemberName 10(S) 1 "pos"
|
|
Name 18 "@main(i1;struct-S-f1-vf41[3];"
|
|
Name 16 "i"
|
|
Name 17 "input"
|
|
Name 20 "a"
|
|
Name 30 "i"
|
|
Name 32 "i"
|
|
Name 34 "input"
|
|
Name 36 "S"
|
|
MemberName 36(S) 0 "f"
|
|
Name 39 "input"
|
|
Name 54 "@entryPointOutput"
|
|
Name 55 "param"
|
|
Name 57 "param"
|
|
Name 62 "input_pos"
|
|
Decorate 32(i) Location 0
|
|
Decorate 39(input) Location 1
|
|
Decorate 54(@entryPointOutput) Location 0
|
|
Decorate 62(input_pos) BuiltIn FragCoord
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 1
|
|
7: TypePointer Function 6(int)
|
|
8: TypeFloat 32
|
|
9: TypeVector 8(float) 4
|
|
10(S): TypeStruct 8(float) 9(fvec4)
|
|
11: TypeInt 32 0
|
|
12: 11(int) Constant 3
|
|
13: TypeArray 10(S) 12
|
|
14: TypePointer Function 13
|
|
15: TypeFunction 9(fvec4) 7(ptr) 14(ptr)
|
|
22: TypeVector 8(float) 3
|
|
23: 8(float) Constant 1065353216
|
|
24: 22(fvec3) ConstantComposite 23 23 23
|
|
25: TypePointer Function 9(fvec4)
|
|
31: TypePointer Input 6(int)
|
|
32(i): 31(ptr) Variable Input
|
|
35: 6(int) Constant 0
|
|
36(S): TypeStruct 8(float)
|
|
37: TypeArray 36(S) 12
|
|
38: TypePointer Input 37
|
|
39(input): 38(ptr) Variable Input
|
|
40: TypePointer Input 8(float)
|
|
43: TypePointer Function 8(float)
|
|
45: 6(int) Constant 1
|
|
49: 6(int) Constant 2
|
|
53: TypePointer Output 9(fvec4)
|
|
54(@entryPointOutput): 53(ptr) Variable Output
|
|
60: TypeArray 9(fvec4) 12
|
|
61: TypePointer Input 60
|
|
62(input_pos): 61(ptr) Variable Input
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
30(i): 7(ptr) Variable Function
|
|
34(input): 14(ptr) Variable Function
|
|
55(param): 7(ptr) Variable Function
|
|
57(param): 14(ptr) Variable Function
|
|
33: 6(int) Load 32(i)
|
|
Store 30(i) 33
|
|
41: 40(ptr) AccessChain 39(input) 35 35
|
|
42: 8(float) Load 41
|
|
44: 43(ptr) AccessChain 34(input) 35 35
|
|
Store 44 42
|
|
46: 40(ptr) AccessChain 39(input) 45 35
|
|
47: 8(float) Load 46
|
|
48: 43(ptr) AccessChain 34(input) 45 35
|
|
Store 48 47
|
|
50: 40(ptr) AccessChain 39(input) 49 35
|
|
51: 8(float) Load 50
|
|
52: 43(ptr) AccessChain 34(input) 49 35
|
|
Store 52 51
|
|
56: 6(int) Load 30(i)
|
|
Store 55(param) 56
|
|
58: 13 Load 34(input)
|
|
Store 57(param) 58
|
|
59: 9(fvec4) FunctionCall 18(@main(i1;struct-S-f1-vf41[3];) 55(param) 57(param)
|
|
Store 54(@entryPointOutput) 59
|
|
Return
|
|
FunctionEnd
|
|
18(@main(i1;struct-S-f1-vf41[3];): 9(fvec4) Function None 15
|
|
16(i): 7(ptr) FunctionParameter
|
|
17(input): 14(ptr) FunctionParameter
|
|
19: Label
|
|
20(a): 14(ptr) Variable Function
|
|
26: 25(ptr) Variable Function
|
|
21: 13 Load 20(a)
|
|
Store 17(input) 21
|
|
Store 26 24
|
|
27: 9(fvec4) Load 26
|
|
ReturnValue 27
|
|
FunctionEnd
|