mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 23:28:06 +02:00
vulkan/wsi: Add a mock image creation extension
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
parent
cd881dafad
commit
66dc618215
1 changed files with 18 additions and 0 deletions
|
|
@ -30,6 +30,24 @@
|
|||
#include <vulkan/vulkan.h>
|
||||
#include <vulkan/vk_icd.h>
|
||||
|
||||
/* This is guaranteed to not collide with anything because it's in the
|
||||
* VK_KHR_swapchain namespace but not actually used by the extension.
|
||||
*/
|
||||
#define VK_STRUCTURE_TYPE_WSI_IMAGE_CREATE_INFO_MESA (VkStructureType)1000001002
|
||||
#define VK_STRUCTURE_TYPE_WSI_MEMORY_ALLOCATE_INFO_MESA (VkStructureType)1000001003
|
||||
|
||||
struct wsi_image_create_info {
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
bool scanout;
|
||||
};
|
||||
|
||||
struct wsi_memory_allocate_info {
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
bool implicit_sync;
|
||||
};
|
||||
|
||||
struct wsi_image {
|
||||
VkImage image;
|
||||
VkDeviceMemory memory;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue