blob: af3adfc8e496b30868b5667c8fe6eab9e8bcee58 [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: 40
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability StorageImageExtendedFormats
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_f9be83 "textureStore_f9be83"
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 %int = OpTypeInt 32 1
33 %7 = OpTypeImage %int 2D 0 1 0 2 Rg32i
34%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7
35 %arg_0 = OpVariable %_ptr_UniformConstant_7 UniformConstant
James Price9fd3bef2021-06-04 17:31:48 +000036 %v4float = OpTypeVector %float 4
37%_ptr_Output_v4float = OpTypePointer Output %v4float
38 %12 = OpConstantNull %v4float
39%tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %12
Ben Claytonb07a7ce2021-06-03 11:26:17 +000040 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000041 %13 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000042 %v3int = OpTypeVector %int 3
Ben Clayton55ca24e2021-06-03 15:08:14 +000043 %int_0 = OpConstant %int 0
Ben Claytonb07a7ce2021-06-03 11:26:17 +000044 %int_1 = OpConstant %int 1
James Price9fd3bef2021-06-04 17:31:48 +000045 %22 = OpConstantComposite %v3int %int_0 %int_0 %int_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000046 %v4int = OpTypeVector %int 4
James Price9fd3bef2021-06-04 17:31:48 +000047 %24 = OpConstantNull %v4int
48 %25 = OpTypeFunction %void %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000049 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000050%textureStore_f9be83 = OpFunction %void None %13
51 %16 = OpLabel
52 %18 = OpLoad %7 %arg_0
53 OpImageWrite %18 %22 %24
Ben Claytonb07a7ce2021-06-03 11:26:17 +000054 OpReturn
55 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000056%tint_symbol_2 = OpFunction %void None %25
57%tint_symbol = OpFunctionParameter %v4float
58 %28 = OpLabel
59 OpStore %tint_symbol_1 %tint_symbol
60 OpReturn
61 OpFunctionEnd
62%vertex_main = OpFunction %void None %13
63 %30 = OpLabel
Ben Claytonb07a7ce2021-06-03 11:26:17 +000064 OpStore %tint_pointsize %float_1
James Price9fd3bef2021-06-04 17:31:48 +000065 %32 = OpFunctionCall %void %textureStore_f9be83
66 %33 = OpFunctionCall %void %tint_symbol_2 %12
Ben Claytonb07a7ce2021-06-03 11:26:17 +000067 OpReturn
68 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000069%fragment_main = OpFunction %void None %13
70 %35 = OpLabel
71 %36 = OpFunctionCall %void %textureStore_f9be83
Ben Claytonb07a7ce2021-06-03 11:26:17 +000072 OpReturn
73 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000074%compute_main = OpFunction %void None %13
75 %38 = OpLabel
76 %39 = OpFunctionCall %void %textureStore_f9be83
Ben Claytonb07a7ce2021-06-03 11:26:17 +000077 OpReturn
78 OpFunctionEnd