blob: e517f8c32d8b99720a8dd6caecce882d03a1c445 [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price9fd3bef2021-06-04 17:31:48 +00004; Bound: 35
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability Image1D
8 OpMemoryModel Logical GLSL450
James Price9fd3bef2021-06-04 17:31:48 +00009 OpEntryPoint Vertex %vertex_main "vertex_main" %tint_pointsize %tint_symbol_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000010 OpEntryPoint Fragment %fragment_main "fragment_main"
11 OpEntryPoint GLCompute %compute_main "compute_main"
12 OpExecutionMode %fragment_main OriginUpperLeft
13 OpExecutionMode %compute_main LocalSize 1 1 1
14 OpName %tint_pointsize "tint_pointsize"
15 OpName %arg_0 "arg_0"
James Price9fd3bef2021-06-04 17:31:48 +000016 OpName %tint_symbol_1 "tint_symbol_1"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000017 OpName %textureStore_2ed2a3 "textureStore_2ed2a3"
James Price9fd3bef2021-06-04 17:31:48 +000018 OpName %tint_symbol_2 "tint_symbol_2"
19 OpName %tint_symbol "tint_symbol"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000020 OpName %vertex_main "vertex_main"
21 OpName %fragment_main "fragment_main"
22 OpName %compute_main "compute_main"
23 OpDecorate %tint_pointsize BuiltIn PointSize
24 OpDecorate %arg_0 NonReadable
25 OpDecorate %arg_0 DescriptorSet 1
26 OpDecorate %arg_0 Binding 0
James Price9fd3bef2021-06-04 17:31:48 +000027 OpDecorate %tint_symbol_1 BuiltIn Position
Ben Claytonb07a7ce2021-06-03 11:26:17 +000028 %float = OpTypeFloat 32
29%_ptr_Output_float = OpTypePointer Output %float
30 %4 = OpConstantNull %float
31%tint_pointsize = OpVariable %_ptr_Output_float Output %4
32 %7 = OpTypeImage %float 1D 0 0 0 2 Rgba8Snorm
33%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
34 %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
James Price9fd3bef2021-06-04 17:31:48 +000035 %v4float = OpTypeVector %float 4
36%_ptr_Output_v4float = OpTypePointer Output %v4float
37 %11 = OpConstantNull %v4float
38%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %11
Ben Claytonb07a7ce2021-06-03 11:26:17 +000039 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000040 %12 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000041 %int = OpTypeInt 32 1
42 %int_1 = OpConstant %int 1
James Price9fd3bef2021-06-04 17:31:48 +000043 %20 = OpTypeFunction %void %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000044 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000045%textureStore_2ed2a3 = OpFunction %void None %12
46 %15 = OpLabel
47 %17 = OpLoad %7 %arg_0
48 OpImageWrite %17 %int_1 %11
Ben Claytonb07a7ce2021-06-03 11:26:17 +000049 OpReturn
50 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000051%tint_symbol_2 = OpFunction %void None %20
52%tint_symbol = OpFunctionParameter %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000053 %23 = OpLabel
James Price9fd3bef2021-06-04 17:31:48 +000054 OpStore %tint_symbol_1 %tint_symbol
Ben Claytonb07a7ce2021-06-03 11:26:17 +000055 OpReturn
56 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000057%vertex_main = OpFunction %void None %12
58 %25 = OpLabel
59 OpStore %tint_pointsize %float_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000060 %27 = OpFunctionCall %void %textureStore_2ed2a3
James Price9fd3bef2021-06-04 17:31:48 +000061 %28 = OpFunctionCall %void %tint_symbol_2 %11
62 OpReturn
63 OpFunctionEnd
64%fragment_main = OpFunction %void None %12
65 %30 = OpLabel
66 %31 = OpFunctionCall %void %textureStore_2ed2a3
67 OpReturn
68 OpFunctionEnd
69%compute_main = OpFunction %void None %12
70 %33 = OpLabel
71 %34 = OpFunctionCall %void %textureStore_2ed2a3
Ben Claytonb07a7ce2021-06-03 11:26:17 +000072 OpReturn
73 OpFunctionEnd