diff --git a/examples/texturesparseresidency/texturesparseresidency.cpp b/examples/texturesparseresidency/texturesparseresidency.cpp index 27e95e73..9bc069d2 100644 --- a/examples/texturesparseresidency/texturesparseresidency.cpp +++ b/examples/texturesparseresidency/texturesparseresidency.cpp @@ -1,7 +1,7 @@ /* * Vulkan Example - Sparse texture residency example * -* Copyright (C) 2016-2021 by Sascha Willems - www.saschawillems.de +* Copyright (C) 2016-2023 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ @@ -315,11 +315,6 @@ void VulkanExample::prepareSparseTexture(uint32_t width, uint32_t height, uint32 // Calculate number of required sparse memory bindings by alignment assert((sparseImageMemoryReqs.size % sparseImageMemoryReqs.alignment) == 0); texture.memoryTypeIndex = vulkanDevice->getMemoryType(sparseImageMemoryReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); - - // Get sparse bindings - uint32_t sparseBindsCount = static_cast(sparseImageMemoryReqs.size / sparseImageMemoryReqs.alignment); - std::vector sparseMemoryBinds(sparseBindsCount); - texture.sparseImageMemoryRequirements = sparseMemoryReq; // The mip tail contains all mip levels > sparseMemoryReq.imageMipTailFirstLod