blob: f23cb974ea5b226c81775887550abcafa34880b0 [file] [log] [blame]
James Price88b8e2f2021-07-12 14:48:20 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 21
James Price88b8e2f2021-07-12 14:48:20 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00008 OpEntryPoint Vertex %main "main" %pos_1 %vertex_point_size
9 OpName %pos_1 "pos_1"
10 OpName %vertex_point_size "vertex_point_size"
James Price88b8e2f2021-07-12 14:48:20 +000011 OpName %Out "Out"
12 OpMemberName %Out 0 "pos"
James Price11c6fcd2021-08-05 17:34:19 +000013 OpName %main_inner "main_inner"
James Price88b8e2f2021-07-12 14:48:20 +000014 OpName %main "main"
James Price11c6fcd2021-08-05 17:34:19 +000015 OpDecorate %pos_1 BuiltIn Position
16 OpDecorate %pos_1 Invariant
17 OpDecorate %vertex_point_size BuiltIn PointSize
James Price88b8e2f2021-07-12 14:48:20 +000018 OpMemberDecorate %Out 0 Offset 0
19 %float = OpTypeFloat 32
James Price88b8e2f2021-07-12 14:48:20 +000020 %v4float = OpTypeVector %float 4
21%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000022 %5 = OpConstantNull %v4float
23 %pos_1 = OpVariable %_ptr_Output_v4float Output %5
24%_ptr_Output_float = OpTypePointer Output %float
25 %8 = OpConstantNull %float
26%vertex_point_size = OpVariable %_ptr_Output_float Output %8
James Price88b8e2f2021-07-12 14:48:20 +000027 %Out = OpTypeStruct %v4float
James Price11c6fcd2021-08-05 17:34:19 +000028 %9 = OpTypeFunction %Out
29 %13 = OpConstantNull %Out
30 %void = OpTypeVoid
31 %14 = OpTypeFunction %void
James Price88b8e2f2021-07-12 14:48:20 +000032 %float_1 = OpConstant %float 1
James Price11c6fcd2021-08-05 17:34:19 +000033 %main_inner = OpFunction %Out None %9
34 %12 = OpLabel
35 OpReturnValue %13
James Price88b8e2f2021-07-12 14:48:20 +000036 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000037 %main = OpFunction %void None %14
38 %17 = OpLabel
39 %18 = OpFunctionCall %Out %main_inner
40 %19 = OpCompositeExtract %v4float %18 0
41 OpStore %pos_1 %19
42 OpStore %vertex_point_size %float_1
James Price88b8e2f2021-07-12 14:48:20 +000043 OpReturn
44 OpFunctionEnd