blob: f15b6dd1cf114565f73d2181bdb78a85c7a4b8f9 [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Ben Clayton4b606152022-11-04 17:06:03 +00004; Bound: 41
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
Ben Claytonb07a7ce2021-06-03 11:26:17 +00009 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
James Price11c6fcd2021-08-05 17:34:19 +000013 OpName %value "value"
14 OpName %vertex_point_size "vertex_point_size"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000015 OpName %arg_0 "arg_0"
16 OpName %textureStore_4fc057 "textureStore_4fc057"
James Price11c6fcd2021-08-05 17:34:19 +000017 OpName %vertex_main_inner "vertex_main_inner"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000018 OpName %vertex_main "vertex_main"
19 OpName %fragment_main "fragment_main"
20 OpName %compute_main "compute_main"
James Price11c6fcd2021-08-05 17:34:19 +000021 OpDecorate %value BuiltIn Position
22 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Claytonb07a7ce2021-06-03 11:26:17 +000023 OpDecorate %arg_0 NonReadable
24 OpDecorate %arg_0 DescriptorSet 1
25 OpDecorate %arg_0 Binding 0
26 %float = OpTypeFloat 32
James Price9fd3bef2021-06-04 17:31:48 +000027 %v4float = OpTypeVector %float 4
28%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000029 %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 %11 = OpTypeImage %float 2D 0 1 0 2 Rgba8Snorm
35%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
36 %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant
Ben Claytonb07a7ce2021-06-03 11:26:17 +000037 %void = OpTypeVoid
James Price9fd3bef2021-06-04 17:31:48 +000038 %12 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000039 %int = OpTypeInt 32 1
40 %v3int = OpTypeVector %int 3
Ben Clayton4b606152022-11-04 17:06:03 +000041 %v2int = OpTypeVector %int 2
Ben Claytonb07a7ce2021-06-03 11:26:17 +000042 %int_1 = OpConstant %int 1
Ben Clayton4b606152022-11-04 17:06:03 +000043 %22 = OpConstantComposite %v2int %int_1 %int_1
Ben Claytonb07a7ce2021-06-03 11:26:17 +000044 %float_1 = OpConstant %float 1
Ben Clayton4b606152022-11-04 17:06:03 +000045 %27 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
46 %28 = OpTypeFunction %v4float
James Price9fd3bef2021-06-04 17:31:48 +000047%textureStore_4fc057 = OpFunction %void None %12
48 %15 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000049 %17 = OpLoad %11 %arg_0
Ben Clayton4b606152022-11-04 17:06:03 +000050 %23 = OpCompositeExtract %int %22 0
51 %24 = OpCompositeExtract %int %22 1
52 %25 = OpCompositeConstruct %v3int %23 %24 %int_1
53 OpImageWrite %17 %25 %27
Ben Claytonb07a7ce2021-06-03 11:26:17 +000054 OpReturn
55 OpFunctionEnd
Ben Clayton4b606152022-11-04 17:06:03 +000056%vertex_main_inner = OpFunction %v4float None %28
57 %30 = OpLabel
58 %31 = OpFunctionCall %void %textureStore_4fc057
James Price11c6fcd2021-08-05 17:34:19 +000059 OpReturnValue %5
Ben Claytonb07a7ce2021-06-03 11:26:17 +000060 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000061%vertex_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000062 %33 = OpLabel
63 %34 = OpFunctionCall %v4float %vertex_main_inner
64 OpStore %value %34
James Price11c6fcd2021-08-05 17:34:19 +000065 OpStore %vertex_point_size %float_1
James Price9fd3bef2021-06-04 17:31:48 +000066 OpReturn
67 OpFunctionEnd
68%fragment_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000069 %36 = OpLabel
70 %37 = OpFunctionCall %void %textureStore_4fc057
James Price9fd3bef2021-06-04 17:31:48 +000071 OpReturn
72 OpFunctionEnd
73%compute_main = OpFunction %void None %12
Ben Clayton4b606152022-11-04 17:06:03 +000074 %39 = OpLabel
75 %40 = OpFunctionCall %void %textureStore_4fc057
Ben Claytonb07a7ce2021-06-03 11:26:17 +000076 OpReturn
77 OpFunctionEnd