Skip to content
  • Lina Versace's avatar
    vulkan: Add #ifdef hack to vk_android_native_buffer.h · f07ac34e
    Lina Versace authored
    
    
    This patch consolidates many potential `#ifdef ANDROID` messes
    throughout src/vulkan and src/intel/vulkan into a simple, localized
    hack. The hack is an `#ifdef ANDROID` in vk_android_native_buffer.h
    that, on non-Android platorms, avoids including the Android platform
    headers and typedefs any Android-specific types to void*.
    
    This hack doesn't remove *all* the `#ifdef ANDROID`s in upcoming
    patches, but it does remove a lot.
    
    I first tried implementing VK_ANDROID_native_buffer without this hack,
    but eventually gave up when the yak shaving became too much.
    
    Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
    f07ac34e