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

27 lines
563 B
C++
Raw Normal View History

2020-09-19 14:36:50 +02:00
#include "ShaderCompiler.h"
#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()
{
}
2023-01-21 18:43:21 +01:00
void ShaderCompiler::registerMaterial(PMaterial 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);
}
}