flutter_flutter/docs/engine/impeller/docs/android_validation_layers.md
John "codefu" McDole e068a3e6c4
chore: move engine docs out of engine/ and into docs/ (#175195)
Moving docs to be co-located with other docs + updating links. This has
the benefit of not including docs in engine content hash semantics.
2025-09-16 18:19:50 +00:00

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" />