projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ad4c87fc9294159bb91a53457f8c1909b06a9bc5
[demo]
/
src
/
vulkan
/
allocator.h
1
#ifndef ALLOCATOR_H_
2
#define ALLOCATOR_H_
3
4
#include <vulkan/vulkan.h>
5
6
struct DevMemBlock {
7
VkDeviceMemory dev_mem;
8
int offset;
9
int size;
10
};
11
12
bool vku_allocate(int size, DevMemBlock *block);
13
void vku_free(VkDeviceMemory gpu_memory);
14
15
#endif // ALLOCATOR_H_