aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-12-06 15:58:00 +0100
committerAndre Weissflog <floooh@gmail.com>2025-12-06 15:58:00 +0100
commit2438e048f03431f25e13f3d5fe9668d933d8a322 (patch)
treed3aae82ff968cefcf0ed571fe68eb25711a9f677 /sokol_gfx.h
parentea9f4c53fecdfc87b91a9cec82f5631c7b8362ec (diff)
sokol_gfx.h vk: fix vulkan backend compile errors
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 546b64c4..3778c50a 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -19165,7 +19165,7 @@ _SOKOL_PRIVATE VkDeviceMemory _sg_vk_mem_alloc_device_memory(_sg_vk_memtype_t me
alloc_info.memoryTypeIndex = (uint32_t) mem_type_index;
VkDeviceMemory vk_dev_mem = 0;
VkResult res = vkAllocateMemory(_sg.vk.dev, &alloc_info, 0, &vk_dev_mem);
- _sg_stats_inc(vk.num_allocate_memory, 1);
+ _sg_stats_inc(vk.num_allocate_memory);
_sg_stats_add(vk.size_allocate_memory, mem_reqs->size);
if (res != VK_SUCCESS) {
_SG_ERROR(VULKAN_ALLOCATE_MEMORY_FAILED);
@@ -19179,7 +19179,7 @@ _SOKOL_PRIVATE void _sg_vk_mem_free_device_memory(VkDeviceMemory vk_dev_mem) {
SOKOL_ASSERT(_sg.vk.dev);
SOKOL_ASSERT(vk_dev_mem);
vkFreeMemory(_sg.vk.dev, vk_dev_mem, 0);
- _sg_stats_inc(vk.num_free_memory, 1);
+ _sg_stats_inc(vk.num_free_memory);
}
_SOKOL_PRIVATE bool _sg_vk_mem_alloc_buffer_device_memory(_sg_buffer_t* buf) {
@@ -19278,7 +19278,7 @@ _SOKOL_PRIVATE void _sg_vk_delete_queue_add(_sg_vk_delete_queue_destructor_t des
queue->items[queue->index].destructor = destructor;
queue->items[queue->index].obj = obj;
queue->index += 1;
- _sg_stats_inc(vk.num_delete_queue_added, 1);
+ _sg_stats_inc(vk.num_delete_queue_added);
}
// double-buffer system for any non-blocking CPU => GPU data