WIP Vulkan Pipeline refactoring

This commit is contained in:
2021-08-16 22:04:02 -07:00
parent 0e2bd45b7f
commit 817cd32044
7 changed files with 37 additions and 39 deletions

View File

@@ -35,6 +35,7 @@
#include "KRCamera.h"
#include "KRDataBlock.h"
#include "KRNode.h"
#include "KRSurface.h"
using std::map;
using std::vector;
@@ -51,7 +52,7 @@ class KRPipelineManager : public KRContextObject {
public:
KRPipelineManager(KRContext &context);
virtual ~KRPipelineManager();
void createPipelines(KrSurfaceHandle surface);
void createPipelines(KRSurface& surface);
KRPipeline* get(const char* szKey);
KRPipeline *getPipeline(const std::string &pipeline_name, KRCamera *pCamera, const std::vector<KRPointLight *> &point_lights, const std::vector<KRDirectionalLight *> &directional_lights, const std::vector<KRSpotLight *>&spot_lights, int bone_count, bool bDiffuseMap, bool bNormalMap, bool bSpecMap, bool bReflectionMap, bool bReflectionCubeMap, bool bLightMap, bool bDiffuseMapScale,bool bSpecMapScale, bool bNormalMapScale, bool bReflectionMapScale, bool bDiffuseMapOffset, bool bSpecMapOffset, bool bNormalMapOffset, bool bReflectionMapOffset, bool bAlphaTest, bool bAlphaBlend, KRNode::RenderPass renderPass, bool bRimColor = false);