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

29 lines
604 B
C++
Raw Normal View History

2020-09-19 14:36:50 +02:00
#include "ShaderCompiler.h"
2021-10-19 23:04:38 +02:00
#include "Material/MaterialAsset.h"
2020-09-19 14:36:50 +02:00
#include "VertexShaderInput.h"
#include "Graphics.h"
2020-09-19 14:36:50 +02:00
using namespace Seele;
using namespace Seele::Gfx;
ShaderCompiler::ShaderCompiler(PGraphics graphics)
: graphics(graphics)
{
}
ShaderCompiler::~ShaderCompiler()
{
}
2021-10-19 23:04:38 +02:00
void ShaderCompiler::registerMaterial(PMaterialAsset material)
2020-09-19 14:36:50 +02:00
{
2020-10-03 11:00:10 +02:00
for(auto& type : VertexInputType::getTypeList())
2020-09-19 14:36:50 +02:00
{
material->createShaders(graphics, Gfx::RenderPassType::DepthPrepass, type);
material->createShaders(graphics, Gfx::RenderPassType::BasePass, type);
}
}