1//
2// Copyright 2019 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6// CompilerMtl.mm:
7//    Implements the class methods for CompilerMtl.
8//
9
10#include "libANGLE/renderer/metal/CompilerMtl.h"
11
12#include "common/debug.h"
13#include "common/system_utils.h"
14
15namespace rx
16{
17
18CompilerMtl::CompilerMtl() : CompilerImpl() {}
19
20CompilerMtl::~CompilerMtl() {}
21
22ShShaderOutput CompilerMtl::getTranslatorOutputType() const
23{
24#if ANGLE_ENABLE_METAL_SPIRV
25    if (useDirectToMSLCompiler())
26    {
27        return SH_MSL_METAL_OUTPUT;
28    }
29    else
30    {
31        return SH_SPIRV_METAL_OUTPUT;
32    }
33#else
34    return SH_MSL_METAL_OUTPUT;
35#endif
36}
37
38bool CompilerMtl::useDirectToMSLCompiler()
39{
40    return false;
41}
42
43}  // namespace rx
44