[WIP] Refactor creation of descriptorsets
This commit is contained in:
@@ -30,6 +30,8 @@ namespace openVulkanoCpp
|
||||
std::vector<vk::ShaderModule> shaderModules; // TODO manage live time somewhere else to allow sharing of shader programs
|
||||
std::vector<vk::PipelineShaderStageCreateInfo> shaderStageCreateInfo;
|
||||
vk::Pipeline pipeline; // TODO pipeline and shader config should be split
|
||||
vk::DescriptorSetLayout descriptorSetLayout;
|
||||
vk::PipelineLayout pipelineLayout;
|
||||
IShaderOwner* owner = nullptr;
|
||||
Context* context = nullptr;
|
||||
|
||||
@@ -41,12 +43,14 @@ namespace openVulkanoCpp
|
||||
|
||||
void Resize();
|
||||
|
||||
void Record(vk::CommandBuffer& cmdBuffer, uint32_t bufferId) override;
|
||||
void Record(VulkanDrawContext* context) override;
|
||||
|
||||
void Close() override;
|
||||
|
||||
private:
|
||||
void BuildPipeline();
|
||||
|
||||
void CreatePipelineLayout();
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user