Files
Seele/src/Engine/Graphics/ShaderCompiler.cpp
T
2023-01-21 18:43:21 +01:00

28 lines
563 B
C++

#include "ShaderCompiler.h"
#include "VertexShaderInput.h"
#include "Graphics.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);
}
}