bbe1478cd06c9087298ef11ea9226903e4ac98b7
[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_