import ../vk/vulkan

proc KB_csizet*(amount: int): csize_t = csize_t (amount * 1000) 
proc MB_csizet*(amount: int): csize_t = csize_t (amount * 1000 * 1000) 
proc GB_csizet*(amount: int): csize_t = csize_t (amount * 1000 * 1000 * 1000) 
proc KiB_csizet*(amount: int): csize_t =csize_t  (amount * 1024) 
proc MiB_csizet*(amount: int): csize_t =csize_t  (amount * 1024 * 1024) 
proc GiB_csizet*(amount: int): csize_t =csize_t  (amount * 1024 * 1024 * 1024) 

proc KB_int*(amount: int): int = (amount * 1000) 
proc MB_int*(amount: int): int = (amount * 1000 * 1000) 
proc GB_int*(amount: int): int = (amount * 1000 * 1000 * 1000) 
proc KiB_int*(amount: int): int = (amount * 1024) 
proc MiB_int*(amount: int): int = (amount * 1024 * 1024) 
proc GiB_int*(amount: int): int = (amount * 1024 * 1024 * 1024) 

proc KB_vkds*(amount: int): VkDeviceSize = VkDeviceSize(amount * 1000) 
proc MB_vkds*(amount: int): VkDeviceSize = VkDeviceSize(amount * 1000 * 1000) 
proc GB_vkds*(amount: int): VkDeviceSize = VkDeviceSize(amount * 1000 * 1000 * 1000) 
proc KiB_vkds*(amount: int): VkDeviceSize =VkDeviceSize (amount * 1024) 
proc MiB_vkds*(amount: int): VkDeviceSize =VkDeviceSize (amount * 1024 * 1024) 
proc GiB_vkds*(amount: int): VkDeviceSize =VkDeviceSize (amount * 1024 * 1024 * 1024)