Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 948233a5 authored by Ian Elliott's avatar Ian Elliott
Browse files

Add API defintions for VK_KHR_incremental_present.

The actual functionality for this extension was already implemented, but these
"boilerplate" changes were missed.

Test: Manually tested with the cube demo.

Change-Id: Ica3ee5b7d9255c6067afa0301bc5e2fa14cfc7ae
parent ace30d2b
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -75,6 +75,9 @@ define NULL_HANDLE 0
@extension("VK_KHR_win32_surface") define VK_KHR_WIN32_SURFACE_SPEC_VERSION     5
@extension("VK_KHR_win32_surface") define VK_KHR_WIN32_SURFACE_NAME             "VK_KHR_win32_surface"

@extension("VK_KHR_incremental_present") define VK_KHR_INCREMENTAL_PRESENT_SPEC_VERSION 1
@extension("VK_KHR_incremental_present") define VK_KHR_INCREMENTAL_PRESENT_NAME         "VK_KHR_incremental_present"

@extension("VK_ANDROID_native_buffer") define VK_ANDROID_NATIVE_BUFFER_SPEC_VERSION     6
@extension("VK_ANDROID_native_buffer") define VK_ANDROID_NATIVE_BUFFER_NAME             "VK_ANDROID_native_buffer"

@@ -743,6 +746,9 @@ enum VkStructureType {
    //@extension("VK_KHR_win32_surface")
    VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR             = 1000009000,

    //@extension("VK_KHR_incremental_present")
    VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR                       = 1000084000,

    //@extension("VK_ANDROID_native_buffer")
    VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID                     = 1000010000,
    VK_STRUCTURE_TYPE_SWAPCHAIN_IMAGE_CREATE_INFO_ANDROID       = 1000010001,
@@ -2874,6 +2880,27 @@ class VkWin32SurfaceCreateInfoKHR {
    platform.HWND                               hwnd
}

@extension("VK_KHR_incremental_present")
class VkRectLayerKHR {
    VkOffset2D                                  offset
    VkExtent2D                                  extent
    uint32_t                                    layer
}

@extension("VK_KHR_incremental_present")
class VkPresentRegionKHR {
    uint32_t                                    rectangleCount
    const VkRectLayerKHR*                       pRectangles
}

@extension("VK_KHR_incremental_present")
class VkPresentRegionsKHR {
    VkStructureType                             sType
    const void*                                 pNext
    uint32_t                                    swapchainCount
    const VkPresentRegionKHR*                   pRegions
}

@extension("VK_ANDROID_native_buffer")
class VkNativeBufferANDROID {
    VkStructureType                             sType
+2 −0
Original line number Diff line number Diff line
@@ -697,6 +697,7 @@ bool InitDriverTable(VkDevice dev, PFN_vkGetDeviceProcAddr get_proc,
VK_ANDROID_native_buffer
VK_EXT_debug_report
VK_KHR_android_surface
VK_KHR_incremental_present
VK_KHR_surface
VK_KHR_swapchain
{{end}}
@@ -1145,6 +1146,7 @@ VK_KHR_swapchain
  {{     if eq $ext "VK_KHR_surface"}}true
  {{else if eq $ext "VK_KHR_swapchain"}}true
  {{else if eq $ext "VK_KHR_android_surface"}}true
  {{else if eq $ext "VK_KHR_incremental_present"}}true
  {{end}}
{{end}}