blob: bed83f8fc4fe6634dc117947155e59827dee6268 [file] [log] [blame]
James Price077fe642021-06-29 08:45:34 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Antonio Maiorano8800d882022-10-05 01:39:53 +00004; Bound: 34
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_b04721 "select_b04721"
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 %uint = OpTypeInt 32 0
34 %v3uint = OpTypeVector %uint 3
Ben Claytonee36e392022-07-26 14:27:25 +000035 %uint_1 = OpConstant %uint 1
Antonio Maiorano8800d882022-10-05 01:39:53 +000036 %16 = OpConstantComposite %v3uint %uint_1 %uint_1 %uint_1
James Price077fe642021-06-29 08:45:34 +000037%_ptr_Function_v3uint = OpTypePointer Function %v3uint
Antonio Maiorano8800d882022-10-05 01:39:53 +000038 %19 = OpConstantNull %v3uint
39 %20 = OpTypeFunction %v4float
James Price077fe642021-06-29 08:45:34 +000040 %float_1 = OpConstant %float 1
41%select_b04721 = OpFunction %void None %9
42 %12 = OpLabel
Antonio Maiorano8800d882022-10-05 01:39:53 +000043 %res = OpVariable %_ptr_Function_v3uint Function %19
44 OpStore %res %16
James Price077fe642021-06-29 08:45:34 +000045 OpReturn
46 OpFunctionEnd
Antonio Maiorano8800d882022-10-05 01:39:53 +000047%vertex_main_inner = OpFunction %v4float None %20
48 %22 = OpLabel
49 %23 = OpFunctionCall %void %select_b04721
James Price11c6fcd2021-08-05 17:34:19 +000050 OpReturnValue %5
James Price077fe642021-06-29 08:45:34 +000051 OpFunctionEnd
52%vertex_main = OpFunction %void None %9
Antonio Maiorano8800d882022-10-05 01:39:53 +000053 %25 = OpLabel
54 %26 = OpFunctionCall %v4float %vertex_main_inner
55 OpStore %value %26
James Price11c6fcd2021-08-05 17:34:19 +000056 OpStore %vertex_point_size %float_1
James Price077fe642021-06-29 08:45:34 +000057 OpReturn
58 OpFunctionEnd
59%fragment_main = OpFunction %void None %9
Antonio Maiorano8800d882022-10-05 01:39:53 +000060 %29 = OpLabel
61 %30 = OpFunctionCall %void %select_b04721
James Price077fe642021-06-29 08:45:34 +000062 OpReturn
63 OpFunctionEnd
64%compute_main = OpFunction %void None %9
Antonio Maiorano8800d882022-10-05 01:39:53 +000065 %32 = OpLabel
66 %33 = OpFunctionCall %void %select_b04721
James Price077fe642021-06-29 08:45:34 +000067 OpReturn
68 OpFunctionEnd