android.d 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. Boost Software License - Version 1.0 - August 17th, 2003
  3. Permission is hereby granted, free of charge, to any person or organization
  4. obtaining a copy of the software and accompanying documentation covered by
  5. this license (the "Software") to use, reproduce, display, distribute,
  6. execute, and transmit the Software, and to prepare derivative works of the
  7. Software, and to permit third-parties to whom the Software is furnished to
  8. do so, all subject to the following:
  9. The copyright notices in the Software and this entire statement, including
  10. the above license grant, this restriction and the following disclaimer,
  11. must be included in all copies of the Software, in whole or in part, and
  12. all derivative works of the Software, unless such copies or derivative
  13. works are solely in the form of machine-executable object code generated by
  14. a source language processor.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
  18. SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
  19. FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
  20. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. DEALINGS IN THE SOFTWARE.
  22. */
  23. module derelict.vulkan.system.android;
  24. version(Android):
  25. extern(System):
  26. public {
  27. import derelict.vulkan.base;
  28. import derelict.vulkan.types;
  29. }
  30. enum libNames = "";
  31. // #include <android/native_window.h>
  32. enum VK_KHR_android_surface = 1;
  33. enum VK_KHR_ANDROID_SURFACE_SPEC_VERSION = 6;
  34. enum VK_KHR_ANDROID_SURFACE_EXTENSION_NAME = "VK_KHR_android_surface";
  35. alias VkAndroidSurfaceCreateFlagsKHR = VkFlags;
  36. struct VkAndroidSurfaceCreateInfoKHR {
  37. VkStructureType sType ;
  38. const(void)* pNext ;
  39. VkAndroidSurfaceCreateFlagsKHR flags ;
  40. ANativeWindow* window;
  41. }
  42. alias PFN_vkCreateAndroidSurfaceKHR = nothrow
  43. VkResult function( VkInstance instance
  44. , const(VkAndroidSurfaceCreateInfoKHR)* pCreateInfo
  45. , const(VkAllocationCallbacks)* pAllocator
  46. , VkSurfaceKHR* pSurface );
  47. mixin template Functions() {
  48. PFN_vkCreateAndroidSurfaceKHR vkCreateAndroidSurfaceKHR;
  49. pragma(inline, true)
  50. void bindFunctions(alias bind)() {
  51. bind(cast(void**)&vkCreateAndroidSurfaceKHR, "vkCreateAndroidSurfaceKHR");
  52. }
  53. }
  54. version (none) {
  55. VkResult vkCreateAndroidSurfaceKHR( VkInstance instance
  56. , const(VkAndroidSurfaceCreateInfoKHR)* pCreateInfo
  57. , const(VkAllocationCallbacks)* pAllocator
  58. , VkSurfaceKHR* pSurface);
  59. }