GPU: Add missing virtual destructor to ShaderCompiler

This commit is contained in:
Miguel Pozo 2024-06-06 15:50:09 +02:00
parent f7797a90f6
commit a249e93ad1
2 changed files with 4 additions and 2 deletions

@ -173,6 +173,8 @@ class ShaderCompiler {
};
public:
virtual ~ShaderCompiler(){};
Shader *compile(const shader::ShaderCreateInfo &info, bool is_batch_compilation);
virtual BatchHandle batch_compile(Span<const shader::ShaderCreateInfo *> &infos) = 0;
@ -193,7 +195,7 @@ class ShaderCompilerGeneric : public ShaderCompiler {
Map<BatchHandle, Batch> batches;
public:
~ShaderCompilerGeneric();
virtual ~ShaderCompilerGeneric() override;
virtual BatchHandle batch_compile(Span<const shader::ShaderCreateInfo *> &infos) override;
virtual bool batch_is_ready(BatchHandle handle) override;

@ -278,7 +278,7 @@ class GLShaderCompiler : public ShaderCompiler {
bool worker_is_lost(GLCompilerWorker *&worker);
public:
~GLShaderCompiler();
virtual ~GLShaderCompiler() override;
virtual BatchHandle batch_compile(Span<const shader::ShaderCreateInfo *> &infos) override;
virtual bool batch_is_ready(BatchHandle handle) override;