blob: e5cbdf94dbd594dbf402cf920bbd625fa8572e30 [file] [log] [blame]
Ben Claytonda5424b2022-10-24 23:58:53 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Ben Clayton4b606152022-11-04 17:06:03 +00004; Bound: 44
Ben Claytonda5424b2022-10-24 23:58:53 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
9 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
13 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
15 OpName %arg_0 "arg_0"
16 OpName %textureStore_8bb287 "textureStore_8bb287"
17 OpName %vertex_main_inner "vertex_main_inner"
18 OpName %vertex_main "vertex_main"
19 OpName %fragment_main "fragment_main"
20 OpName %compute_main "compute_main"
21 OpDecorate %value BuiltIn Position
22 OpDecorate %vertex_point_size BuiltIn PointSize
23 OpDecorate %arg_0 NonReadable
24 OpDecorate %arg_0 DescriptorSet 1
25 OpDecorate %arg_0 Binding 0
26 %float = OpTypeFloat 32
27 %v4float = OpTypeVector %float 4
28%_ptr_Output_v4float = OpTypePointer Output %v4float
29 %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 %int = OpTypeInt 32 1
35 %11 = OpTypeImage %int 2D 0 1 0 2 Rgba32i
36%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
37 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
38 %void = OpTypeVoid
39 %13 = OpTypeFunction %void
40 %uint = OpTypeInt 32 0
41 %v3uint = OpTypeVector %uint 3
Ben Clayton4b606152022-11-04 17:06:03 +000042 %v2uint = OpTypeVector %uint 2
Ben Claytonda5424b2022-10-24 23:58:53 +000043 %uint_1 = OpConstant %uint 1
Ben Clayton4b606152022-11-04 17:06:03 +000044 %23 = OpConstantComposite %v2uint %uint_1 %uint_1
Ben Claytonda5424b2022-10-24 23:58:53 +000045 %v4int = OpTypeVector %int 4
Ben Clayton4b606152022-11-04 17:06:03 +000046 %int_1 = OpConstant %int 1
47 %29 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
48 %30 = OpTypeFunction %v4float
Ben Claytonda5424b2022-10-24 23:58:53 +000049 %float_1 = OpConstant %float 1
50%textureStore_8bb287 = OpFunction %void None %13
51 %16 = OpLabel
52 %18 = OpLoad %11 %arg_0
Ben Clayton4b606152022-11-04 17:06:03 +000053 %24 = OpCompositeExtract %uint %23 0
54 %25 = OpCompositeExtract %uint %23 1
55 %26 = OpCompositeConstruct %v3uint %24 %25 %uint_1
56 OpImageWrite %18 %26 %29
Ben Claytonda5424b2022-10-24 23:58:53 +000057 OpReturn
58 OpFunctionEnd
Ben Clayton4b606152022-11-04 17:06:03 +000059%vertex_main_inner = OpFunction %v4float None %30
60 %32 = OpLabel
61 %33 = OpFunctionCall %void %textureStore_8bb287
Ben Claytonda5424b2022-10-24 23:58:53 +000062 OpReturnValue %5
63 OpFunctionEnd
64%vertex_main = OpFunction %void None %13
Ben Clayton4b606152022-11-04 17:06:03 +000065 %35 = OpLabel
66 %36 = OpFunctionCall %v4float %vertex_main_inner
67 OpStore %value %36
Ben Claytonda5424b2022-10-24 23:58:53 +000068 OpStore %vertex_point_size %float_1
69 OpReturn
70 OpFunctionEnd
71%fragment_main = OpFunction %void None %13
Ben Clayton4b606152022-11-04 17:06:03 +000072 %39 = OpLabel
73 %40 = OpFunctionCall %void %textureStore_8bb287
Ben Claytonda5424b2022-10-24 23:58:53 +000074 OpReturn
75 OpFunctionEnd
76%compute_main = OpFunction %void None %13
Ben Clayton4b606152022-11-04 17:06:03 +000077 %42 = OpLabel
78 %43 = OpFunctionCall %void %textureStore_8bb287
Ben Claytonda5424b2022-10-24 23:58:53 +000079 OpReturn
80 OpFunctionEnd