blob: 4edf662b6159a3e0809a1ebd20917c7f4cbf6c94 [file] [log] [blame]
James Price1ffc5982023-08-11 00:45:54 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 41
5; 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_c06463 "textureStore_c06463"
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 DescriptorSet 1
24 OpDecorate %arg_0 Binding 0
25 %float = OpTypeFloat 32
26 %v4float = OpTypeVector %float 4
27%_ptr_Output_v4float = OpTypePointer Output %v4float
28 %5 = OpConstantNull %v4float
29 %value = OpVariable %_ptr_Output_v4float Output %5
30%_ptr_Output_float = OpTypePointer Output %float
31 %8 = OpConstantNull %float
32%vertex_point_size = OpVariable %_ptr_Output_float Output %8
33 %11 = OpTypeImage %float 2D 0 1 0 2 Rgba8
34%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
35 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
36 %void = OpTypeVoid
37 %12 = OpTypeFunction %void
38 %int = OpTypeInt 32 1
39 %v3int = OpTypeVector %int 3
40 %v2int = OpTypeVector %int 2
41 %int_1 = OpConstant %int 1
42 %22 = OpConstantComposite %v2int %int_1 %int_1
43 %float_1 = OpConstant %float 1
44 %27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
45 %28 = OpTypeFunction %v4float
46%textureStore_c06463 = OpFunction %void None %12
47 %15 = OpLabel
48 %17 = OpLoad %11 %arg_0
49 %23 = OpCompositeExtract %int %22 0
50 %24 = OpCompositeExtract %int %22 1
51 %25 = OpCompositeConstruct %v3int %23 %24 %int_1
52 OpImageWrite %17 %25 %27
53 OpReturn
54 OpFunctionEnd
55%vertex_main_inner = OpFunction %v4float None %28
56 %30 = OpLabel
57 %31 = OpFunctionCall %void %textureStore_c06463
58 OpReturnValue %5
59 OpFunctionEnd
60%vertex_main = OpFunction %void None %12
61 %33 = OpLabel
62 %34 = OpFunctionCall %v4float %vertex_main_inner
63 OpStore %value %34
64 OpStore %vertex_point_size %float_1
65 OpReturn
66 OpFunctionEnd
67%fragment_main = OpFunction %void None %12
68 %36 = OpLabel
69 %37 = OpFunctionCall %void %textureStore_c06463
70 OpReturn
71 OpFunctionEnd
72%compute_main = OpFunction %void None %12
73 %39 = OpLabel
74 %40 = OpFunctionCall %void %textureStore_c06463
75 OpReturn
76 OpFunctionEnd