@@ -46,6 +46,8 @@ import qualified Language.C.Types as C
4646import Vulkan.CStruct.Extends
4747import Vulkan.Core10 as Vk
4848 hiding ( withImage )
49+ import qualified Vulkan.Core10 as CommandBufferBeginInfo (CommandBufferBeginInfo (.. ))
50+ import qualified Vulkan.Core10 as CommandPoolCreateInfo (CommandPoolCreateInfo (.. ))
4951import qualified Vulkan.Core10.DeviceInitialization as DI
5052import qualified Vulkan.Core10.Image as SL
5153import Vulkan.Dynamic ( DeviceCmds
@@ -64,6 +66,7 @@ import Vulkan.Utils.ShaderQQ.GLSL.Glslang
6466import Vulkan.Zero
6567import VulkanMemoryAllocator as VMA
6668 hiding ( getPhysicalDeviceProperties )
69+ import qualified VulkanMemoryAllocator as AllocationCreateInfo (AllocationCreateInfo (.. ))
6770
6871#if defined(RENDERDOC)
6972data RENDERDOC_API_1_1_2
@@ -269,8 +272,7 @@ render = do
269272 .|. IMAGE_USAGE_TRANSFER_SRC_BIT
270273 , initialLayout = IMAGE_LAYOUT_UNDEFINED
271274 }
272- allocationCreateInfo :: AllocationCreateInfo
273- allocationCreateInfo = zero { flags = ALLOCATION_CREATE_MAPPED_BIT
275+ allocationCreateInfo = zero { AllocationCreateInfo. flags = ALLOCATION_CREATE_MAPPED_BIT
274276 , usage = MEMORY_USAGE_GPU_ONLY
275277 }
276278 -- Allocate the image with VMA
@@ -288,8 +290,7 @@ render = do
288290 , usage = IMAGE_USAGE_TRANSFER_DST_BIT
289291 , initialLayout = IMAGE_LAYOUT_UNDEFINED
290292 }
291- cpuAllocationCreateInfo :: AllocationCreateInfo
292- cpuAllocationCreateInfo = zero { flags = ALLOCATION_CREATE_MAPPED_BIT
293+ cpuAllocationCreateInfo = zero { AllocationCreateInfo. flags = ALLOCATION_CREATE_MAPPED_BIT
293294 , usage = MEMORY_USAGE_GPU_TO_CPU
294295 }
295296 (_, (cpuImage, cpuImageAllocation, cpuImageAllocationInfo)) <- withImage'
@@ -432,9 +433,7 @@ render = do
432433
433434 -- Create a command buffer
434435 graphicsQueueFamilyIndex <- getGraphicsQueueFamilyIndex
435- let commandPoolCreateInfo :: CommandPoolCreateInfo
436- commandPoolCreateInfo =
437- zero { queueFamilyIndex = graphicsQueueFamilyIndex }
436+ let commandPoolCreateInfo = zero { CommandPoolCreateInfo. queueFamilyIndex = graphicsQueueFamilyIndex }
438437 (_, commandPool) <- withCommandPool' commandPoolCreateInfo
439438 let commandBufferAllocateInfo = zero { commandPool = commandPool
440439 , level = COMMAND_BUFFER_LEVEL_PRIMARY
@@ -448,7 +447,7 @@ render = do
448447 -- - Transition the images to be able to perform the copy
449448 -- - Copy the image to CPU mapped memory
450449 useCommandBuffer commandBuffer
451- zero { flags = COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT }
450+ zero { CommandBufferBeginInfo. flags = COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT }
452451 $ do
453452 let renderPassBeginInfo = zero
454453 { renderPass = renderPass
0 commit comments