2021-05-27 19:54:05 +04:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Graphics/Shader.h"
|
|
|
|
|
2021-07-29 17:12:13 +04:30
|
|
|
#include "Base/Base.h"
|
2021-07-05 01:59:18 +04:30
|
|
|
|
2021-10-02 08:51:54 +03:30
|
|
|
#include "Utility/FileManager.h"
|
|
|
|
|
2021-09-13 12:17:26 +04:30
|
|
|
#include <ShaderConductor/ShaderConductor.hpp>
|
|
|
|
|
2021-05-27 19:54:05 +04:30
|
|
|
namespace Light {
|
|
|
|
|
|
|
|
class glShader : public Shader
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
unsigned int m_ShaderID;
|
|
|
|
|
|
|
|
public:
|
2021-10-02 08:51:54 +03:30
|
|
|
glShader(BasicFileHandle vertexFile, BasicFileHandle pixelFile);
|
2021-05-27 19:54:05 +04:30
|
|
|
~glShader();
|
|
|
|
|
|
|
|
void Bind() override;
|
|
|
|
void UnBind() override;
|
2021-09-13 12:17:26 +04:30
|
|
|
|
|
|
|
private:
|
2021-10-02 08:51:54 +03:30
|
|
|
ShaderConductor::Compiler::ResultDesc CompileHLSL(BasicFileHandle file, Shader::Stage stage);
|
2021-09-13 12:17:26 +04:30
|
|
|
|
|
|
|
unsigned int CompileShader(const std::string& source, Shader::Stage stage);
|
2021-05-27 19:54:05 +04:30
|
|
|
};
|
|
|
|
|
|
|
|
}
|