X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fvulkan%2Fresources.h;fp=src%2Fvulkan%2Fresources.h;h=5096a78484e796283080ef36bae6e201089b147b;hp=5515779cc3622a3f37ddd65873044f52ac0ec7c5;hb=52e22c0e7bde79402d63c7e0453fb4ec6efc66cf;hpb=9922a7c30b64d74b424cb5783b08497396d2365c diff --git a/src/vulkan/resources.h b/src/vulkan/resources.h index 5515779..5096a78 100644 --- a/src/vulkan/resources.h +++ b/src/vulkan/resources.h @@ -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_