From 676e02ed8dc8c327fbf5615631ce4d9acd3856c8 Mon Sep 17 00:00:00 2001 From: nek0 Date: Fri, 25 Aug 2023 01:10:38 +0200 Subject: [PATCH] more twiddling --- src/CommandBuffer.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CommandBuffer.hs b/src/CommandBuffer.hs index cf836a9..1a9a66d 100644 --- a/src/CommandBuffer.hs +++ b/src/CommandBuffer.hs @@ -23,7 +23,6 @@ import qualified VulkanMemoryAllocator as VMA import Types import Memory import Util -import Data.Maybe (fromMaybe) import Mesh (compactDraws) frameOverlap :: Int @@ -103,7 +102,7 @@ createFrames indirectBuffer <- createAllocatedBuffer allocator - (sizeOf (undefined :: Vk.DrawIndirectCommand)) + (maxObjects * sizeOf (undefined :: Vk.DrawIndirectCommand)) (Vk.BUFFER_USAGE_TRANSFER_DST_BIT .|. Vk.BUFFER_USAGE_STORAGE_BUFFER_BIT .|. Vk.BUFFER_USAGE_INDIRECT_BUFFER_BIT