Start refactoring shader system

This commit is contained in:
2021-01-14 16:01:11 +01:00
parent 43a41e5e58
commit eec33c30dc
4 changed files with 165 additions and 55 deletions

View File

@@ -9,6 +9,7 @@
#include "IRecordable.hpp"
#include "Base/ICloseable.hpp"
#include <vulkan/vulkan.hpp>
#include <vector>
namespace openVulkanoCpp
{
@@ -26,8 +27,9 @@ namespace openVulkanoCpp
{
Scene::Shader* shader = nullptr;
vk::Device device;
vk::ShaderModule shaderModuleVertex, shaderModuleFragment;
vk::Pipeline pipeline;
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
IShaderOwner* owner;
Context* context;