mirror of
https://github.com/flutter/flutter.git
synced 2026-02-12 13:56:40 +08:00
Moving docs to be co-located with other docs + updating links. This has the benefit of not including docs in engine content hash semantics.
679 B
679 B
Android Vulkan Validation Layers
If you want to run Vulkan Validation Layers with a custom engine build you need
to add the --enable-vulkan-validation-layers to the gn invocation to make
sure the layers are built and injected into the Flutter jar.
Example:
flutter/tools/gn \
--runtime-mode=debug \
--enable-vulkan-validation-layers \
--no-lto \
--unoptimized \
--android \
--android-cpu=arm64
Then adding the following field to the
android/app/src/main/AndroidManifest.xml under the <application> tag will turn
them on:
<meta-data
android:name="io.flutter.embedding.android.EnableVulkanValidation"
android:value="true" />