more twiddling

This commit is contained in:
nek0 2023-08-25 01:10:38 +02:00 committed by Amedeo Molnár
parent 167599df74
commit 676e02ed8d

View file

@ -23,7 +23,6 @@ import qualified VulkanMemoryAllocator as VMA
import Types import Types
import Memory import Memory
import Util import Util
import Data.Maybe (fromMaybe)
import Mesh (compactDraws) import Mesh (compactDraws)
frameOverlap :: Int frameOverlap :: Int
@ -103,7 +102,7 @@ createFrames
indirectBuffer <- createAllocatedBuffer indirectBuffer <- createAllocatedBuffer
allocator allocator
(sizeOf (undefined :: Vk.DrawIndirectCommand)) (maxObjects * sizeOf (undefined :: Vk.DrawIndirectCommand))
(Vk.BUFFER_USAGE_TRANSFER_DST_BIT .|. (Vk.BUFFER_USAGE_TRANSFER_DST_BIT .|.
Vk.BUFFER_USAGE_STORAGE_BUFFER_BIT .|. Vk.BUFFER_USAGE_STORAGE_BUFFER_BIT .|.
Vk.BUFFER_USAGE_INDIRECT_BUFFER_BIT Vk.BUFFER_USAGE_INDIRECT_BUFFER_BIT