From f721fac45d8d2259d0a82df495729ed823cf731a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 24 Jan 2021 16:44:17 +0100 Subject: [PATCH] Vk: don't use ImageUsage::Sampled on a linear image. SwiftShader doesn't support that and we don't actually need it there. --- src/Magnum/Vk/Test/ImageVkTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Vk/Test/ImageVkTest.cpp b/src/Magnum/Vk/Test/ImageVkTest.cpp index ae6a2274f..bb012ee98 100644 --- a/src/Magnum/Vk/Test/ImageVkTest.cpp +++ b/src/Magnum/Vk/Test/ImageVkTest.cpp @@ -282,7 +282,7 @@ template void ImageVkTest::wrap() { void ImageVkTest::memoryRequirements() { /* Use linear tiling for a deterministic memory size */ - ImageCreateInfo2D info{ImageUsage::Sampled, PixelFormat::RGBA8Unorm, {128, 64}, 1}; + ImageCreateInfo2D info{ImageUsage::TransferDestination, PixelFormat::RGBA8Unorm, {128, 64}, 1}; info->tiling = VK_IMAGE_TILING_LINEAR; Image image{device(), info, NoAllocate};