From 6f1ab815c80c0af01f48e8d2b28bb862716d5c65 Mon Sep 17 00:00:00 2001 From: saschawillems Date: Mon, 30 May 2016 21:00:47 +0200 Subject: [PATCH] Use device local memory property flag instead of heap flag (Fixes #161) --- bloom/bloom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bloom/bloom.cpp b/bloom/bloom.cpp index aa51cda3..3949d657 100644 --- a/bloom/bloom.cpp +++ b/bloom/bloom.cpp @@ -347,7 +347,7 @@ public: VK_CHECK_RESULT(vkCreateImage(device, &image, nullptr, &frameBuf->depth.image)); vkGetImageMemoryRequirements(device, frameBuf->depth.image, &memReqs); memAlloc.allocationSize = memReqs.size; - memAlloc.memoryTypeIndex = getMemoryType(memReqs.memoryTypeBits, VK_MEMORY_HEAP_DEVICE_LOCAL_BIT); + memAlloc.memoryTypeIndex = getMemoryType(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); VK_CHECK_RESULT(vkAllocateMemory(device, &memAlloc, nullptr, &frameBuf->depth.mem)); VK_CHECK_RESULT(vkBindImageMemory(device, frameBuf->depth.image, frameBuf->depth.mem, 0));