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