Files
Seele/src/Engine/Graphics/ShaderCompiler.cpp
T

28 lines
571 B
C++
Raw Normal View History

2020-09-19 14:36:50 +02:00
#include "ShaderCompiler.h"
#include "Material/Material.h"
#include "VertexShaderInput.h"
using namespace Seele;
using namespace Seele::Gfx;
ShaderCompiler::ShaderCompiler(PGraphics graphics)
: graphics(graphics)
{
}
ShaderCompiler::~ShaderCompiler()
{
}
void ShaderCompiler::registerMaterial(PMaterial material)
{
for(auto type : VertexInputType::getTypeList())
{
material->createShaders(graphics, Gfx::RenderPassType::DepthPrepass, type);
material->createShaders(graphics, Gfx::RenderPassType::BasePass, type);
}
}