projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
buffer allocation
[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_