blob: 71a76039c5651c212c0b70bb78fc350e38d3a643 [file] [log] [blame]
James Price077fe642021-06-29 08:45:34 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 39
James Price077fe642021-06-29 08:45:34 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
James Price077fe642021-06-29 08:45:34 +00009 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
James Price11c6fcd2021-08-05 17:34:19 +000013 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
James Price077fe642021-06-29 08:45:34 +000015 OpName %select_78be5f "select_78be5f"
16 OpName %res "res"
James Price11c6fcd2021-08-05 17:34:19 +000017 OpName %vertex_main_inner "vertex_main_inner"
James Price077fe642021-06-29 08:45:34 +000018 OpName %vertex_main "vertex_main"
19 OpName %fragment_main "fragment_main"
20 OpName %compute_main "compute_main"
James Price11c6fcd2021-08-05 17:34:19 +000021 OpDecorate %value BuiltIn Position
22 OpDecorate %vertex_point_size BuiltIn PointSize
James Price077fe642021-06-29 08:45:34 +000023 %float = OpTypeFloat 32
James Price077fe642021-06-29 08:45:34 +000024 %v4float = OpTypeVector %float 4
25%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000026 %5 = OpConstantNull %v4float
27 %value = OpVariable %_ptr_Output_v4float Output %5
28%_ptr_Output_float = OpTypePointer Output %float
29 %8 = OpConstantNull %float
30%vertex_point_size = OpVariable %_ptr_Output_float Output %8
James Price077fe642021-06-29 08:45:34 +000031 %void = OpTypeVoid
32 %9 = OpTypeFunction %void
33 %v3float = OpTypeVector %float 3
34 %bool = OpTypeBool
35 %16 = OpConstantNull %bool
36 %17 = OpConstantNull %v3float
37 %v3bool = OpTypeVector %bool 3
38%_ptr_Function_v3bool = OpTypePointer Function %v3bool
39 %21 = OpConstantNull %v3bool
40%_ptr_Function_v3float = OpTypePointer Function %v3float
James Price11c6fcd2021-08-05 17:34:19 +000041 %25 = OpTypeFunction %v4float
James Price077fe642021-06-29 08:45:34 +000042 %float_1 = OpConstant %float 1
43%select_78be5f = OpFunction %void None %9
44 %12 = OpLabel
45 %19 = OpVariable %_ptr_Function_v3bool Function %21
46 %res = OpVariable %_ptr_Function_v3float Function %17
47 %22 = OpCompositeConstruct %v3bool %16 %16 %16
48 %13 = OpSelect %v3float %22 %17 %17
49 OpStore %res %13
50 OpReturn
51 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000052%vertex_main_inner = OpFunction %v4float None %25
53 %27 = OpLabel
54 %28 = OpFunctionCall %void %select_78be5f
55 OpReturnValue %5
James Price077fe642021-06-29 08:45:34 +000056 OpFunctionEnd
57%vertex_main = OpFunction %void None %9
58 %30 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000059 %31 = OpFunctionCall %v4float %vertex_main_inner
60 OpStore %value %31
61 OpStore %vertex_point_size %float_1
James Price077fe642021-06-29 08:45:34 +000062 OpReturn
63 OpFunctionEnd
64%fragment_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000065 %34 = OpLabel
66 %35 = OpFunctionCall %void %select_78be5f
James Price077fe642021-06-29 08:45:34 +000067 OpReturn
68 OpFunctionEnd
69%compute_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000070 %37 = OpLabel
71 %38 = OpFunctionCall %void %select_78be5f
James Price077fe642021-06-29 08:45:34 +000072 OpReturn
73 OpFunctionEnd