blob: 1f673d9bf8d56d190759ca9fd1337dc677bab2c1 [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 36
5; Schema: 0
6 OpCapability Shader
7 OpCapability Float16
8 OpCapability UniformAndStorageBuffer16BitAccess
9 OpCapability StorageBuffer16BitAccess
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000010 OpMemoryModel Logical GLSL450
11 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
12 OpEntryPoint Fragment %fragment_main "fragment_main"
13 OpEntryPoint GLCompute %compute_main "compute_main"
14 OpExecutionMode %fragment_main OriginUpperLeft
15 OpExecutionMode %compute_main LocalSize 1 1 1
16 OpName %value "value"
17 OpName %vertex_point_size "vertex_point_size"
18 OpName %frexp_5257dd "frexp_5257dd"
19 OpName %__frexp_result_f16 "__frexp_result_f16"
Ben Clayton10fae7a2022-11-14 15:29:29 +000020 OpMemberName %__frexp_result_f16 0 "fract"
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000021 OpMemberName %__frexp_result_f16 1 "exp"
22 OpName %res "res"
23 OpName %vertex_main_inner "vertex_main_inner"
24 OpName %vertex_main "vertex_main"
25 OpName %fragment_main "fragment_main"
26 OpName %compute_main "compute_main"
27 OpDecorate %value BuiltIn Position
28 OpDecorate %vertex_point_size BuiltIn PointSize
29 OpMemberDecorate %__frexp_result_f16 0 Offset 0
30 OpMemberDecorate %__frexp_result_f16 1 Offset 4
31 %float = OpTypeFloat 32
32 %v4float = OpTypeVector %float 4
33%_ptr_Output_v4float = OpTypePointer Output %v4float
34 %5 = OpConstantNull %v4float
35 %value = OpVariable %_ptr_Output_v4float Output %5
36%_ptr_Output_float = OpTypePointer Output %float
37 %8 = OpConstantNull %float
38%vertex_point_size = OpVariable %_ptr_Output_float Output %8
39 %void = OpTypeVoid
40 %9 = OpTypeFunction %void
41 %half = OpTypeFloat 16
42 %int = OpTypeInt 32 1
43%__frexp_result_f16 = OpTypeStruct %half %int
Ben Clayton69c2c342022-11-23 18:21:38 +000044%half_0x1pn1 = OpConstant %half 0x1p-1
45 %int_1 = OpConstant %int 1
46 %18 = OpConstantComposite %__frexp_result_f16 %half_0x1pn1 %int_1
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000047%_ptr_Function___frexp_result_f16 = OpTypePointer Function %__frexp_result_f16
48 %21 = OpConstantNull %__frexp_result_f16
49 %22 = OpTypeFunction %v4float
50 %float_1 = OpConstant %float 1
51%frexp_5257dd = OpFunction %void None %9
52 %12 = OpLabel
53 %res = OpVariable %_ptr_Function___frexp_result_f16 Function %21
Ben Clayton69c2c342022-11-23 18:21:38 +000054 OpStore %res %18
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000055 OpReturn
56 OpFunctionEnd
57%vertex_main_inner = OpFunction %v4float None %22
58 %24 = OpLabel
59 %25 = OpFunctionCall %void %frexp_5257dd
60 OpReturnValue %5
61 OpFunctionEnd
62%vertex_main = OpFunction %void None %9
63 %27 = OpLabel
64 %28 = OpFunctionCall %v4float %vertex_main_inner
65 OpStore %value %28
66 OpStore %vertex_point_size %float_1
67 OpReturn
68 OpFunctionEnd
69%fragment_main = OpFunction %void None %9
70 %31 = OpLabel
71 %32 = OpFunctionCall %void %frexp_5257dd
72 OpReturn
73 OpFunctionEnd
74%compute_main = OpFunction %void None %9
75 %34 = OpLabel
76 %35 = OpFunctionCall %void %frexp_5257dd
77 OpReturn
78 OpFunctionEnd