7 class ShaderVK : public Shader
13 virtual bool create(char *buf, unsigned int bsz, const char *fname) override;
19 virtual bool load(const char *fname, SType type);
20 virtual void destroy() override;
23 class ShaderProgramVK : public ShaderProgram
30 virtual ~ShaderProgramVK();
32 virtual bool create() override;
33 virtual bool use() const override;
34 virtual bool link() override;
35 virtual void destroy() override;
36 virtual void attach_shader(Shader *shader) override;
38 virtual int get_uniform_location(const char *name) const override;
40 virtual void set_uniformi(int location, int value) override;
41 virtual void set_uniformi(int location, int x, int y) override;
42 virtual void set_uniformi(int location, int x, int y, int z) override;
43 virtual void set_uniformi(int location, int x, int y, int z, int w) override;
45 virtual void set_uniformf(int location, float value) override;
46 virtual void set_uniformf(int location, float x, float y) override;
47 virtual void set_uniformf(int location, float x, float y, float z) override;
48 virtual void set_uniformf(int location, float x, float y, float z, float w) override;
50 virtual void set_uniform_matrix(int location, const Mat4 &mat) override;
52 #endif // SHADER_VK_H_