diff --git a/projects/voxelization/src/main.cpp b/projects/voxelization/src/main.cpp index e2c8e60592b7b7b307cd2736e6ed7292571578c9..1899a3b1e439e67a5ccee7bc21bf7366c1db8b2e 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);