blob: 8e80a59ab0f701f73c5ce3be6e0ebe082766f023 [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: 38
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 %arg_0 "arg_0"
16 OpName %textureStore_6cff2e "textureStore_6cff2e"
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 OpDecorate %arg_0 NonReadable
24 OpDecorate %arg_0 DescriptorSet 1
25 OpDecorate %arg_0 Binding 0
26 %float = OpTypeFloat 32
James Price9fd3bef2021-06-04 17:31:48 +000027 %v4float = OpTypeVector %float 4
28%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000029 %5 = OpConstantNull %v4float
30 %value = OpVariable %_ptr_Output_v4float Output %5
31%_ptr_Output_float = OpTypePointer Output %float
32 %8 = OpConstantNull %float
33%vertex_point_size = OpVariable %_ptr_Output_float Output %8
34 %uint = OpTypeInt 32 0
35 %11 = OpTypeImage %uint 2D 0 0 0 2 R32ui
36%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
37 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
Ben Claytonb07a7ce2021-06-03 11:26:17 +000038 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000039 %13 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000040 %int = OpTypeInt 32 1
41 %v2int = OpTypeVector %int 2
James Price9fd3bef2021-06-04 17:31:48 +000042 %21 = OpConstantNull %v2int
Ben Claytonb07a7ce2021-06-03 11:26:17 +000043 %v4uint = OpTypeVector %uint 4
James Price9fd3bef2021-06-04 17:31:48 +000044 %23 = OpConstantNull %v4uint
James Price11c6fcd2021-08-05 17:34:19 +000045 %24 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000046 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000047%textureStore_6cff2e = OpFunction %void None %13
48 %16 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000049 %18 = OpLoad %11 %arg_0
James Price9fd3bef2021-06-04 17:31:48 +000050 OpImageWrite %18 %21 %23
Ben Claytonb07a7ce2021-06-03 11:26:17 +000051 OpReturn
52 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000053%vertex_main_inner = OpFunction %v4float None %24
54 %26 = OpLabel
55 %27 = OpFunctionCall %void %textureStore_6cff2e
56 OpReturnValue %5
James Price9fd3bef2021-06-04 17:31:48 +000057 OpFunctionEnd
58%vertex_main = OpFunction %void None %13
59 %29 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000060 %30 = OpFunctionCall %v4float %vertex_main_inner
61 OpStore %value %30
62 OpStore %vertex_point_size %float_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000063 OpReturn
64 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000065%fragment_main = OpFunction %void None %13
James Price11c6fcd2021-08-05 17:34:19 +000066 %33 = OpLabel
67 %34 = OpFunctionCall %void %textureStore_6cff2e
Ben Claytonb07a7ce2021-06-03 11:26:17 +000068 OpReturn
69 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000070%compute_main = OpFunction %void None %13
James Price11c6fcd2021-08-05 17:34:19 +000071 %36 = OpLabel
72 %37 = OpFunctionCall %void %textureStore_6cff2e
Ben Claytonb07a7ce2021-06-03 11:26:17 +000073 OpReturn
74 OpFunctionEnd