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