# HG changeset patch # User Sam # Date 1682603702 -25200 # Node ID c6f6757e81262ceef4d7a88cfb8a2918a4a2adf8 # Parent 260965aefc39f26d20c0e1552ad6e052992d2d09 add: more logging diff -r 260965aefc39 -r c6f6757e8126 src/semicongine/vulkan/buffer.nim --- a/src/semicongine/vulkan/buffer.nim Thu Apr 27 20:48:48 2023 +0700 +++ b/src/semicongine/vulkan/buffer.nim Thu Apr 27 20:55:02 2023 +0700 @@ -2,6 +2,7 @@ import std/typetraits import std/sequtils import std/tables +import std/logging import ./api import ./device @@ -42,6 +43,7 @@ flags.add VK_MEMORY_PROPERTY_HOST_COHERENT_BIT buffer.memoryAllocated = true + debug "Allocating memory for buffer: ", buffer.size, " bytes ", flags buffer.memory = buffer.device.allocate(buffer.size, flags) checkVkResult buffer.device.vk.vkBindBufferMemory(buffer.vk, buffer.memory.vk, VkDeviceSize(0))