backup - needs fixing
[demo] / src / vulkan / shader-vk.h
index 88e07bc..1914a4f 100644 (file)
@@ -4,6 +4,13 @@
 #include <string>
 #include "shader.h"
 
+/* each shader program will correspond to a pipeline. The pipeline
+ * must have the cull, zbuffer etc since they can't be dynamic states */
+
+struct Pipeline {
+
+};
+
 class ShaderVK : public Shader
 {
 protected:
@@ -23,6 +30,7 @@ public:
 class ShaderProgramVK : public ShaderProgram
 {
 protected:
+       Pipeline pipeline;
        /*ubo*/
 
 public:
@@ -49,4 +57,4 @@ public:
 
        virtual void set_uniform_matrix(int location, const Mat4 &mat) override;
 };
-#endif // SHADER_VK_H_
\ No newline at end of file
+#endif // SHADER_VK_H_