projects
/
demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
backup - missing some
[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
};
10
11
class ResourceVK {
12
private:
13
ResourceType res_type;
14
15
VkDescriptorSetLayout layout;
16
VkPushConstantRange range;
17
18
public:
19
ResourceVK();
20
~ResourceVK();
21
22
bool create_ds_layout(unsigned int num, VkDescriptorType type,
23
VkShaderStageFlags stage, VkSampler *sampler);
24
};
25
26
#endif //RESOURCES_H_