projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
no clue :) just to push it
[demo]
/
src
/
vulkan
/
resources.h
1
#ifndef RESOURCES_H_
2
#define RESOURCES_H_
3
4
#include <vulkan/vulkan.h>
5
6
enum ResourceType {
7
RES_DESC_SET,
8
RES_PUSH_CONST,
9
RES_SAMPLER
10
};
11
12
class ResourceVK {
13
private:
14
bool allocate_ds();
15
16
public:
17
ResourceType type;
18
VkDescriptorSetLayout layout;
19
VkPushConstantRange range;
20
int size;
21
22
ResourceVK();
23
~ResourceVK();
24
25
bool create_ds_layout(unsigned int num, VkDescriptorType type,
26
VkShaderStageFlags stage, VkSampler *sampler);
27
bool allocate();
28
29
// bool create_push_constant();
30
};
31
32
#endif //RESOURCES_H_