• Home
Name Date Size #Lines LOC

..--

include/04-Jul-2025-440206

libvulkan/04-Jul-2025-13,07510,350

nulldrv/04-Jul-2025-2,5102,032

scripts/04-Jul-2025-4,6233,715

tests/04-Jul-2025-691528

vkjson/04-Jul-2025-3,6523,243

vkprofiles/04-Jul-2025-16,61515,831

.clang-formatD04-Jul-202538 32

Android.bpD04-Jul-20251.6 KiB4945

OWNERSD04-Jul-202525 21

README.mdD04-Jul-20251.1 KiB2312

TEST_MAPPINGD04-Jul-202578 87

README.md

1# frameworks/native/vulkan
2
3This subdirectory contains Android's Vulkan loader, as well as some Vulkan-related tools useful to platform developers.
4
5## Documentation
6
7The former contents of doc/implementors_guide/ are now at https://source.android.com/devices/graphics/implement-vulkan.
8
9## Coding Style
10
11We follow the [Chromium coding style](https://www.chromium.org/developers/coding-style) for naming and formatting, except with four-space indentation instead of two spaces. In general, any C++ features supported by the prebuilt platform toolchain are allowed.
12
13Use "clang-format -style=file" to format all C/C++ code, except code imported verbatim from elsewhere. Setting up git-clang-format in your environment is recommended.
14
15## Code Generation
16
17We generate several parts of the loader and tools directly from the Vulkan Registry (external/vulkan-headers/registry/vk.xml). Code generation must be done manually because the generator is not part of the platform toolchain (yet?). Files named `foo_gen.*` are generated by the code generator.
18
19### Run The Code Generator
20
21Install Python3 (if not already installed) and execute below:
22`$ ./scripts/code_generator.py`
23