Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
| 4 | ; Bound: 37 |
| 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 %modf_68d8ee "modf_68d8ee" |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 16 | OpName %__modf_result_vec3_f32 "__modf_result_vec3_f32" |
| 17 | OpMemberName %__modf_result_vec3_f32 0 "fract" |
| 18 | OpMemberName %__modf_result_vec3_f32 1 "whole" |
Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 19 | OpName %res "res" |
| 20 | OpName %vertex_main_inner "vertex_main_inner" |
| 21 | OpName %vertex_main "vertex_main" |
| 22 | OpName %fragment_main "fragment_main" |
| 23 | OpName %compute_main "compute_main" |
| 24 | OpDecorate %value BuiltIn Position |
| 25 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 26 | OpMemberDecorate %__modf_result_vec3_f32 0 Offset 0 |
| 27 | OpMemberDecorate %__modf_result_vec3_f32 1 Offset 16 |
Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 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 | %void = OpTypeVoid |
| 37 | %9 = OpTypeFunction %void |
| 38 | %v3float = OpTypeVector %float 3 |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 39 | %__modf_result_vec3_f32 = OpTypeStruct %v3float %v3float |
Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 40 | %float_n0_5 = OpConstant %float -0.5 |
| 41 | %16 = OpConstantComposite %v3float %float_n0_5 %float_n0_5 %float_n0_5 |
| 42 | %float_n1 = OpConstant %float -1 |
| 43 | %18 = OpConstantComposite %v3float %float_n1 %float_n1 %float_n1 |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 44 | %19 = OpConstantComposite %__modf_result_vec3_f32 %16 %18 |
| 45 | %_ptr_Function___modf_result_vec3_f32 = OpTypePointer Function %__modf_result_vec3_f32 |
| 46 | %22 = OpConstantNull %__modf_result_vec3_f32 |
Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 47 | %23 = OpTypeFunction %v4float |
| 48 | %float_1 = OpConstant %float 1 |
| 49 | %modf_68d8ee = OpFunction %void None %9 |
| 50 | %12 = OpLabel |
Ben Clayton | ed998e9 | 2022-11-23 19:57:00 +0000 | [diff] [blame] | 51 | %res = OpVariable %_ptr_Function___modf_result_vec3_f32 Function %22 |
Ben Clayton | 69c2c34 | 2022-11-23 18:21:38 +0000 | [diff] [blame] | 52 | OpStore %res %19 |
| 53 | OpReturn |
| 54 | OpFunctionEnd |
| 55 | %vertex_main_inner = OpFunction %v4float None %23 |
| 56 | %25 = OpLabel |
| 57 | %26 = OpFunctionCall %void %modf_68d8ee |
| 58 | OpReturnValue %5 |
| 59 | OpFunctionEnd |
| 60 | %vertex_main = OpFunction %void None %9 |
| 61 | %28 = OpLabel |
| 62 | %29 = OpFunctionCall %v4float %vertex_main_inner |
| 63 | OpStore %value %29 |
| 64 | OpStore %vertex_point_size %float_1 |
| 65 | OpReturn |
| 66 | OpFunctionEnd |
| 67 | %fragment_main = OpFunction %void None %9 |
| 68 | %32 = OpLabel |
| 69 | %33 = OpFunctionCall %void %modf_68d8ee |
| 70 | OpReturn |
| 71 | OpFunctionEnd |
| 72 | %compute_main = OpFunction %void None %9 |
| 73 | %35 = OpLabel |
| 74 | %36 = OpFunctionCall %void %modf_68d8ee |
| 75 | OpReturn |
| 76 | OpFunctionEnd |