The sample code describes how to use Vulkan Smart Cache and Pre-rotation.
Main APIs in sample code:
- Query supported extensions:
vkEnumerateDeviceExtensionProperties():query if the device support Smart Cache and Pre-rotation. - Add extensions:
vkCreateDevice():append the related extension to the table.
See details:HUAWEI HMS Core
To build the sample, import the sample to Android Studio (3.x +).
- Devices released after P40 or devices with more advanced chip than Kirin 990.
- Devices with Android 10.1 or later
The sample of Vulkan Smart Cache and Pre-rotation has obtained the Apache 2.0 license.