# HG changeset patch # User Sam # Date 1682603702 -25200 # Node ID a54a7fe284302ca5fe33827382f2a0b5b4746445 # Parent 40f5d804eca68ba29181c63b9336da382631ce47 add: more logging diff -r 40f5d804eca6 -r a54a7fe28430 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))