backup - missing some
[demo] / src / vulkan / resources.h
diff --git a/src/vulkan/resources.h b/src/vulkan/resources.h
new file mode 100644 (file)
index 0000000..bbe1478
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef RESOURCES_H_
+#define RESOURCES_H_
+
+#include <vulkan/vulkan.h>
+
+enum ResourceType {
+       RES_DESC_SET,
+       RES_PUSH_CONST,
+};
+
+class ResourceVK {
+private:
+       ResourceType res_type;
+
+       VkDescriptorSetLayout layout;
+       VkPushConstantRange range;
+
+public:
+       ResourceVK();
+       ~ResourceVK();
+
+       bool create_ds_layout(unsigned int num, VkDescriptorType type,
+                       VkShaderStageFlags stage, VkSampler *sampler);
+};
+
+#endif //RESOURCES_H_