1 /*
2  * Copyright 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #pragma once
19 
20 #include <string>
21 
22 namespace android::vkprofiles {
23 
24 /*
25  * vk**GetSupport is a function call to determine if the device supports a
26  * specific Vulkan Profile. These functions call into
27  * generated/vulkan_profiles.h and so only work with select profiles. If the
28  * device supports the profile, the string "SUPPORTED" is returned, otherwise an
29  * error message is returned.
30  */
31 std::string vkAbp2021GetSupport();
32 std::string vkAbp2021GetSupportCpuOnly();
33 std::string vkAbp2022GetSupport();
34 std::string vkVpa15GetSupport();
35 
36 // Returns a json string that enumerates support for any of the Vulkan profiles
37 // specified in the above functions
38 std::string vkProfiles();
39 
40 }  // namespace android::vkprofiles
41