blob: 61704586f475148e62becd4ffb33e8c10c107507 [file] [log] [blame]
steve-lunargd8e34c52017-03-24 08:56:37 -06001hlsl.emptystructreturn.vert
John Kessenich6fa17642017-04-07 15:33:08 -06002Shader version: 500
steve-lunargd8e34c52017-03-24 08:56:37 -060030:? Sequence
40:10 Function Definition: @main(struct-vs_in1; ( temp structure{})
50:10 Function Parameters:
60:10 'i' ( in structure{})
70:? Sequence
80:12 Branch: Return with expression
90:12 'o' ( temp structure{})
100:10 Function Definition: main( ( temp void)
110:10 Function Parameters:
120:? Sequence
130:10 Sequence
140:10 move second child to first child ( temp structure{})
150:? 'i' ( temp structure{})
160:? 'i' ( in structure{})
John Kessenichb6be80f2017-08-04 12:04:44 -0600170:10 Sequence
180:10 move second child to first child ( temp structure{})
190:? '@entryPointOutput' ( out structure{})
200:10 Function Call: @main(struct-vs_in1; ( temp structure{})
210:? 'i' ( temp structure{})
steve-lunargd8e34c52017-03-24 08:56:37 -0600220:? Linker Objects
steve-lunargd8e34c52017-03-24 08:56:37 -060023
24
25Linked vertex stage:
26
27
John Kessenich6fa17642017-04-07 15:33:08 -060028Shader version: 500
steve-lunargd8e34c52017-03-24 08:56:37 -0600290:? Sequence
300:10 Function Definition: @main(struct-vs_in1; ( temp structure{})
310:10 Function Parameters:
320:10 'i' ( in structure{})
330:? Sequence
340:12 Branch: Return with expression
350:12 'o' ( temp structure{})
360:10 Function Definition: main( ( temp void)
370:10 Function Parameters:
380:? Sequence
390:10 Sequence
400:10 move second child to first child ( temp structure{})
410:? 'i' ( temp structure{})
420:? 'i' ( in structure{})
John Kessenichb6be80f2017-08-04 12:04:44 -0600430:10 Sequence
440:10 move second child to first child ( temp structure{})
450:? '@entryPointOutput' ( out structure{})
460:10 Function Call: @main(struct-vs_in1; ( temp structure{})
470:? 'i' ( temp structure{})
steve-lunargd8e34c52017-03-24 08:56:37 -0600480:? Linker Objects
steve-lunargd8e34c52017-03-24 08:56:37 -060049
John Kessenichcc14f2d2018-08-22 17:17:07 -060050error: SPIRV-Tools Validation Errors
51error: Input variable id <20> is used by entry point 'main' id <4>, but is not listed as an interface
52 %i_1 = OpVariable %_ptr_Input_vs_in Input
53
John Kessenich2b5ea9f2018-01-31 18:35:56 -070054// Module Version 10000
John Kessenichd6c97552018-06-04 15:33:31 -060055// Generated by (magic number): 80007
steve-lunargd8e34c52017-03-24 08:56:37 -060056// Id's are bound by 27
57
58 Capability Shader
59 1: ExtInstImport "GLSL.std.450"
60 MemoryModel Logical GLSL450
John Kessenich5f77d862017-09-19 11:09:59 -060061 EntryPoint Vertex 4 "main"
John Kessenich6fa17642017-04-07 15:33:08 -060062 Source HLSL 500
steve-lunargd8e34c52017-03-24 08:56:37 -060063 Name 4 "main"
64 Name 6 "vs_in"
65 Name 8 "vs_out"
66 Name 11 "@main(struct-vs_in1;"
67 Name 10 "i"
68 Name 14 "o"
69 Name 18 "i"
70 Name 20 "i"
71 Name 23 "@entryPointOutput"
72 Name 24 "param"
steve-lunargd8e34c52017-03-24 08:56:37 -060073 2: TypeVoid
74 3: TypeFunction 2
75 6(vs_in): TypeStruct
76 7: TypePointer Function 6(vs_in)
77 8(vs_out): TypeStruct
78 9: TypeFunction 8(vs_out) 7(ptr)
79 13: TypePointer Function 8(vs_out)
80 19: TypePointer Input 6(vs_in)
81 20(i): 19(ptr) Variable Input
82 22: TypePointer Output 8(vs_out)
8323(@entryPointOutput): 22(ptr) Variable Output
84 4(main): 2 Function None 3
85 5: Label
86 18(i): 7(ptr) Variable Function
87 24(param): 7(ptr) Variable Function
88 21: 6(vs_in) Load 20(i)
89 Store 18(i) 21
90 25: 6(vs_in) Load 18(i)
91 Store 24(param) 25
92 26: 8(vs_out) FunctionCall 11(@main(struct-vs_in1;) 24(param)
93 Store 23(@entryPointOutput) 26
94 Return
95 FunctionEnd
9611(@main(struct-vs_in1;): 8(vs_out) Function None 9
97 10(i): 7(ptr) FunctionParameter
98 12: Label
99 14(o): 13(ptr) Variable Function
100 15: 8(vs_out) Load 14(o)
101 ReturnValue 15
102 FunctionEnd