Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 4 | ; Bound: 40 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 7 | %21 = OpExtInstImport "GLSL.std.450" |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 8 | OpMemoryModel Logical GLSL450 |
| 9 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 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 %value "value" |
| 15 | OpName %vertex_point_size "vertex_point_size" |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 16 | OpName %modf_2d50da "modf_2d50da" |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 17 | OpName %arg_0 "arg_0" |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 18 | OpName %__modf_result_vec2_f32 "__modf_result_vec2_f32" |
| 19 | OpMemberName %__modf_result_vec2_f32 0 "fract" |
| 20 | OpMemberName %__modf_result_vec2_f32 1 "whole" |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 21 | OpName %res "res" |
| 22 | OpName %vertex_main_inner "vertex_main_inner" |
| 23 | OpName %vertex_main "vertex_main" |
| 24 | OpName %fragment_main "fragment_main" |
| 25 | OpName %compute_main "compute_main" |
| 26 | OpDecorate %value BuiltIn Position |
| 27 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 28 | OpMemberDecorate %__modf_result_vec2_f32 0 Offset 0 |
| 29 | OpMemberDecorate %__modf_result_vec2_f32 1 Offset 8 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 30 | %float = OpTypeFloat 32 |
| 31 | %v4float = OpTypeVector %float 4 |
| 32 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 33 | %5 = OpConstantNull %v4float |
| 34 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 35 | %_ptr_Output_float = OpTypePointer Output %float |
| 36 | %8 = OpConstantNull %float |
| 37 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| 38 | %void = OpTypeVoid |
| 39 | %9 = OpTypeFunction %void |
| 40 | %v2float = OpTypeVector %float 2 |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 41 | %float_n1_5 = OpConstant %float -1.5 |
| 42 | %15 = OpConstantComposite %v2float %float_n1_5 %float_n1_5 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 43 | %_ptr_Function_v2float = OpTypePointer Function %v2float |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 44 | %18 = OpConstantNull %v2float |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 45 | %__modf_result_vec2_f32 = OpTypeStruct %v2float %v2float |
| 46 | %_ptr_Function___modf_result_vec2_f32 = OpTypePointer Function %__modf_result_vec2_f32 |
| 47 | %25 = OpConstantNull %__modf_result_vec2_f32 |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 48 | %26 = OpTypeFunction %v4float |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 49 | %float_1 = OpConstant %float 1 |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 50 | %modf_2d50da = OpFunction %void None %9 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 51 | %12 = OpLabel |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 52 | %arg_0 = OpVariable %_ptr_Function_v2float Function %18 |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 53 | %res = OpVariable %_ptr_Function___modf_result_vec2_f32 Function %25 |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 54 | OpStore %arg_0 %15 |
| 55 | %22 = OpLoad %v2float %arg_0 |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 56 | %19 = OpExtInst %__modf_result_vec2_f32 %21 ModfStruct %22 |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 57 | OpStore %res %19 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 58 | OpReturn |
| 59 | OpFunctionEnd |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 60 | %vertex_main_inner = OpFunction %v4float None %26 |
| 61 | %28 = OpLabel |
Zhaoming Jiang | 20cddbf | 2022-08-05 15:11:44 +0000 | [diff] [blame] | 62 | %29 = OpFunctionCall %void %modf_2d50da |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 63 | OpReturnValue %5 |
| 64 | OpFunctionEnd |
| 65 | %vertex_main = OpFunction %void None %9 |
Ben Clayton | ee36e39 | 2022-07-26 14:27:25 +0000 | [diff] [blame] | 66 | %31 = OpLabel |
| 67 | %32 = OpFunctionCall %v4float %vertex_main_inner |
| 68 | OpStore %value %32 |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 69 | OpStore %vertex_point_size %float_1 |
| 70 | OpReturn |
| 71 | OpFunctionEnd |
| 72 | %fragment_main = OpFunction %void None %9 |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 73 | %35 = OpLabel |
| 74 | %36 = OpFunctionCall %void %modf_2d50da |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 75 | OpReturn |
| 76 | OpFunctionEnd |
| 77 | %compute_main = OpFunction %void None %9 |
Ben Clayton | 329dfd7 | 2022-11-23 00:05:05 +0000 | [diff] [blame] | 78 | %38 = OpLabel |
| 79 | %39 = OpFunctionCall %void %modf_2d50da |
Ben Clayton | c0af5c5 | 2022-06-02 14:36:10 +0000 | [diff] [blame] | 80 | OpReturn |
| 81 | OpFunctionEnd |