qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 1 | spv.specConstantComposite.vert |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | d6c9755 | 2018-06-04 15:33:31 -0600 | [diff] [blame] | 3 | // Generated by (magic number): 80007 |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 4 | // Id's are bound by 43 |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 5 | |
| 6 | Capability Shader |
| 7 | Capability Float64 |
| 8 | 1: ExtInstImport "GLSL.std.450" |
| 9 | MemoryModel Logical GLSL450 |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 10 | EntryPoint Vertex 4 "main" 27 42 |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 11 | Source GLSL 450 |
| 12 | Name 4 "main" |
| 13 | Name 6 "refer_primary_spec_const(" |
| 14 | Name 8 "refer_composite_spec_const(" |
| 15 | Name 10 "refer_copmosite_dot_dereference(" |
| 16 | Name 12 "refer_composite_bracket_dereference(" |
| 17 | Name 16 "refer_spec_const_array_length(" |
| 18 | Name 18 "declare_spec_const_in_func(" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 19 | Name 21 "spec_bool" |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 20 | Name 27 "color" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 21 | Name 28 "spec_int" |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 22 | Name 33 "len" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 23 | Name 37 "spec_float" |
| 24 | Name 39 "spec_double" |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 25 | Name 42 "global_vec4_array_with_spec_length" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 26 | Decorate 21(spec_bool) SpecId 203 |
| 27 | Decorate 28(spec_int) SpecId 200 |
| 28 | Decorate 37(spec_float) SpecId 201 |
| 29 | Decorate 39(spec_double) SpecId 202 |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 30 | 2: TypeVoid |
| 31 | 3: TypeFunction 2 |
| 32 | 14: TypeInt 32 1 |
| 33 | 15: TypeFunction 14(int) |
| 34 | 20: TypeBool |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 35 | 21(spec_bool): 20(bool) SpecConstantTrue |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 36 | 24: TypeFloat 32 |
| 37 | 25: TypeVector 24(float) 4 |
| 38 | 26: TypePointer Output 25(fvec4) |
| 39 | 27(color): 26(ptr) Variable Output |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 40 | 28(spec_int): 14(int) SpecConstant 3 |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 41 | 32: TypePointer Function 14(int) |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 42 | 37(spec_float): 24(float) SpecConstant 1078523331 |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 43 | 38: TypeFloat 64 |
Jeff Bolz | af7a948 | 2018-05-22 23:13:30 -0500 | [diff] [blame] | 44 | 39(spec_double):38(float64_t) SpecConstant 1413754136 1074340347 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 45 | 40: TypeArray 25(fvec4) 28(spec_int) |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 46 | 41: TypePointer Input 40 |
| 47 | 42(global_vec4_array_with_spec_length): 41(ptr) Variable Input |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 48 | 4(main): 2 Function None 3 |
| 49 | 5: Label |
| 50 | Return |
| 51 | FunctionEnd |
| 52 | 6(refer_primary_spec_const(): 2 Function None 3 |
| 53 | 7: Label |
| 54 | SelectionMerge 23 None |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 55 | BranchConditional 21(spec_bool) 22 23 |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 56 | 22: Label |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 57 | 29: 24(float) ConvertSToF 28(spec_int) |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 58 | 30: 25(fvec4) Load 27(color) |
| 59 | 31: 25(fvec4) VectorTimesScalar 30 29 |
| 60 | Store 27(color) 31 |
| 61 | Branch 23 |
| 62 | 23: Label |
| 63 | Return |
| 64 | FunctionEnd |
| 65 | 8(refer_composite_spec_const(): 2 Function None 3 |
| 66 | 9: Label |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 67 | Return |
| 68 | FunctionEnd |
| 69 | 10(refer_copmosite_dot_dereference(): 2 Function None 3 |
| 70 | 11: Label |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 71 | Return |
| 72 | FunctionEnd |
| 73 | 12(refer_composite_bracket_dereference(): 2 Function None 3 |
| 74 | 13: Label |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 75 | Return |
| 76 | FunctionEnd |
| 77 | 16(refer_spec_const_array_length(): 14(int) Function None 15 |
| 78 | 17: Label |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 79 | 33(len): 32(ptr) Variable Function |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 80 | Store 33(len) 28(spec_int) |
John Kessenich | d82c906 | 2016-05-23 16:07:07 -0600 | [diff] [blame] | 81 | 34: 14(int) Load 33(len) |
| 82 | ReturnValue 34 |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 83 | FunctionEnd |
| 84 | 18(declare_spec_const_in_func(): 2 Function None 3 |
| 85 | 19: Label |
qining | 0840838 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 86 | Return |
| 87 | FunctionEnd |