blob: ae148ecf87ec8d646101ff2367068e34d98b5fa0 [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 35
Ben Claytonb07a7ce2021-06-03 11:26:17 +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
Ben Claytonb07a7ce2021-06-03 11:26:17 +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"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000015 OpName %isNan_67ecd3 "isNan_67ecd3"
16 OpName %res "res"
James Price11c6fcd2021-08-05 17:34:19 +000017 OpName %vertex_main_inner "vertex_main_inner"
Ben Claytonb07a7ce2021-06-03 11:26:17 +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
Ben Claytonb07a7ce2021-06-03 11:26:17 +000023 %float = OpTypeFloat 32
James Price9fd3bef2021-06-04 17:31:48 +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
Ben Claytonb07a7ce2021-06-03 11:26:17 +000031 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000032 %9 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000033 %bool = OpTypeBool
34 %v2bool = OpTypeVector %bool 2
35 %v2float = OpTypeVector %float 2
James Price9fd3bef2021-06-04 17:31:48 +000036 %17 = OpConstantNull %v2float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000037%_ptr_Function_v2bool = OpTypePointer Function %v2bool
James Price9fd3bef2021-06-04 17:31:48 +000038 %20 = OpConstantNull %v2bool
James Price11c6fcd2021-08-05 17:34:19 +000039 %21 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000040 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000041%isNan_67ecd3 = OpFunction %void None %9
42 %12 = OpLabel
43 %res = OpVariable %_ptr_Function_v2bool Function %20
44 %13 = OpIsNan %v2bool %17
45 OpStore %res %13
Ben Claytonb07a7ce2021-06-03 11:26:17 +000046 OpReturn
47 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000048%vertex_main_inner = OpFunction %v4float None %21
49 %23 = OpLabel
50 %24 = OpFunctionCall %void %isNan_67ecd3
51 OpReturnValue %5
James Price9fd3bef2021-06-04 17:31:48 +000052 OpFunctionEnd
53%vertex_main = OpFunction %void None %9
54 %26 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000055 %27 = OpFunctionCall %v4float %vertex_main_inner
56 OpStore %value %27
57 OpStore %vertex_point_size %float_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000058 OpReturn
59 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000060%fragment_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000061 %30 = OpLabel
62 %31 = OpFunctionCall %void %isNan_67ecd3
Ben Claytonb07a7ce2021-06-03 11:26:17 +000063 OpReturn
64 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000065%compute_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000066 %33 = OpLabel
67 %34 = OpFunctionCall %void %isNan_67ecd3
Ben Claytonb07a7ce2021-06-03 11:26:17 +000068 OpReturn
69 OpFunctionEnd