blob: 4038cb64f1606e8ca3c7c0dbc205c457a5bcb1ba [file] [log] [blame]
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Ben Clayton77a90cb2023-03-06 18:25:08 +00004; Bound: 42
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +00005; Schema: 0
6 OpCapability Shader
7 OpCapability Float16
8 OpCapability UniformAndStorageBuffer16BitAccess
9 OpCapability StorageBuffer16BitAccess
10 OpCapability StorageInputOutput16
11 OpMemoryModel Logical GLSL450
12 OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
13 OpEntryPoint Fragment %fragment_main "fragment_main"
14 OpEntryPoint GLCompute %compute_main "compute_main"
15 OpExecutionMode %fragment_main OriginUpperLeft
16 OpExecutionMode %compute_main LocalSize 1 1 1
17 OpName %value "value"
18 OpName %vertex_point_size "vertex_point_size"
Ben Clayton77a90cb2023-03-06 18:25:08 +000019 OpName %prevent_dce_block "prevent_dce_block"
20 OpMemberName %prevent_dce_block 0 "inner"
21 OpName %prevent_dce "prevent_dce"
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000022 OpName %select_53d518 "select_53d518"
23 OpName %res "res"
24 OpName %vertex_main_inner "vertex_main_inner"
25 OpName %vertex_main "vertex_main"
26 OpName %fragment_main "fragment_main"
27 OpName %compute_main "compute_main"
28 OpDecorate %value BuiltIn Position
29 OpDecorate %vertex_point_size BuiltIn PointSize
Ben Clayton77a90cb2023-03-06 18:25:08 +000030 OpDecorate %prevent_dce_block Block
31 OpMemberDecorate %prevent_dce_block 0 Offset 0
32 OpDecorate %prevent_dce DescriptorSet 2
33 OpDecorate %prevent_dce Binding 0
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000034 %float = OpTypeFloat 32
35 %v4float = OpTypeVector %float 4
36%_ptr_Output_v4float = OpTypePointer Output %v4float
37 %5 = OpConstantNull %v4float
38 %value = OpVariable %_ptr_Output_v4float Output %5
39%_ptr_Output_float = OpTypePointer Output %float
40 %8 = OpConstantNull %float
41%vertex_point_size = OpVariable %_ptr_Output_float Output %8
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000042 %half = OpTypeFloat 16
43 %v3half = OpTypeVector %half 3
Ben Clayton77a90cb2023-03-06 18:25:08 +000044%prevent_dce_block = OpTypeStruct %v3half
45%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
46%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
47 %void = OpTypeVoid
48 %14 = OpTypeFunction %void
dan sinclaird9b68eb2022-11-10 00:32:12 +000049%half_0x1p_0 = OpConstant %half 0x1p+0
Ben Clayton77a90cb2023-03-06 18:25:08 +000050 %19 = OpConstantComposite %v3half %half_0x1p_0 %half_0x1p_0 %half_0x1p_0
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000051%_ptr_Function_v3half = OpTypePointer Function %v3half
Ben Clayton77a90cb2023-03-06 18:25:08 +000052 %22 = OpConstantNull %v3half
53 %uint = OpTypeInt 32 0
54 %uint_0 = OpConstant %uint 0
55%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
56 %28 = OpTypeFunction %v4float
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000057 %float_1 = OpConstant %float 1
Ben Clayton77a90cb2023-03-06 18:25:08 +000058%select_53d518 = OpFunction %void None %14
59 %17 = OpLabel
60 %res = OpVariable %_ptr_Function_v3half Function %22
61 OpStore %res %19
62 %26 = OpAccessChain %_ptr_StorageBuffer_v3half %prevent_dce %uint_0
63 %27 = OpLoad %v3half %res
64 OpStore %26 %27
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000065 OpReturn
66 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000067%vertex_main_inner = OpFunction %v4float None %28
68 %30 = OpLabel
69 %31 = OpFunctionCall %void %select_53d518
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000070 OpReturnValue %5
71 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000072%vertex_main = OpFunction %void None %14
73 %33 = OpLabel
74 %34 = OpFunctionCall %v4float %vertex_main_inner
75 OpStore %value %34
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000076 OpStore %vertex_point_size %float_1
77 OpReturn
78 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000079%fragment_main = OpFunction %void None %14
80 %37 = OpLabel
81 %38 = OpFunctionCall %void %select_53d518
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000082 OpReturn
83 OpFunctionEnd
Ben Clayton77a90cb2023-03-06 18:25:08 +000084%compute_main = OpFunction %void None %14
85 %40 = OpLabel
86 %41 = OpFunctionCall %void %select_53d518
Zhaoming Jiang9443ceb2022-08-05 15:15:17 +000087 OpReturn
88 OpFunctionEnd