Mercurial > games > semicongine
changeset 614:a54a7fe28430
add: more logging
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 27 Apr 2023 20:55:02 +0700 |
parents | 40f5d804eca6 |
children | 91e6b2935934 |
files | src/semicongine/vulkan/buffer.nim |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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))