Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
include/ | 03-May-2024 | - | 351 | 169 | ||
libvulkan/ | 03-May-2024 | - | 10,671 | 8,461 | ||
nulldrv/ | 03-May-2024 | - | 2,179 | 1,768 | ||
scripts/ | 03-May-2024 | - | 1,688 | 1,210 | ||
vkjson/ | 03-May-2024 | - | 1,889 | 1,642 | ||
.clang-format | D | 03-May-2024 | 38 | 3 | 2 | |
Android.bp | D | 03-May-2024 | 1.4 KiB | 46 | 42 | |
OWNERS | D | 03-May-2024 | 25 | 2 | 1 | |
README.md | D | 03-May-2024 | 1.1 KiB | 23 | 12 | |
TEST_MAPPING | D | 03-May-2024 | 78 | 8 | 7 |
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 driectly 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