summaryrefslogtreecommitdiff
path: root/chromium/components/metal_util/device.h
blob: 282b65c4ff16442028b8385fa5851f4224307ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_METAL_UTIL_DEVICE_H_
#define COMPONENTS_METAL_UTIL_DEVICE_H_

#include "components/metal_util/metal_util_export.h"
#include "components/metal_util/types.h"

namespace metal {

// Return a low-power device, if one exists, otherwise return the system default
// device.
MTLDevicePtr METAL_UTIL_EXPORT CreateDefaultDevice();

}  // namespace metal

#endif  // COMPONENTS_METAL_UTIL_DEVICE_H_