The root container for Vulkan hardware profiles, holding the default filter and device-specific profiles.
Use ProfileDatabase to configure how Unity handles Vulkan driver workarounds, graphics API selection, and graphics jobs settings across different Android devices. The database contains a single DefaultDeviceFilter and zero or more ProfileDeviceFilter instances.
At build time, Unity serializes the database into a Profile.json file that is included in the application. At runtime, when a device doesn't match any ProfileDeviceFilter, Unity applies the DefaultDeviceFilter settings.
To get a ProfileDatabase instance, use the DefineHardwareProfile callback method when you implement the AndroidHardwareProfiles class.
Note: You can't use Vulkan hardware profiles and Vulkan Device Filtering Assets at the same time. When both exist, hardware profiles take precedence.
For more information, refer to Vulkan hardware profiles.
| Constructor | Description |
|---|---|
| ProfileDatabase | Creates a ProfileDatabase with a default filter and an empty list of profiles. |
| Method | Description |
|---|---|
| CreateFilter | Creates a new ProfileDeviceFilter targeting devices that match the specified criteria and adds it to the database. |
| GetDefaultFilter | Returns the DefaultDeviceFilter, which allows you to define the default settings applied to all remaining unmatched devices. |