enum ResourceType {
RES_DESC_SET,
RES_PUSH_CONST,
+ RES_SAMPLER
};
class ResourceVK {
private:
- ResourceType res_type;
+ bool allocate_ds();
+public:
+ ResourceType type;
VkDescriptorSetLayout layout;
VkPushConstantRange range;
+ int size;
-public:
ResourceVK();
~ResourceVK();
bool create_ds_layout(unsigned int num, VkDescriptorType type,
VkShaderStageFlags stage, VkSampler *sampler);
+ bool allocate();
+
+// bool create_push_constant();
};
#endif //RESOURCES_H_