Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
swiftshader_utilities.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_SWIFTSHADER_UTILITIES_H_
6#define FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_SWIFTSHADER_UTILITIES_H_
7
8namespace impeller {
9
10//------------------------------------------------------------------------------
11/// @brief Find and setup the installable client driver for a locally built
12/// SwiftShader at known paths. The option to use SwiftShader can
13/// only be used once in the process. While calling this method
14/// multiple times is fine, specifying a different use_swiftshader
15/// value will trip an assertion.
16///
17/// @warning This call must be made before any Vulkan contexts are created in
18/// the process.
19///
20/// @param[in] use_swiftshader If SwiftShader should be used.
21///
22void SetupSwiftshaderOnce(bool use_swiftshader);
23
24} // namespace impeller
25
26#endif // FLUTTER_IMPELLER_PLAYGROUND_BACKEND_VULKAN_SWIFTSHADER_UTILITIES_H_
void SetupSwiftshaderOnce(bool use_swiftshader)
Find and setup the installable client driver for a locally built SwiftShader at known paths....