blob: 5f435d01653bafd792095a19373c912042e62f37 [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_1e20f2 "textureStore_1e20f2"
17 OpName %arg_1 "arg_1"
18 OpName %arg_2 "arg_2"
19 OpName %vertex_main_inner "vertex_main_inner"
20 OpName %vertex_main "vertex_main"
21 OpName %fragment_main "fragment_main"
22 OpName %compute_main "compute_main"
23 OpDecorate %value BuiltIn Position
24 OpDecorate %vertex_point_size BuiltIn PointSize
25 OpDecorate %arg_0 NonReadable
26 OpDecorate %arg_0 DescriptorSet 1
27 OpDecorate %arg_0 Binding 0
28 %float = OpTypeFloat 32
29 %v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
31 %5 = OpConstantNull %v4float
32 %value = OpVariable %_ptr_Output_v4float Output %5
33%_ptr_Output_float = OpTypePointer Output %float
34 %8 = OpConstantNull %float
35%vertex_point_size = OpVariable %_ptr_Output_float Output %8
36 %11 = OpTypeImage %float 2D 0 0 0 2 R32f
37%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
38 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
39 %void = OpTypeVoid
40 %12 = OpTypeFunction %void
41 %uint = OpTypeInt 32 0
42 %v2uint = OpTypeVector %uint 2
Ben Clayton4b606152022-11-04 17:06:03 +000043 %uint_1 = OpConstant %uint 1
44 %19 = OpConstantComposite %v2uint %uint_1 %uint_1
Ben Claytonda5424b2022-10-24 23:58:53 +000045%_ptr_Function_v2uint = OpTypePointer Function %v2uint
Ben Clayton4b606152022-11-04 17:06:03 +000046 %22 = OpConstantNull %v2uint
Ben Claytonda5424b2022-10-24 23:58:53 +000047 %float_1 = OpConstant %float 1
Ben Clayton4b606152022-11-04 17:06:03 +000048 %24 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
49%_ptr_Function_v4float = OpTypePointer Function %v4float
50 %31 = OpTypeFunction %v4float
Ben Claytonda5424b2022-10-24 23:58:53 +000051%textureStore_1e20f2 = OpFunction %void None %12
52 %15 = OpLabel
Ben Clayton4b606152022-11-04 17:06:03 +000053 %arg_1 = OpVariable %_ptr_Function_v2uint Function %22
Ben Claytonda5424b2022-10-24 23:58:53 +000054 %arg_2 = OpVariable %_ptr_Function_v4float Function %5
Ben Clayton4b606152022-11-04 17:06:03 +000055 OpStore %arg_1 %19
56 OpStore %arg_2 %24
57 %28 = OpLoad %11 %arg_0
58 %29 = OpLoad %v2uint %arg_1
59 %30 = OpLoad %v4float %arg_2
60 OpImageWrite %28 %29 %30
Ben Claytonda5424b2022-10-24 23:58:53 +000061 OpReturn
62 OpFunctionEnd
Ben Clayton4b606152022-11-04 17:06:03 +000063%vertex_main_inner = OpFunction %v4float None %31
64 %33 = OpLabel
65 %34 = OpFunctionCall %void %textureStore_1e20f2
Ben Claytonda5424b2022-10-24 23:58:53 +000066 OpReturnValue %5
67 OpFunctionEnd
68%vertex_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000069 %36 = OpLabel
70 %37 = OpFunctionCall %v4float %vertex_main_inner
71 OpStore %value %37
Ben Claytonda5424b2022-10-24 23:58:53 +000072 OpStore %vertex_point_size %float_1
73 OpReturn
74 OpFunctionEnd
75%fragment_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000076 %39 = OpLabel
77 %40 = OpFunctionCall %void %textureStore_1e20f2
Ben Claytonda5424b2022-10-24 23:58:53 +000078 OpReturn
79 OpFunctionEnd
80%compute_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000081 %42 = OpLabel
82 %43 = OpFunctionCall %void %textureStore_1e20f2
Ben Claytonda5424b2022-10-24 23:58:53 +000083 OpReturn
84 OpFunctionEnd