steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 1 | hlsl.emptystructreturn.vert |
John Kessenich | 6fa1764 | 2017-04-07 15:33:08 -0600 | [diff] [blame] | 2 | Shader version: 500 |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 3 | 0:? Sequence |
| 4 | 0:10 Function Definition: @main(struct-vs_in1; ( temp structure{}) |
| 5 | 0:10 Function Parameters: |
| 6 | 0:10 'i' ( in structure{}) |
| 7 | 0:? Sequence |
| 8 | 0:12 Branch: Return with expression |
| 9 | 0:12 'o' ( temp structure{}) |
| 10 | 0:10 Function Definition: main( ( temp void) |
| 11 | 0:10 Function Parameters: |
| 12 | 0:? Sequence |
| 13 | 0:10 Sequence |
| 14 | 0:10 move second child to first child ( temp structure{}) |
| 15 | 0:? 'i' ( temp structure{}) |
| 16 | 0:? 'i' ( in structure{}) |
John Kessenich | b6be80f | 2017-08-04 12:04:44 -0600 | [diff] [blame] | 17 | 0:10 Sequence |
| 18 | 0:10 move second child to first child ( temp structure{}) |
| 19 | 0:? '@entryPointOutput' ( out structure{}) |
| 20 | 0:10 Function Call: @main(struct-vs_in1; ( temp structure{}) |
| 21 | 0:? 'i' ( temp structure{}) |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 22 | 0:? Linker Objects |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 23 | |
| 24 | |
| 25 | Linked vertex stage: |
| 26 | |
| 27 | |
John Kessenich | 6fa1764 | 2017-04-07 15:33:08 -0600 | [diff] [blame] | 28 | Shader version: 500 |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 29 | 0:? Sequence |
| 30 | 0:10 Function Definition: @main(struct-vs_in1; ( temp structure{}) |
| 31 | 0:10 Function Parameters: |
| 32 | 0:10 'i' ( in structure{}) |
| 33 | 0:? Sequence |
| 34 | 0:12 Branch: Return with expression |
| 35 | 0:12 'o' ( temp structure{}) |
| 36 | 0:10 Function Definition: main( ( temp void) |
| 37 | 0:10 Function Parameters: |
| 38 | 0:? Sequence |
| 39 | 0:10 Sequence |
| 40 | 0:10 move second child to first child ( temp structure{}) |
| 41 | 0:? 'i' ( temp structure{}) |
| 42 | 0:? 'i' ( in structure{}) |
John Kessenich | b6be80f | 2017-08-04 12:04:44 -0600 | [diff] [blame] | 43 | 0:10 Sequence |
| 44 | 0:10 move second child to first child ( temp structure{}) |
| 45 | 0:? '@entryPointOutput' ( out structure{}) |
| 46 | 0:10 Function Call: @main(struct-vs_in1; ( temp structure{}) |
| 47 | 0:? 'i' ( temp structure{}) |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 48 | 0:? Linker Objects |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 49 | |
John Kessenich | cc14f2d | 2018-08-22 17:17:07 -0600 | [diff] [blame^] | 50 | error: SPIRV-Tools Validation Errors |
| 51 | error: 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 Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 54 | // Module Version 10000 |
John Kessenich | d6c9755 | 2018-06-04 15:33:31 -0600 | [diff] [blame] | 55 | // Generated by (magic number): 80007 |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 56 | // Id's are bound by 27 |
| 57 | |
| 58 | Capability Shader |
| 59 | 1: ExtInstImport "GLSL.std.450" |
| 60 | MemoryModel Logical GLSL450 |
John Kessenich | 5f77d86 | 2017-09-19 11:09:59 -0600 | [diff] [blame] | 61 | EntryPoint Vertex 4 "main" |
John Kessenich | 6fa1764 | 2017-04-07 15:33:08 -0600 | [diff] [blame] | 62 | Source HLSL 500 |
steve-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 63 | 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-lunarg | d8e34c5 | 2017-03-24 08:56:37 -0600 | [diff] [blame] | 73 | 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) |
| 83 | 23(@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 |
| 96 | 11(@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 |