Finality Engine
Loading...
Searching...
No Matches
SpirvCompiler.h
Go to the documentation of this file.
1#pragma once
2
3#include "ShaderCompiler.h"
4
5#include <shaderc/shaderc.hpp>
6
9{
10public:
11 SpirvCompiler() = default;
12 ~SpirvCompiler() override = default;
13
14 bool Compile(
15 const std::string& inputFile,
16 const std::string& outputFile
17 ) override;
18
19private:
20 shaderc_shader_kind GetShaderKind(const std::string& file);
21
22private:
23 shaderc::Compiler m_Compiler;
24 shaderc::CompileOptions m_Options;
25};
SpirvCompiler()=default
bool Compile(const std::string &inputFile, const std::string &outputFile) override
~SpirvCompiler() override=default