backup before trying terrain change
[demo] / src / vulkan / resources.h
index 5515779..5096a78 100644 (file)
@@ -6,19 +6,27 @@
 enum ResourceType {
        RES_DESC_SET,
        RES_PUSH_CONST,
+       RES_SAMPLER
 };
 
 class ResourceVK {
+private:
+       bool allocate_ds();
+
 public:
        ResourceType type;
        VkDescriptorSetLayout layout;
        VkPushConstantRange range;
+       int size;
 
        ResourceVK();
        ~ResourceVK();
 
        bool create_ds_layout(unsigned int num, VkDescriptorType type,
                        VkShaderStageFlags stage, VkSampler *sampler);
+       bool allocate();
+
+//     bool create_push_constant();
 };
 
 #endif //RESOURCES_H_