blob: 3b31f4566b50f43047291744e4c11908a625cdf8 [file] [log] [blame]
Ben Claytonc0af5c52022-06-02 14:36:10 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Ben Clayton329dfd72022-11-23 00:05:05 +00004; Bound: 40
Ben Claytonc0af5c52022-06-02 14:36:10 +00005; Schema: 0
6 OpCapability Shader
Ben Claytonee36e392022-07-26 14:27:25 +00007 %21 = OpExtInstImport "GLSL.std.450"
Ben Claytonc0af5c52022-06-02 14:36:10 +00008 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 Jiang20cddbf2022-08-05 15:11:44 +000016 OpName %modf_2d50da "modf_2d50da"
Ben Claytonc0af5c52022-06-02 14:36:10 +000017 OpName %arg_0 "arg_0"
Ben Claytoned998e92022-11-23 19:57:00 +000018 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 Claytonc0af5c52022-06-02 14:36:10 +000021 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 Claytoned998e92022-11-23 19:57:00 +000028 OpMemberDecorate %__modf_result_vec2_f32 0 Offset 0
29 OpMemberDecorate %__modf_result_vec2_f32 1 Offset 8
Ben Claytonc0af5c52022-06-02 14:36:10 +000030 %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 Clayton329dfd72022-11-23 00:05:05 +000041 %float_n1_5 = OpConstant %float -1.5
42 %15 = OpConstantComposite %v2float %float_n1_5 %float_n1_5
Ben Claytonc0af5c52022-06-02 14:36:10 +000043%_ptr_Function_v2float = OpTypePointer Function %v2float
Ben Claytonee36e392022-07-26 14:27:25 +000044 %18 = OpConstantNull %v2float
Ben Claytoned998e92022-11-23 19:57:00 +000045%__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 Claytonee36e392022-07-26 14:27:25 +000048 %26 = OpTypeFunction %v4float
Ben Clayton329dfd72022-11-23 00:05:05 +000049 %float_1 = OpConstant %float 1
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000050%modf_2d50da = OpFunction %void None %9
Ben Claytonc0af5c52022-06-02 14:36:10 +000051 %12 = OpLabel
Ben Claytonee36e392022-07-26 14:27:25 +000052 %arg_0 = OpVariable %_ptr_Function_v2float Function %18
Ben Claytoned998e92022-11-23 19:57:00 +000053 %res = OpVariable %_ptr_Function___modf_result_vec2_f32 Function %25
Ben Claytonee36e392022-07-26 14:27:25 +000054 OpStore %arg_0 %15
55 %22 = OpLoad %v2float %arg_0
Ben Claytoned998e92022-11-23 19:57:00 +000056 %19 = OpExtInst %__modf_result_vec2_f32 %21 ModfStruct %22
Ben Claytonee36e392022-07-26 14:27:25 +000057 OpStore %res %19
Ben Claytonc0af5c52022-06-02 14:36:10 +000058 OpReturn
59 OpFunctionEnd
Ben Claytonee36e392022-07-26 14:27:25 +000060%vertex_main_inner = OpFunction %v4float None %26
61 %28 = OpLabel
Zhaoming Jiang20cddbf2022-08-05 15:11:44 +000062 %29 = OpFunctionCall %void %modf_2d50da
Ben Claytonc0af5c52022-06-02 14:36:10 +000063 OpReturnValue %5
64 OpFunctionEnd
65%vertex_main = OpFunction %void None %9
Ben Claytonee36e392022-07-26 14:27:25 +000066 %31 = OpLabel
67 %32 = OpFunctionCall %v4float %vertex_main_inner
68 OpStore %value %32
Ben Claytonc0af5c52022-06-02 14:36:10 +000069 OpStore %vertex_point_size %float_1
70 OpReturn
71 OpFunctionEnd
72%fragment_main = OpFunction %void None %9
Ben Clayton329dfd72022-11-23 00:05:05 +000073 %35 = OpLabel
74 %36 = OpFunctionCall %void %modf_2d50da
Ben Claytonc0af5c52022-06-02 14:36:10 +000075 OpReturn
76 OpFunctionEnd
77%compute_main = OpFunction %void None %9
Ben Clayton329dfd72022-11-23 00:05:05 +000078 %38 = OpLabel
79 %39 = OpFunctionCall %void %modf_2d50da
Ben Claytonc0af5c52022-06-02 14:36:10 +000080 OpReturn
81 OpFunctionEnd