blob: 414e02e61e30f2e3c89614240655b28bdc335163 [file] [log] [blame]
Ben Clayton69c2c342022-11-23 18:21:38 +00001; 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 Claytoned998e92022-11-23 19:57:00 +000016 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 Clayton69c2c342022-11-23 18:21:38 +000019 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 Claytoned998e92022-11-23 19:57:00 +000026 OpMemberDecorate %__modf_result_vec3_f32 0 Offset 0
27 OpMemberDecorate %__modf_result_vec3_f32 1 Offset 16
Ben Clayton69c2c342022-11-23 18:21:38 +000028 %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 Claytoned998e92022-11-23 19:57:00 +000039%__modf_result_vec3_f32 = OpTypeStruct %v3float %v3float
Ben Clayton69c2c342022-11-23 18:21:38 +000040 %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 Claytoned998e92022-11-23 19:57:00 +000044 %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 Clayton69c2c342022-11-23 18:21:38 +000047 %23 = OpTypeFunction %v4float
48 %float_1 = OpConstant %float 1
49%modf_68d8ee = OpFunction %void None %9
50 %12 = OpLabel
Ben Claytoned998e92022-11-23 19:57:00 +000051 %res = OpVariable %_ptr_Function___modf_result_vec3_f32 Function %22
Ben Clayton69c2c342022-11-23 18:21:38 +000052 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