# Graphics API hardware profile settings

> Choose which Graphics API the application needs to run on for specified devices.

Use graphics API settings to control whether matching devices run your application with Vulkan, OpenGL ES, or the project default.

Configure these settings in a hardware profile to override Unity’s default API selection for specific devices or groups of devices.

## Choose your preferred Graphics API

Use the following properties to make a device use a specific or general graphics API to support your application:

| **Value**       | **Description**                               |
| --------------- | --------------------------------------------- |
| **Default**     | Use the application’s default graphics API.   |
| **UseVulkan**   | Force a device to use Vulkan graphics API.    |
| **UseOpenGles** | Force a device to use OpenGL ES graphics API. |

## Create a device filter and edit that device’s graphics API

In the following example, the code forces Google Pixel 6 phones to fallback on OpenGL ES, while other devices use Vulkan:

```c#
public class DefineProfilesScript : AndroidHardwareProfiles
{
    public override void DefineHardwareProfile(ProfileDatabase database)
    {
        DefaultDeviceFilter myDefault = database.GetDefaultFilter();
        myDefault.SetGraphicsAPI(GraphicsAPI.UseVulkan);

        //Filter for Google Pixel 6 devices
        var pixel6 = database.CreateFilter( "", "", "((G|g)oogle)", "(oriole|raven|bluejay)");

        pixel6.SetGraphicsAPI(GraphicsAPI.UseOpenGles);
    }
}
```

## Additional resources

* [Vulkan hardware profiles](/engine/6000.7/manual/platform-specific/android/developing/graphics/vulkan-hardware-profiles.md)
* [Introduction to Vulkan hardware profiles](/engine/6000.7/manual/platform-specific/android/developing/graphics/vulkan-hardware-profiles/intro.md)
* [Enable Vulkan hardware profiles in your project](/engine/6000.7/manual/platform-specific/android/developing/graphics/vulkan-hardware-profiles/instructions.md)
* [Workarounds](/engine/6000.7/manual/platform-specific/android/developing/graphics/vulkan-hardware-profiles/workarounds.md)
* [Device filters](/engine/6000.7/manual/platform-specific/android/developing/graphics/vulkan-hardware-profiles/device-filters.md)
