tree: 6a47952a631ac1ef417447c68426e907c0754c53 [path history] [tgz]
  1. android_util.cpp
  2. android_util.h
  4. vulkan_wrapper.cpp
  5. vulkan_wrapper.h

Generating vulkan_wrapper

The script for generating the vulkan_wrapper is based on the work done by @olvaffe for Hologram's dispatch table:

The wrapper is used to support applications that don't want to link directly against, which is not present on Android before 7.0 (Nougat).

The wrapper only contains core functions and WSI extensions.

To regenerate the wrappers:

cd scripts
pushd ../Vulkan-Headers/include/vulkan
../../../scripts/ parse vulkan.h > parsed_header

Copy contents of parsed_header into between the sections that read:

# generated by " parse vulkan.h"
# end of generated code

Then run the script:

./ ../common/vulkan_wrapper.h
./ ../common/vulkan_wrapper.cpp
clang-format -i vulkan_wrapper.h
clang-format -i vulkan_wrapper.cpp