blob: d251b3be6f8aafa5cb4085c331099e2829f73c2f [file] [log] [blame]
Ben Claytonb07a7ce2021-06-03 11:26:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
James Price11c6fcd2021-08-05 17:34:19 +00004; Bound: 33
Ben Claytonb07a7ce2021-06-03 11:26:17 +00005; Schema: 0
6 OpCapability Shader
James Price9fd3bef2021-06-04 17:31:48 +00007 %14 = OpExtInstImport "GLSL.std.450"
Ben Claytonb07a7ce2021-06-03 11:26:17 +00008 OpMemoryModel Logical GLSL450
James Price11c6fcd2021-08-05 17:34:19 +00009 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
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
James Price11c6fcd2021-08-05 17:34:19 +000014 OpName %value "value"
15 OpName %vertex_point_size "vertex_point_size"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000016 OpName %unpack4x8unorm_750c74 "unpack4x8unorm_750c74"
17 OpName %res "res"
James Price11c6fcd2021-08-05 17:34:19 +000018 OpName %vertex_main_inner "vertex_main_inner"
Ben Claytonb07a7ce2021-06-03 11:26:17 +000019 OpName %vertex_main "vertex_main"
20 OpName %fragment_main "fragment_main"
21 OpName %compute_main "compute_main"
James Price11c6fcd2021-08-05 17:34:19 +000022 OpDecorate %value BuiltIn Position
23 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Claytonb07a7ce2021-06-03 11:26:17 +000024 %float = OpTypeFloat 32
Ben Claytonb07a7ce2021-06-03 11:26:17 +000025 %v4float = OpTypeVector %float 4
James Price9fd3bef2021-06-04 17:31:48 +000026%_ptr_Output_v4float = OpTypePointer Output %v4float
James Price11c6fcd2021-08-05 17:34:19 +000027 %5 = OpConstantNull %v4float
28 %value = OpVariable %_ptr_Output_v4float Output %5
29%_ptr_Output_float = OpTypePointer Output %float
30 %8 = OpConstantNull %float
31%vertex_point_size = OpVariable %_ptr_Output_float Output %8
James Price9fd3bef2021-06-04 17:31:48 +000032 %void = OpTypeVoid
33 %9 = OpTypeFunction %void
Ben Claytonb07a7ce2021-06-03 11:26:17 +000034 %uint = OpTypeInt 32 0
35 %uint_1 = OpConstant %uint 1
36%_ptr_Function_v4float = OpTypePointer Function %v4float
James Price11c6fcd2021-08-05 17:34:19 +000037 %19 = OpTypeFunction %v4float
Ben Claytonb07a7ce2021-06-03 11:26:17 +000038 %float_1 = OpConstant %float 1
James Price9fd3bef2021-06-04 17:31:48 +000039%unpack4x8unorm_750c74 = OpFunction %void None %9
40 %12 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000041 %res = OpVariable %_ptr_Function_v4float Function %5
James Price9fd3bef2021-06-04 17:31:48 +000042 %13 = OpExtInst %v4float %14 UnpackUnorm4x8 %uint_1
43 OpStore %res %13
Ben Claytonb07a7ce2021-06-03 11:26:17 +000044 OpReturn
45 OpFunctionEnd
James Price11c6fcd2021-08-05 17:34:19 +000046%vertex_main_inner = OpFunction %v4float None %19
47 %21 = OpLabel
48 %22 = OpFunctionCall %void %unpack4x8unorm_750c74
49 OpReturnValue %5
Ben Claytonb07a7ce2021-06-03 11:26:17 +000050 OpFunctionEnd
James Price9fd3bef2021-06-04 17:31:48 +000051%vertex_main = OpFunction %void None %9
52 %24 = OpLabel
James Price11c6fcd2021-08-05 17:34:19 +000053 %25 = OpFunctionCall %v4float %vertex_main_inner
54 OpStore %value %25
55 OpStore %vertex_point_size %float_1
James Price9fd3bef2021-06-04 17:31:48 +000056 OpReturn
57 OpFunctionEnd
58%fragment_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000059 %28 = OpLabel
60 %29 = OpFunctionCall %void %unpack4x8unorm_750c74
James Price9fd3bef2021-06-04 17:31:48 +000061 OpReturn
62 OpFunctionEnd
63%compute_main = OpFunction %void None %9
James Price11c6fcd2021-08-05 17:34:19 +000064 %31 = OpLabel
65 %32 = OpFunctionCall %void %unpack4x8unorm_750c74
Ben Claytonb07a7ce2021-06-03 11:26:17 +000066 OpReturn
67 OpFunctionEnd