Browse Source

Vk: don't use ImageUsage::Sampled on a linear image.

SwiftShader doesn't support that and we don't actually need it there.
pull/494/head
Vladimír Vondruš 5 years ago
parent
commit
f721fac45d
  1. 2
      src/Magnum/Vk/Test/ImageVkTest.cpp

2
src/Magnum/Vk/Test/ImageVkTest.cpp

@ -282,7 +282,7 @@ template<class T> 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};

Loading…
Cancel
Save