Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 4 | ; Bound: 40 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability StorageImageExtendedFormats |
| 8 | OpMemoryModel Logical GLSL450 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 9 | OpEntryPoint Vertex %vertex_main "vertex_main" %tint_pointsize %tint_symbol_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 10 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 11 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 12 | OpExecutionMode %fragment_main OriginUpperLeft |
| 13 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 14 | OpName %tint_pointsize "tint_pointsize" |
| 15 | OpName %arg_0 "arg_0" |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 16 | OpName %tint_symbol_1 "tint_symbol_1" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 17 | OpName %textureStore_f9be83 "textureStore_f9be83" |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 18 | OpName %tint_symbol_2 "tint_symbol_2" |
| 19 | OpName %tint_symbol "tint_symbol" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 20 | OpName %vertex_main "vertex_main" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
| 23 | OpDecorate %tint_pointsize BuiltIn PointSize |
| 24 | OpDecorate %arg_0 NonReadable |
| 25 | OpDecorate %arg_0 DescriptorSet 1 |
| 26 | OpDecorate %arg_0 Binding 0 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 27 | OpDecorate %tint_symbol_1 BuiltIn Position |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 28 | %float = OpTypeFloat 32 |
| 29 | %_ptr_Output_float = OpTypePointer Output %float |
| 30 | %4 = OpConstantNull %float |
| 31 | %tint_pointsize = OpVariable %_ptr_Output_float Output %4 |
| 32 | %int = OpTypeInt 32 1 |
| 33 | %7 = OpTypeImage %int 2D 0 1 0 2 Rg32i |
| 34 | %_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| 35 | %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 36 | %v4float = OpTypeVector %float 4 |
| 37 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 38 | %12 = OpConstantNull %v4float |
| 39 | %tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %12 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 40 | %void = OpTypeVoid |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 41 | %13 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 42 | %v3int = OpTypeVector %int 3 |
Ben Clayton | 55ca24e | 2021-06-03 15:08:14 +0000 | [diff] [blame] | 43 | %int_0 = OpConstant %int 0 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 44 | %int_1 = OpConstant %int 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 45 | %22 = OpConstantComposite %v3int %int_0 %int_0 %int_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 46 | %v4int = OpTypeVector %int 4 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 47 | %24 = OpConstantNull %v4int |
| 48 | %25 = OpTypeFunction %void %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 49 | %float_1 = OpConstant %float 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 50 | %textureStore_f9be83 = OpFunction %void None %13 |
| 51 | %16 = OpLabel |
| 52 | %18 = OpLoad %7 %arg_0 |
| 53 | OpImageWrite %18 %22 %24 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 54 | OpReturn |
| 55 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 56 | %tint_symbol_2 = OpFunction %void None %25 |
| 57 | %tint_symbol = OpFunctionParameter %v4float |
| 58 | %28 = OpLabel |
| 59 | OpStore %tint_symbol_1 %tint_symbol |
| 60 | OpReturn |
| 61 | OpFunctionEnd |
| 62 | %vertex_main = OpFunction %void None %13 |
| 63 | %30 = OpLabel |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 64 | OpStore %tint_pointsize %float_1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 65 | %32 = OpFunctionCall %void %textureStore_f9be83 |
| 66 | %33 = OpFunctionCall %void %tint_symbol_2 %12 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 67 | OpReturn |
| 68 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 69 | %fragment_main = OpFunction %void None %13 |
| 70 | %35 = OpLabel |
| 71 | %36 = OpFunctionCall %void %textureStore_f9be83 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 72 | OpReturn |
| 73 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 74 | %compute_main = OpFunction %void None %13 |
| 75 | %38 = OpLabel |
| 76 | %39 = OpFunctionCall %void %textureStore_f9be83 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 77 | OpReturn |
| 78 | OpFunctionEnd |