From 829b33a77e194dac5b1350301e7b66389a6fa4b3 Mon Sep 17 00:00:00 2001 From: niki Date: Fri, 4 Feb 2022 20:01:59 +0100 Subject: [PATCH] make vulkan::Shder non abstract --- src/modules/graphics/vulkan/Shader.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/modules/graphics/vulkan/Shader.h b/src/modules/graphics/vulkan/Shader.h index 1cdedd605..45f552e2a 100644 --- a/src/modules/graphics/vulkan/Shader.h +++ b/src/modules/graphics/vulkan/Shader.h @@ -20,6 +20,26 @@ namespace love { return shaderStages; } + void attach() override {} + + ptrdiff_t getHandle() const { return 0; } + + std::string getWarnings() const override { return ""; } + + int getVertexAttributeIndex(const std::string& name) override { return 0; } + + const UniformInfo* getUniformInfo(const std::string& name) const override { return nullptr; } + const UniformInfo* getUniformInfo(BuiltinUniform builtin) const override { return nullptr; } + + void updateUniform(const UniformInfo* info, int count) override {} + + void sendTextures(const UniformInfo* info, Texture** textures, int count) override {} + void sendBuffers(const UniformInfo* info, love::graphics::Buffer** buffers, int count) override {} + + bool hasUniform(const std::string& name) const override { return false; } + + void setVideoTextures(Texture* ytexture, Texture* cbtexture, Texture* crtexture) override {} + private: std::vector shaderStages; };