winevulkan: Implement VK_KHR_get_physical_device_properties2.
Signed-off-by: Roderick Colenbrander <thunderbird2k@gmail.com> Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8ef70305f9
commit
79c2ee529b
|
@ -80,6 +80,7 @@ EXT_BLOCK_SIZE = 1000
|
|||
# and need custom wrappers due to e.g. win32 / X11 specific code.
|
||||
# List of supported instance extensions.
|
||||
SUPPORTED_EXTENSIONS = [
|
||||
"VK_KHR_get_physical_device_properties2",
|
||||
"VK_KHR_surface",
|
||||
"VK_KHR_win32_surface",
|
||||
"VK_KHR_swapchain",
|
||||
|
|
|
@ -450,6 +450,23 @@ static inline void convert_VkImageFormatProperties_host_to_win(const VkImageForm
|
|||
out->maxResourceSize = in->maxResourceSize;
|
||||
}
|
||||
|
||||
static inline void convert_VkImageFormatProperties2KHR_win_to_host(const VkImageFormatProperties2KHR *in, VkImageFormatProperties2KHR_host *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->pNext = in->pNext;
|
||||
out->sType = in->sType;
|
||||
}
|
||||
|
||||
static inline void convert_VkImageFormatProperties2KHR_host_to_win(const VkImageFormatProperties2KHR_host *in, VkImageFormatProperties2KHR *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = in->pNext;
|
||||
convert_VkImageFormatProperties_host_to_win(&in->imageFormatProperties, &out->imageFormatProperties);
|
||||
}
|
||||
|
||||
static inline void convert_VkMemoryHeap_static_array_host_to_win(const VkMemoryHeap_host *in, VkMemoryHeap *out, uint32_t count)
|
||||
{
|
||||
unsigned int i;
|
||||
|
@ -473,6 +490,23 @@ static inline void convert_VkPhysicalDeviceMemoryProperties_host_to_win(const Vk
|
|||
convert_VkMemoryHeap_static_array_host_to_win(in->memoryHeaps, out->memoryHeaps, VK_MAX_MEMORY_HEAPS);
|
||||
}
|
||||
|
||||
static inline void convert_VkPhysicalDeviceMemoryProperties2KHR_win_to_host(const VkPhysicalDeviceMemoryProperties2KHR *in, VkPhysicalDeviceMemoryProperties2KHR_host *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->pNext = in->pNext;
|
||||
out->sType = in->sType;
|
||||
}
|
||||
|
||||
static inline void convert_VkPhysicalDeviceMemoryProperties2KHR_host_to_win(const VkPhysicalDeviceMemoryProperties2KHR_host *in, VkPhysicalDeviceMemoryProperties2KHR *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = in->pNext;
|
||||
convert_VkPhysicalDeviceMemoryProperties_host_to_win(&in->memoryProperties, &out->memoryProperties);
|
||||
}
|
||||
|
||||
static inline void convert_VkPhysicalDeviceLimits_host_to_win(const VkPhysicalDeviceLimits_host *in, VkPhysicalDeviceLimits *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
@ -600,6 +634,23 @@ static inline void convert_VkPhysicalDeviceProperties_host_to_win(const VkPhysic
|
|||
out->sparseProperties = in->sparseProperties;
|
||||
}
|
||||
|
||||
static inline void convert_VkPhysicalDeviceProperties2KHR_win_to_host(const VkPhysicalDeviceProperties2KHR *in, VkPhysicalDeviceProperties2KHR_host *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->pNext = in->pNext;
|
||||
out->sType = in->sType;
|
||||
}
|
||||
|
||||
static inline void convert_VkPhysicalDeviceProperties2KHR_host_to_win(const VkPhysicalDeviceProperties2KHR_host *in, VkPhysicalDeviceProperties2KHR *out)
|
||||
{
|
||||
if (!in) return;
|
||||
|
||||
out->sType = in->sType;
|
||||
out->pNext = in->pNext;
|
||||
convert_VkPhysicalDeviceProperties_host_to_win(&in->properties, &out->properties);
|
||||
}
|
||||
|
||||
static inline VkSparseMemoryBind_host *convert_VkSparseMemoryBind_array_win_to_host(const VkSparseMemoryBind *in, uint32_t count)
|
||||
{
|
||||
VkSparseMemoryBind_host *out;
|
||||
|
@ -1712,12 +1763,24 @@ static void WINAPI wine_vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDev
|
|||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFeatures(physicalDevice->phys_dev, pFeatures);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceFeatures2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2KHR *pFeatures)
|
||||
{
|
||||
TRACE("%p, %p\n", physicalDevice, pFeatures);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFeatures2KHR(physicalDevice->phys_dev, pFeatures);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties *pFormatProperties)
|
||||
{
|
||||
TRACE("%p, %d, %p\n", physicalDevice, format, pFormatProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFormatProperties(physicalDevice->phys_dev, format, pFormatProperties);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceFormatProperties2KHR(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2KHR *pFormatProperties)
|
||||
{
|
||||
TRACE("%p, %d, %p\n", physicalDevice, format, pFormatProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceFormatProperties2KHR(physicalDevice->phys_dev, format, pFormatProperties);
|
||||
}
|
||||
|
||||
static VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties *pImageFormatProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
|
@ -1735,6 +1798,24 @@ static VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties(VkPhysicalD
|
|||
#endif
|
||||
}
|
||||
|
||||
static VkResult WINAPI wine_vkGetPhysicalDeviceImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR *pImageFormatInfo, VkImageFormatProperties2KHR *pImageFormatProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkResult result;
|
||||
VkImageFormatProperties2KHR_host pImageFormatProperties_host;
|
||||
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
||||
|
||||
convert_VkImageFormatProperties2KHR_win_to_host(pImageFormatProperties, &pImageFormatProperties_host);
|
||||
result = physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2KHR(physicalDevice->phys_dev, pImageFormatInfo, &pImageFormatProperties_host);
|
||||
|
||||
convert_VkImageFormatProperties2KHR_host_to_win(&pImageFormatProperties_host, pImageFormatProperties);
|
||||
return result;
|
||||
#else
|
||||
TRACE("%p, %p, %p\n", physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
||||
return physicalDevice->instance->funcs.p_vkGetPhysicalDeviceImageFormatProperties2KHR(physicalDevice->phys_dev, pImageFormatInfo, pImageFormatProperties);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties *pMemoryProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
|
@ -1750,6 +1831,22 @@ static void WINAPI wine_vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice phy
|
|||
#endif
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceMemoryProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2KHR *pMemoryProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkPhysicalDeviceMemoryProperties2KHR_host pMemoryProperties_host;
|
||||
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
||||
|
||||
convert_VkPhysicalDeviceMemoryProperties2KHR_win_to_host(pMemoryProperties, &pMemoryProperties_host);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2KHR(physicalDevice->phys_dev, &pMemoryProperties_host);
|
||||
|
||||
convert_VkPhysicalDeviceMemoryProperties2KHR_host_to_win(&pMemoryProperties_host, pMemoryProperties);
|
||||
#else
|
||||
TRACE("%p, %p\n", physicalDevice, pMemoryProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceMemoryProperties2KHR(physicalDevice->phys_dev, pMemoryProperties);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties *pProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
|
@ -1765,18 +1862,46 @@ static void WINAPI wine_vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalD
|
|||
#endif
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2KHR *pProperties)
|
||||
{
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkPhysicalDeviceProperties2KHR_host pProperties_host;
|
||||
TRACE("%p, %p\n", physicalDevice, pProperties);
|
||||
|
||||
convert_VkPhysicalDeviceProperties2KHR_win_to_host(pProperties, &pProperties_host);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2KHR(physicalDevice->phys_dev, &pProperties_host);
|
||||
|
||||
convert_VkPhysicalDeviceProperties2KHR_host_to_win(&pProperties_host, pProperties);
|
||||
#else
|
||||
TRACE("%p, %p\n", physicalDevice, pProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceProperties2KHR(physicalDevice->phys_dev, pProperties);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties *pQueueFamilyProperties)
|
||||
{
|
||||
TRACE("%p, %p, %p\n", physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice->phys_dev, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceQueueFamilyProperties2KHR(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties2KHR *pQueueFamilyProperties)
|
||||
{
|
||||
TRACE("%p, %p, %p\n", physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceQueueFamilyProperties2KHR(physicalDevice->phys_dev, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t *pPropertyCount, VkSparseImageFormatProperties *pProperties)
|
||||
{
|
||||
TRACE("%p, %d, %d, %d, %#x, %d, %p, %p\n", physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSparseImageFormatProperties(physicalDevice->phys_dev, format, type, samples, usage, tiling, pPropertyCount, pProperties);
|
||||
}
|
||||
|
||||
static void WINAPI wine_vkGetPhysicalDeviceSparseImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR *pFormatInfo, uint32_t *pPropertyCount, VkSparseImageFormatProperties2KHR *pProperties)
|
||||
{
|
||||
TRACE("%p, %p, %p, %p\n", physicalDevice, pFormatInfo, pPropertyCount, pProperties);
|
||||
physicalDevice->instance->funcs.p_vkGetPhysicalDeviceSparseImageFormatProperties2KHR(physicalDevice->phys_dev, pFormatInfo, pPropertyCount, pProperties);
|
||||
}
|
||||
|
||||
static VkResult WINAPI wine_vkGetPipelineCacheData(VkDevice device, VkPipelineCache pipelineCache, size_t *pDataSize, void *pData)
|
||||
{
|
||||
TRACE("%p, 0x%s, %p, %p\n", device, wine_dbgstr_longlong(pipelineCache), pDataSize, pData);
|
||||
|
@ -2056,12 +2181,19 @@ static const struct vulkan_func vk_instance_dispatch_table[] =
|
|||
{"vkEnumerateDeviceLayerProperties", &wine_vkEnumerateDeviceLayerProperties},
|
||||
{"vkEnumeratePhysicalDevices", &wine_vkEnumeratePhysicalDevices},
|
||||
{"vkGetPhysicalDeviceFeatures", &wine_vkGetPhysicalDeviceFeatures},
|
||||
{"vkGetPhysicalDeviceFeatures2KHR", &wine_vkGetPhysicalDeviceFeatures2KHR},
|
||||
{"vkGetPhysicalDeviceFormatProperties", &wine_vkGetPhysicalDeviceFormatProperties},
|
||||
{"vkGetPhysicalDeviceFormatProperties2KHR", &wine_vkGetPhysicalDeviceFormatProperties2KHR},
|
||||
{"vkGetPhysicalDeviceImageFormatProperties", &wine_vkGetPhysicalDeviceImageFormatProperties},
|
||||
{"vkGetPhysicalDeviceImageFormatProperties2KHR", &wine_vkGetPhysicalDeviceImageFormatProperties2KHR},
|
||||
{"vkGetPhysicalDeviceMemoryProperties", &wine_vkGetPhysicalDeviceMemoryProperties},
|
||||
{"vkGetPhysicalDeviceMemoryProperties2KHR", &wine_vkGetPhysicalDeviceMemoryProperties2KHR},
|
||||
{"vkGetPhysicalDeviceProperties", &wine_vkGetPhysicalDeviceProperties},
|
||||
{"vkGetPhysicalDeviceProperties2KHR", &wine_vkGetPhysicalDeviceProperties2KHR},
|
||||
{"vkGetPhysicalDeviceQueueFamilyProperties", &wine_vkGetPhysicalDeviceQueueFamilyProperties},
|
||||
{"vkGetPhysicalDeviceQueueFamilyProperties2KHR", &wine_vkGetPhysicalDeviceQueueFamilyProperties2KHR},
|
||||
{"vkGetPhysicalDeviceSparseImageFormatProperties", &wine_vkGetPhysicalDeviceSparseImageFormatProperties},
|
||||
{"vkGetPhysicalDeviceSparseImageFormatProperties2KHR", &wine_vkGetPhysicalDeviceSparseImageFormatProperties2KHR},
|
||||
{"vkGetPhysicalDeviceSurfaceCapabilitiesKHR", &wine_vkGetPhysicalDeviceSurfaceCapabilitiesKHR},
|
||||
{"vkGetPhysicalDeviceSurfaceFormatsKHR", &wine_vkGetPhysicalDeviceSurfaceFormatsKHR},
|
||||
{"vkGetPhysicalDeviceSurfacePresentModesKHR", &wine_vkGetPhysicalDeviceSurfacePresentModesKHR},
|
||||
|
@ -2104,6 +2236,7 @@ static const char * const vk_device_extensions[] =
|
|||
|
||||
static const char *vk_instance_extensions[] =
|
||||
{
|
||||
"VK_KHR_get_physical_device_properties2",
|
||||
"VK_KHR_surface",
|
||||
"VK_KHR_win32_surface",
|
||||
};
|
||||
|
|
|
@ -290,6 +290,13 @@ typedef struct VkImageFormatProperties_host
|
|||
VkDeviceSize maxResourceSize;
|
||||
} VkImageFormatProperties_host;
|
||||
|
||||
typedef struct VkImageFormatProperties2KHR_host
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkImageFormatProperties_host imageFormatProperties;
|
||||
} VkImageFormatProperties2KHR_host;
|
||||
|
||||
typedef struct VkMemoryHeap_host
|
||||
{
|
||||
VkDeviceSize size;
|
||||
|
@ -304,6 +311,13 @@ typedef struct VkPhysicalDeviceMemoryProperties_host
|
|||
VkMemoryHeap_host memoryHeaps[VK_MAX_MEMORY_HEAPS];
|
||||
} VkPhysicalDeviceMemoryProperties_host;
|
||||
|
||||
typedef struct VkPhysicalDeviceMemoryProperties2KHR_host
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkPhysicalDeviceMemoryProperties_host memoryProperties;
|
||||
} VkPhysicalDeviceMemoryProperties2KHR_host;
|
||||
|
||||
typedef struct VkPhysicalDeviceLimits_host
|
||||
{
|
||||
uint32_t maxImageDimension1D;
|
||||
|
@ -427,6 +441,13 @@ typedef struct VkPhysicalDeviceProperties_host
|
|||
VkPhysicalDeviceSparseProperties sparseProperties;
|
||||
} VkPhysicalDeviceProperties_host;
|
||||
|
||||
typedef struct VkPhysicalDeviceProperties2KHR_host
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkPhysicalDeviceProperties_host properties;
|
||||
} VkPhysicalDeviceProperties2KHR_host;
|
||||
|
||||
typedef struct VkSparseMemoryBind_host
|
||||
{
|
||||
VkDeviceSize resourceOffset;
|
||||
|
@ -750,24 +771,43 @@ struct vulkan_instance_funcs
|
|||
VkResult (*p_vkEnumerateDeviceLayerProperties)(VkPhysicalDevice, uint32_t *, VkLayerProperties *);
|
||||
VkResult (*p_vkEnumeratePhysicalDevices)(VkInstance, uint32_t *, VkPhysicalDevice *);
|
||||
void (*p_vkGetPhysicalDeviceFeatures)(VkPhysicalDevice, VkPhysicalDeviceFeatures *);
|
||||
void (*p_vkGetPhysicalDeviceFeatures2KHR)(VkPhysicalDevice, VkPhysicalDeviceFeatures2KHR *);
|
||||
void (*p_vkGetPhysicalDeviceFormatProperties)(VkPhysicalDevice, VkFormat, VkFormatProperties *);
|
||||
void (*p_vkGetPhysicalDeviceFormatProperties2KHR)(VkPhysicalDevice, VkFormat, VkFormatProperties2KHR *);
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkResult (*p_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice, VkFormat, VkImageType, VkImageTiling, VkImageUsageFlags, VkImageCreateFlags, VkImageFormatProperties_host *);
|
||||
#else
|
||||
VkResult (*p_vkGetPhysicalDeviceImageFormatProperties)(VkPhysicalDevice, VkFormat, VkImageType, VkImageTiling, VkImageUsageFlags, VkImageCreateFlags, VkImageFormatProperties *);
|
||||
#endif
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
VkResult (*p_vkGetPhysicalDeviceImageFormatProperties2KHR)(VkPhysicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR *, VkImageFormatProperties2KHR_host *);
|
||||
#else
|
||||
VkResult (*p_vkGetPhysicalDeviceImageFormatProperties2KHR)(VkPhysicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR *, VkImageFormatProperties2KHR *);
|
||||
#endif
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
void (*p_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice, VkPhysicalDeviceMemoryProperties_host *);
|
||||
#else
|
||||
void (*p_vkGetPhysicalDeviceMemoryProperties)(VkPhysicalDevice, VkPhysicalDeviceMemoryProperties *);
|
||||
#endif
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
void (*p_vkGetPhysicalDeviceMemoryProperties2KHR)(VkPhysicalDevice, VkPhysicalDeviceMemoryProperties2KHR_host *);
|
||||
#else
|
||||
void (*p_vkGetPhysicalDeviceMemoryProperties2KHR)(VkPhysicalDevice, VkPhysicalDeviceMemoryProperties2KHR *);
|
||||
#endif
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
void (*p_vkGetPhysicalDeviceProperties)(VkPhysicalDevice, VkPhysicalDeviceProperties_host *);
|
||||
#else
|
||||
void (*p_vkGetPhysicalDeviceProperties)(VkPhysicalDevice, VkPhysicalDeviceProperties *);
|
||||
#endif
|
||||
#if defined(USE_STRUCT_CONVERSION)
|
||||
void (*p_vkGetPhysicalDeviceProperties2KHR)(VkPhysicalDevice, VkPhysicalDeviceProperties2KHR_host *);
|
||||
#else
|
||||
void (*p_vkGetPhysicalDeviceProperties2KHR)(VkPhysicalDevice, VkPhysicalDeviceProperties2KHR *);
|
||||
#endif
|
||||
void (*p_vkGetPhysicalDeviceQueueFamilyProperties)(VkPhysicalDevice, uint32_t *, VkQueueFamilyProperties *);
|
||||
void (*p_vkGetPhysicalDeviceQueueFamilyProperties2KHR)(VkPhysicalDevice, uint32_t *, VkQueueFamilyProperties2KHR *);
|
||||
void (*p_vkGetPhysicalDeviceSparseImageFormatProperties)(VkPhysicalDevice, VkFormat, VkImageType, VkSampleCountFlagBits, VkImageUsageFlags, VkImageTiling, uint32_t *, VkSparseImageFormatProperties *);
|
||||
void (*p_vkGetPhysicalDeviceSparseImageFormatProperties2KHR)(VkPhysicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR *, uint32_t *, VkSparseImageFormatProperties2KHR *);
|
||||
};
|
||||
|
||||
#define ALL_VK_DEVICE_FUNCS() \
|
||||
|
@ -898,11 +938,18 @@ struct vulkan_instance_funcs
|
|||
USE_VK_FUNC(vkEnumerateDeviceLayerProperties)\
|
||||
USE_VK_FUNC(vkEnumeratePhysicalDevices)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceFeatures)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceFeatures2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceFormatProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceFormatProperties2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceImageFormatProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceImageFormatProperties2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceMemoryProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceMemoryProperties2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceProperties2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceQueueFamilyProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceSparseImageFormatProperties)
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceQueueFamilyProperties2KHR)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceSparseImageFormatProperties)\
|
||||
USE_VK_FUNC(vkGetPhysicalDeviceSparseImageFormatProperties2KHR)
|
||||
|
||||
#endif /* __WINE_VULKAN_THUNKS_H */
|
||||
|
|
|
@ -1077,6 +1077,15 @@ typedef enum VkStructureType
|
|||
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
|
||||
VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
|
||||
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2_KHR = 1000059000,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR = 1000059001,
|
||||
VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR = 1000059002,
|
||||
VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059003,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2_KHR = 1000059004,
|
||||
VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2_KHR = 1000059005,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR = 1000059006,
|
||||
VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR = 1000059007,
|
||||
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR = 1000059008,
|
||||
VK_STRUCTURE_TYPE_MAX_ENUM = 0x7fffffff,
|
||||
} VkStructureType;
|
||||
|
||||
|
@ -1452,17 +1461,34 @@ typedef struct VkPhysicalDeviceFeatures
|
|||
VkBool32 inheritedQueries;
|
||||
} VkPhysicalDeviceFeatures;
|
||||
|
||||
typedef struct VkPipelineColorBlendAttachmentState
|
||||
typedef struct VkPhysicalDeviceImageFormatInfo2KHR
|
||||
{
|
||||
VkBool32 blendEnable;
|
||||
VkBlendFactor srcColorBlendFactor;
|
||||
VkBlendFactor dstColorBlendFactor;
|
||||
VkBlendOp colorBlendOp;
|
||||
VkBlendFactor srcAlphaBlendFactor;
|
||||
VkBlendFactor dstAlphaBlendFactor;
|
||||
VkBlendOp alphaBlendOp;
|
||||
VkColorComponentFlags colorWriteMask;
|
||||
} VkPipelineColorBlendAttachmentState;
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkFormat format;
|
||||
VkImageType type;
|
||||
VkImageTiling tiling;
|
||||
VkImageUsageFlags usage;
|
||||
VkImageCreateFlags flags;
|
||||
} VkPhysicalDeviceImageFormatInfo2KHR;
|
||||
|
||||
typedef struct VkPhysicalDeviceSparseProperties
|
||||
{
|
||||
VkBool32 residencyStandard2DBlockShape;
|
||||
VkBool32 residencyStandard2DMultisampleBlockShape;
|
||||
VkBool32 residencyStandard3DBlockShape;
|
||||
VkBool32 residencyAlignedMipSize;
|
||||
VkBool32 residencyNonResidentStrict;
|
||||
} VkPhysicalDeviceSparseProperties;
|
||||
|
||||
typedef struct VkPipelineCacheCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineCacheCreateFlags flags;
|
||||
size_t initialDataSize;
|
||||
const void *pInitialData;
|
||||
} VkPipelineCacheCreateInfo;
|
||||
|
||||
typedef struct VkPipelineInputAssemblyStateCreateInfo
|
||||
{
|
||||
|
@ -1683,6 +1709,13 @@ typedef struct VkExtent2D
|
|||
uint32_t height;
|
||||
} VkExtent2D;
|
||||
|
||||
typedef struct VkFormatProperties2KHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkFormatProperties formatProperties;
|
||||
} VkFormatProperties2KHR;
|
||||
|
||||
typedef struct VkImageFormatProperties
|
||||
{
|
||||
VkExtent3D maxExtent;
|
||||
|
@ -1692,6 +1725,20 @@ typedef struct VkImageFormatProperties
|
|||
VkDeviceSize WINE_VK_ALIGN(8) maxResourceSize;
|
||||
} VkImageFormatProperties;
|
||||
|
||||
typedef struct VkImageMemoryBarrier
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkAccessFlags srcAccessMask;
|
||||
VkAccessFlags dstAccessMask;
|
||||
VkImageLayout oldLayout;
|
||||
VkImageLayout newLayout;
|
||||
uint32_t srcQueueFamilyIndex;
|
||||
uint32_t dstQueueFamilyIndex;
|
||||
VkImage WINE_VK_ALIGN(8) image;
|
||||
VkImageSubresourceRange subresourceRange;
|
||||
} VkImageMemoryBarrier;
|
||||
|
||||
typedef struct VkImageSubresourceLayers
|
||||
{
|
||||
VkImageAspectFlags aspectMask;
|
||||
|
@ -1714,14 +1761,28 @@ typedef struct VkMemoryType
|
|||
uint32_t heapIndex;
|
||||
} VkMemoryType;
|
||||
|
||||
typedef struct VkPipelineCacheCreateInfo
|
||||
typedef struct VkPhysicalDeviceSparseImageFormatInfo2KHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineCacheCreateFlags flags;
|
||||
size_t initialDataSize;
|
||||
const void *pInitialData;
|
||||
} VkPipelineCacheCreateInfo;
|
||||
VkFormat format;
|
||||
VkImageType type;
|
||||
VkSampleCountFlagBits samples;
|
||||
VkImageUsageFlags usage;
|
||||
VkImageTiling tiling;
|
||||
} VkPhysicalDeviceSparseImageFormatInfo2KHR;
|
||||
|
||||
typedef struct VkPipelineColorBlendAttachmentState
|
||||
{
|
||||
VkBool32 blendEnable;
|
||||
VkBlendFactor srcColorBlendFactor;
|
||||
VkBlendFactor dstColorBlendFactor;
|
||||
VkBlendOp colorBlendOp;
|
||||
VkBlendFactor srcAlphaBlendFactor;
|
||||
VkBlendFactor dstAlphaBlendFactor;
|
||||
VkBlendOp alphaBlendOp;
|
||||
VkColorComponentFlags colorWriteMask;
|
||||
} VkPipelineColorBlendAttachmentState;
|
||||
|
||||
typedef struct VkPipelineDynamicStateCreateInfo
|
||||
{
|
||||
|
@ -1898,19 +1959,12 @@ typedef struct VkImageBlit
|
|||
VkOffset3D dstOffsets[2];
|
||||
} VkImageBlit;
|
||||
|
||||
typedef struct VkImageMemoryBarrier
|
||||
typedef struct VkImageFormatProperties2KHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkAccessFlags srcAccessMask;
|
||||
VkAccessFlags dstAccessMask;
|
||||
VkImageLayout oldLayout;
|
||||
VkImageLayout newLayout;
|
||||
uint32_t srcQueueFamilyIndex;
|
||||
uint32_t dstQueueFamilyIndex;
|
||||
VkImage WINE_VK_ALIGN(8) image;
|
||||
VkImageSubresourceRange subresourceRange;
|
||||
} VkImageMemoryBarrier;
|
||||
void *pNext;
|
||||
VkImageFormatProperties WINE_VK_ALIGN(8) imageFormatProperties;
|
||||
} VkImageFormatProperties2KHR;
|
||||
|
||||
typedef struct VkOffset2D
|
||||
{
|
||||
|
@ -1918,14 +1972,12 @@ typedef struct VkOffset2D
|
|||
int32_t y;
|
||||
} VkOffset2D;
|
||||
|
||||
typedef struct VkPhysicalDeviceSparseProperties
|
||||
typedef struct VkPhysicalDeviceFeatures2KHR
|
||||
{
|
||||
VkBool32 residencyStandard2DBlockShape;
|
||||
VkBool32 residencyStandard2DMultisampleBlockShape;
|
||||
VkBool32 residencyStandard3DBlockShape;
|
||||
VkBool32 residencyAlignedMipSize;
|
||||
VkBool32 residencyNonResidentStrict;
|
||||
} VkPhysicalDeviceSparseProperties;
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkPhysicalDeviceFeatures features;
|
||||
} VkPhysicalDeviceFeatures2KHR;
|
||||
|
||||
typedef struct VkPipelineShaderStageCreateInfo
|
||||
{
|
||||
|
@ -1938,11 +1990,12 @@ typedef struct VkPipelineShaderStageCreateInfo
|
|||
const VkSpecializationInfo *pSpecializationInfo;
|
||||
} VkPipelineShaderStageCreateInfo;
|
||||
|
||||
typedef struct VkRect2D
|
||||
typedef struct VkQueueFamilyProperties2KHR
|
||||
{
|
||||
VkOffset2D offset;
|
||||
VkExtent2D extent;
|
||||
} VkRect2D;
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkQueueFamilyProperties queueFamilyProperties;
|
||||
} VkQueueFamilyProperties2KHR;
|
||||
|
||||
typedef struct VkShaderModuleCreateInfo
|
||||
{
|
||||
|
@ -2060,50 +2113,43 @@ typedef struct VkPipelineColorBlendStateCreateInfo
|
|||
float blendConstants[4];
|
||||
} VkPipelineColorBlendStateCreateInfo;
|
||||
|
||||
typedef struct VkPipelineViewportStateCreateInfo
|
||||
typedef struct VkPushConstantRange
|
||||
{
|
||||
VkShaderStageFlags stageFlags;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
} VkPushConstantRange;
|
||||
|
||||
typedef struct VkRenderPassCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineViewportStateCreateFlags flags;
|
||||
uint32_t viewportCount;
|
||||
const VkViewport *pViewports;
|
||||
uint32_t scissorCount;
|
||||
const VkRect2D *pScissors;
|
||||
} VkPipelineViewportStateCreateInfo;
|
||||
VkRenderPassCreateFlags flags;
|
||||
uint32_t attachmentCount;
|
||||
const VkAttachmentDescription *pAttachments;
|
||||
uint32_t subpassCount;
|
||||
const VkSubpassDescription *pSubpasses;
|
||||
uint32_t dependencyCount;
|
||||
const VkSubpassDependency *pDependencies;
|
||||
} VkRenderPassCreateInfo;
|
||||
|
||||
typedef struct VkRenderPassBeginInfo
|
||||
typedef struct VkStencilOpState
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkRenderPass WINE_VK_ALIGN(8) renderPass;
|
||||
VkFramebuffer WINE_VK_ALIGN(8) framebuffer;
|
||||
VkRect2D renderArea;
|
||||
uint32_t clearValueCount;
|
||||
const VkClearValue *pClearValues;
|
||||
} VkRenderPassBeginInfo;
|
||||
VkStencilOp failOp;
|
||||
VkStencilOp passOp;
|
||||
VkStencilOp depthFailOp;
|
||||
VkCompareOp compareOp;
|
||||
uint32_t compareMask;
|
||||
uint32_t writeMask;
|
||||
uint32_t reference;
|
||||
} VkStencilOpState;
|
||||
|
||||
typedef struct VkSurfaceCapabilitiesKHR
|
||||
typedef struct VkVertexInputBindingDescription
|
||||
{
|
||||
uint32_t minImageCount;
|
||||
uint32_t maxImageCount;
|
||||
VkExtent2D currentExtent;
|
||||
VkExtent2D minImageExtent;
|
||||
VkExtent2D maxImageExtent;
|
||||
uint32_t maxImageArrayLayers;
|
||||
VkSurfaceTransformFlagsKHR supportedTransforms;
|
||||
VkSurfaceTransformFlagBitsKHR currentTransform;
|
||||
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
|
||||
VkImageUsageFlags supportedUsageFlags;
|
||||
} VkSurfaceCapabilitiesKHR;
|
||||
|
||||
typedef struct VkWin32SurfaceCreateInfoKHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkWin32SurfaceCreateFlagsKHR flags;
|
||||
HINSTANCE hinstance;
|
||||
HWND hwnd;
|
||||
} VkWin32SurfaceCreateInfoKHR;
|
||||
uint32_t binding;
|
||||
uint32_t stride;
|
||||
VkVertexInputRate inputRate;
|
||||
} VkVertexInputBindingDescription;
|
||||
|
||||
typedef struct VkBindSparseInfo
|
||||
{
|
||||
|
@ -2141,23 +2187,61 @@ typedef struct VkImageResolve
|
|||
VkExtent3D extent;
|
||||
} VkImageResolve;
|
||||
|
||||
typedef struct VkPushConstantRange
|
||||
typedef struct VkPhysicalDeviceMemoryProperties2KHR
|
||||
{
|
||||
VkShaderStageFlags stageFlags;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
} VkPushConstantRange;
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkPhysicalDeviceMemoryProperties WINE_VK_ALIGN(8) memoryProperties;
|
||||
} VkPhysicalDeviceMemoryProperties2KHR;
|
||||
|
||||
typedef struct VkStencilOpState
|
||||
typedef struct VkPipelineDepthStencilStateCreateInfo
|
||||
{
|
||||
VkStencilOp failOp;
|
||||
VkStencilOp passOp;
|
||||
VkStencilOp depthFailOp;
|
||||
VkCompareOp compareOp;
|
||||
uint32_t compareMask;
|
||||
uint32_t writeMask;
|
||||
uint32_t reference;
|
||||
} VkStencilOpState;
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineDepthStencilStateCreateFlags flags;
|
||||
VkBool32 depthTestEnable;
|
||||
VkBool32 depthWriteEnable;
|
||||
VkCompareOp depthCompareOp;
|
||||
VkBool32 depthBoundsTestEnable;
|
||||
VkBool32 stencilTestEnable;
|
||||
VkStencilOpState front;
|
||||
VkStencilOpState back;
|
||||
float minDepthBounds;
|
||||
float maxDepthBounds;
|
||||
} VkPipelineDepthStencilStateCreateInfo;
|
||||
|
||||
typedef struct VkPipelineVertexInputStateCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineVertexInputStateCreateFlags flags;
|
||||
uint32_t vertexBindingDescriptionCount;
|
||||
const VkVertexInputBindingDescription *pVertexBindingDescriptions;
|
||||
uint32_t vertexAttributeDescriptionCount;
|
||||
const VkVertexInputAttributeDescription *pVertexAttributeDescriptions;
|
||||
} VkPipelineVertexInputStateCreateInfo;
|
||||
|
||||
typedef struct VkRect2D
|
||||
{
|
||||
VkOffset2D offset;
|
||||
VkExtent2D extent;
|
||||
} VkRect2D;
|
||||
|
||||
typedef struct VkSparseImageFormatProperties2KHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkSparseImageFormatProperties properties;
|
||||
} VkSparseImageFormatProperties2KHR;
|
||||
|
||||
typedef struct VkWin32SurfaceCreateInfoKHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkWin32SurfaceCreateFlagsKHR flags;
|
||||
HINSTANCE hinstance;
|
||||
HWND hwnd;
|
||||
} VkWin32SurfaceCreateInfoKHR;
|
||||
|
||||
typedef struct VkClearRect
|
||||
{
|
||||
|
@ -2187,34 +2271,27 @@ typedef struct VkInstanceCreateInfo
|
|||
const char * const*ppEnabledExtensionNames;
|
||||
} VkInstanceCreateInfo;
|
||||
|
||||
typedef struct VkPipelineDepthStencilStateCreateInfo
|
||||
typedef struct VkPipelineLayoutCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineDepthStencilStateCreateFlags flags;
|
||||
VkBool32 depthTestEnable;
|
||||
VkBool32 depthWriteEnable;
|
||||
VkCompareOp depthCompareOp;
|
||||
VkBool32 depthBoundsTestEnable;
|
||||
VkBool32 stencilTestEnable;
|
||||
VkStencilOpState front;
|
||||
VkStencilOpState back;
|
||||
float minDepthBounds;
|
||||
float maxDepthBounds;
|
||||
} VkPipelineDepthStencilStateCreateInfo;
|
||||
VkPipelineLayoutCreateFlags flags;
|
||||
uint32_t setLayoutCount;
|
||||
const VkDescriptorSetLayout *pSetLayouts;
|
||||
uint32_t pushConstantRangeCount;
|
||||
const VkPushConstantRange *pPushConstantRanges;
|
||||
} VkPipelineLayoutCreateInfo;
|
||||
|
||||
typedef struct VkRenderPassCreateInfo
|
||||
typedef struct VkRenderPassBeginInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkRenderPassCreateFlags flags;
|
||||
uint32_t attachmentCount;
|
||||
const VkAttachmentDescription *pAttachments;
|
||||
uint32_t subpassCount;
|
||||
const VkSubpassDescription *pSubpasses;
|
||||
uint32_t dependencyCount;
|
||||
const VkSubpassDependency *pDependencies;
|
||||
} VkRenderPassCreateInfo;
|
||||
VkRenderPass WINE_VK_ALIGN(8) renderPass;
|
||||
VkFramebuffer WINE_VK_ALIGN(8) framebuffer;
|
||||
VkRect2D renderArea;
|
||||
uint32_t clearValueCount;
|
||||
const VkClearValue *pClearValues;
|
||||
} VkRenderPassBeginInfo;
|
||||
|
||||
typedef struct VkDescriptorSetLayoutCreateInfo
|
||||
{
|
||||
|
@ -2335,47 +2412,16 @@ typedef struct VkPhysicalDeviceLimits
|
|||
VkDeviceSize WINE_VK_ALIGN(8) nonCoherentAtomSize;
|
||||
} VkPhysicalDeviceLimits;
|
||||
|
||||
typedef struct VkPipelineLayoutCreateInfo
|
||||
typedef struct VkPipelineViewportStateCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineLayoutCreateFlags flags;
|
||||
uint32_t setLayoutCount;
|
||||
const VkDescriptorSetLayout *pSetLayouts;
|
||||
uint32_t pushConstantRangeCount;
|
||||
const VkPushConstantRange *pPushConstantRanges;
|
||||
} VkPipelineLayoutCreateInfo;
|
||||
|
||||
typedef struct VkVertexInputBindingDescription
|
||||
{
|
||||
uint32_t binding;
|
||||
uint32_t stride;
|
||||
VkVertexInputRate inputRate;
|
||||
} VkVertexInputBindingDescription;
|
||||
|
||||
typedef struct VkPhysicalDeviceProperties
|
||||
{
|
||||
uint32_t apiVersion;
|
||||
uint32_t driverVersion;
|
||||
uint32_t vendorID;
|
||||
uint32_t deviceID;
|
||||
VkPhysicalDeviceType deviceType;
|
||||
char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
|
||||
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
|
||||
VkPhysicalDeviceLimits WINE_VK_ALIGN(8) limits;
|
||||
VkPhysicalDeviceSparseProperties sparseProperties;
|
||||
} VkPhysicalDeviceProperties;
|
||||
|
||||
typedef struct VkPipelineVertexInputStateCreateInfo
|
||||
{
|
||||
VkStructureType sType;
|
||||
const void *pNext;
|
||||
VkPipelineVertexInputStateCreateFlags flags;
|
||||
uint32_t vertexBindingDescriptionCount;
|
||||
const VkVertexInputBindingDescription *pVertexBindingDescriptions;
|
||||
uint32_t vertexAttributeDescriptionCount;
|
||||
const VkVertexInputAttributeDescription *pVertexAttributeDescriptions;
|
||||
} VkPipelineVertexInputStateCreateInfo;
|
||||
VkPipelineViewportStateCreateFlags flags;
|
||||
uint32_t viewportCount;
|
||||
const VkViewport *pViewports;
|
||||
uint32_t scissorCount;
|
||||
const VkRect2D *pScissors;
|
||||
} VkPipelineViewportStateCreateInfo;
|
||||
|
||||
typedef struct VkGraphicsPipelineCreateInfo
|
||||
{
|
||||
|
@ -2400,6 +2446,40 @@ typedef struct VkGraphicsPipelineCreateInfo
|
|||
int32_t basePipelineIndex;
|
||||
} VkGraphicsPipelineCreateInfo;
|
||||
|
||||
typedef struct VkSurfaceCapabilitiesKHR
|
||||
{
|
||||
uint32_t minImageCount;
|
||||
uint32_t maxImageCount;
|
||||
VkExtent2D currentExtent;
|
||||
VkExtent2D minImageExtent;
|
||||
VkExtent2D maxImageExtent;
|
||||
uint32_t maxImageArrayLayers;
|
||||
VkSurfaceTransformFlagsKHR supportedTransforms;
|
||||
VkSurfaceTransformFlagBitsKHR currentTransform;
|
||||
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
|
||||
VkImageUsageFlags supportedUsageFlags;
|
||||
} VkSurfaceCapabilitiesKHR;
|
||||
|
||||
typedef struct VkPhysicalDeviceProperties
|
||||
{
|
||||
uint32_t apiVersion;
|
||||
uint32_t driverVersion;
|
||||
uint32_t vendorID;
|
||||
uint32_t deviceID;
|
||||
VkPhysicalDeviceType deviceType;
|
||||
char deviceName[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE];
|
||||
uint8_t pipelineCacheUUID[VK_UUID_SIZE];
|
||||
VkPhysicalDeviceLimits WINE_VK_ALIGN(8) limits;
|
||||
VkPhysicalDeviceSparseProperties sparseProperties;
|
||||
} VkPhysicalDeviceProperties;
|
||||
|
||||
typedef struct VkPhysicalDeviceProperties2KHR
|
||||
{
|
||||
VkStructureType sType;
|
||||
void *pNext;
|
||||
VkPhysicalDeviceProperties WINE_VK_ALIGN(8) properties;
|
||||
} VkPhysicalDeviceProperties2KHR;
|
||||
|
||||
VkResult VKAPI_CALL vkAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t *pImageIndex);
|
||||
VkResult VKAPI_CALL vkAllocateCommandBuffers(VkDevice device, const VkCommandBufferAllocateInfo *pAllocateInfo, VkCommandBuffer *pCommandBuffers);
|
||||
VkResult VKAPI_CALL vkAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAllocateInfo *pAllocateInfo, VkDescriptorSet *pDescriptorSets);
|
||||
|
@ -2518,12 +2598,19 @@ void VKAPI_CALL vkGetImageSparseMemoryRequirements(VkDevice device, VkImage imag
|
|||
void VKAPI_CALL vkGetImageSubresourceLayout(VkDevice device, VkImage image, const VkImageSubresource *pSubresource, VkSubresourceLayout *pLayout);
|
||||
PFN_vkVoidFunction VKAPI_CALL vkGetInstanceProcAddr(VkInstance instance, const char *pName);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures *pFeatures);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceFeatures2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures2KHR *pFeatures);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties *pFormatProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceFormatProperties2KHR(VkPhysicalDevice physicalDevice, VkFormat format, VkFormatProperties2KHR *pFormatProperties);
|
||||
VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties *pImageFormatProperties);
|
||||
VkResult VKAPI_CALL vkGetPhysicalDeviceImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceImageFormatInfo2KHR *pImageFormatInfo, VkImageFormatProperties2KHR *pImageFormatProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties *pMemoryProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceMemoryProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceMemoryProperties2KHR *pMemoryProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties *pProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceProperties2KHR(VkPhysicalDevice physicalDevice, VkPhysicalDeviceProperties2KHR *pProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties *pQueueFamilyProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceQueueFamilyProperties2KHR(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties2KHR *pQueueFamilyProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties(VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, uint32_t *pPropertyCount, VkSparseImageFormatProperties *pProperties);
|
||||
void VKAPI_CALL vkGetPhysicalDeviceSparseImageFormatProperties2KHR(VkPhysicalDevice physicalDevice, const VkPhysicalDeviceSparseImageFormatInfo2KHR *pFormatInfo, uint32_t *pPropertyCount, VkSparseImageFormatProperties2KHR *pProperties);
|
||||
VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR *pSurfaceCapabilities);
|
||||
VkResult VKAPI_CALL vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t *pSurfaceFormatCount, VkSurfaceFormatKHR *pSurfaceFormats);
|
||||
VkResult VKAPI_CALL vkGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice physicalDevice, VkSurfaceKHR surface, uint32_t *pPresentModeCount, VkPresentModeKHR *pPresentModes);
|
||||
|
|
Loading…
Reference in New Issue