From e74a10f41d52274acba60bef5e28d9d5d13bf162 Mon Sep 17 00:00:00 2001 From: Alexander Gauggel <agauggel@uni-koblenz.de> Date: Fri, 18 Jun 2021 17:46:01 +0200 Subject: [PATCH] [#55] Fix little oopsie --- projects/voxelization/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/voxelization/src/main.cpp b/projects/voxelization/src/main.cpp index e2c8e605..1899a3b1 100644 --- a/projects/voxelization/src/main.cpp +++ b/projects/voxelization/src/main.cpp @@ -194,7 +194,7 @@ int main(int argc, const char** argv) { vkcv::asset::Texture& sceneTexture = scene.textures[baseColorIndex]; - sceneImages.push_back(core.createImage(vk::Format::eR8G8B8A8Srgb, sceneTexture.w, sceneTexture.h)); + sceneImages.push_back(core.createImage(vk::Format::eR8G8B8A8Srgb, sceneTexture.w, sceneTexture.h, 1, true)); sceneImages.back().fill(sceneTexture.data.data()); sceneImages.back().generateMipChainImmediate(); sceneImages.back().switchLayout(vk::ImageLayout::eShaderReadOnlyOptimal); -- GitLab