2020-09-19 14:36:50 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "GraphicsResources.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
2021-04-01 16:40:14 +02:00
|
|
|
DECLARE_REF(Material)
|
|
|
|
|
DECLARE_NAME_REF(Gfx, Graphics)
|
2020-09-19 14:36:50 +02:00
|
|
|
namespace Gfx
|
|
|
|
|
{
|
|
|
|
|
class ShaderCompiler
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ShaderCompiler(PGraphics graphics);
|
|
|
|
|
~ShaderCompiler();
|
|
|
|
|
void registerMaterial(PMaterial material);
|
|
|
|
|
private:
|
|
|
|
|
Array<PMaterial> pendingCompiles;
|
|
|
|
|
PGraphics graphics;
|
|
|
|
|
};
|
2021-04-01 16:40:14 +02:00
|
|
|
DEFINE_REF(ShaderCompiler)
|
2020-09-19 14:36:50 +02:00
|
|
|
} // namespace Gfx
|
|
|
|
|
} // namespace Seele
|