Merge pull request #2470 from jpark37/add-vulkan-format

win-capture: Support VK_FORMAT_A8B8G8R8_UNORM_PACK32
This commit is contained in:
Jim 2020-03-07 10:38:53 -08:00 committed by GitHub
commit 9d5fb57709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,8 @@
* THIS IS YOUR ONLY WARNING. */
#define HOOK_VER_MAJOR 1
#define HOOK_VER_MINOR 0
#define HOOK_VER_PATCH 3
#define HOOK_VER_MINOR 1
#define HOOK_VER_PATCH 0
#define STRINGIFY(s) #s
#define MAKE_VERSION_NAME(major, minor, patch) \

View File

@ -457,6 +457,7 @@ DXGI_FORMAT vk_format_to_dxgi(VkFormat format)
dxgi_format = DXGI_FORMAT_B8G8R8A8_UNORM;
break;
case VK_FORMAT_A8B8G8R8_UNORM_PACK32:
dxgi_format = DXGI_FORMAT_R8G8B8A8_UNORM;
break;
case VK_FORMAT_A8B8G8R8_SNORM_PACK32:
break;