Improving Material shader code generation

This commit is contained in:
Dynamitos committed 2020-09-19 14:36:50 +02:00
1 parent 6814587b54
commit facbfed79c
72 files changed
+1049 -329

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#pragma once
#include "GraphicsResources.h"
namespace Seele
{
DECLARE_REF(Material);
DECLARE_NAME_REF(Gfx, Graphics);
namespace Gfx
{
class ShaderCompiler
{
public:
ShaderCompiler(PGraphics graphics);
~ShaderCompiler();
void registerMaterial(PMaterial material);
private:
Array<PMaterial> pendingCompiles;
PGraphics graphics;
};
DEFINE_REF(ShaderCompiler);
} // namespace Gfx
} // namespace Seele