Ben Clayton | da5424b | 2022-10-24 23:58:53 +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: 44 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 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 |
| 13 | OpName %value "value" |
| 14 | OpName %vertex_point_size "vertex_point_size" |
| 15 | OpName %arg_0 "arg_0" |
| 16 | OpName %textureStore_1e20f2 "textureStore_1e20f2" |
| 17 | OpName %arg_1 "arg_1" |
| 18 | OpName %arg_2 "arg_2" |
| 19 | OpName %vertex_main_inner "vertex_main_inner" |
| 20 | OpName %vertex_main "vertex_main" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
| 23 | OpDecorate %value BuiltIn Position |
| 24 | OpDecorate %vertex_point_size BuiltIn PointSize |
| 25 | OpDecorate %arg_0 NonReadable |
| 26 | OpDecorate %arg_0 DescriptorSet 1 |
| 27 | OpDecorate %arg_0 Binding 0 |
| 28 | %float = OpTypeFloat 32 |
| 29 | %v4float = OpTypeVector %float 4 |
| 30 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 31 | %5 = OpConstantNull %v4float |
| 32 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 33 | %_ptr_Output_float = OpTypePointer Output %float |
| 34 | %8 = OpConstantNull %float |
| 35 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| 36 | %11 = OpTypeImage %float 2D 0 0 0 2 R32f |
| 37 | %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 38 | %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant |
| 39 | %void = OpTypeVoid |
| 40 | %12 = OpTypeFunction %void |
| 41 | %uint = OpTypeInt 32 0 |
| 42 | %v2uint = OpTypeVector %uint 2 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 43 | %uint_1 = OpConstant %uint 1 |
| 44 | %19 = OpConstantComposite %v2uint %uint_1 %uint_1 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 45 | %_ptr_Function_v2uint = OpTypePointer Function %v2uint |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 46 | %22 = OpConstantNull %v2uint |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 47 | %float_1 = OpConstant %float 1 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 48 | %24 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 49 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 50 | %31 = OpTypeFunction %v4float |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 51 | %textureStore_1e20f2 = OpFunction %void None %12 |
| 52 | %15 = OpLabel |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 53 | %arg_1 = OpVariable %_ptr_Function_v2uint Function %22 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 54 | %arg_2 = OpVariable %_ptr_Function_v4float Function %5 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 55 | OpStore %arg_1 %19 |
| 56 | OpStore %arg_2 %24 |
| 57 | %28 = OpLoad %11 %arg_0 |
| 58 | %29 = OpLoad %v2uint %arg_1 |
| 59 | %30 = OpLoad %v4float %arg_2 |
| 60 | OpImageWrite %28 %29 %30 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 61 | OpReturn |
| 62 | OpFunctionEnd |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 63 | %vertex_main_inner = OpFunction %v4float None %31 |
| 64 | %33 = OpLabel |
| 65 | %34 = OpFunctionCall %void %textureStore_1e20f2 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 66 | OpReturnValue %5 |
| 67 | OpFunctionEnd |
| 68 | %vertex_main = OpFunction %void None %12 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 69 | %36 = OpLabel |
| 70 | %37 = OpFunctionCall %v4float %vertex_main_inner |
| 71 | OpStore %value %37 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 72 | OpStore %vertex_point_size %float_1 |
| 73 | OpReturn |
| 74 | OpFunctionEnd |
| 75 | %fragment_main = OpFunction %void None %12 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 76 | %39 = OpLabel |
| 77 | %40 = OpFunctionCall %void %textureStore_1e20f2 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 78 | OpReturn |
| 79 | OpFunctionEnd |
| 80 | %compute_main = OpFunction %void None %12 |
Ben Clayton | 4b60615 | 2022-11-04 17:06:03 +0000 | [diff] [blame] | 81 | %42 = OpLabel |
| 82 | %43 = OpFunctionCall %void %textureStore_1e20f2 |
Ben Clayton | da5424b | 2022-10-24 23:58:53 +0000 | [diff] [blame] | 83 | OpReturn |
| 84 | OpFunctionEnd |