ULRE/src/SceneGraph/shader/ShaderResource.cpp

19 lines
413 B
C++
Raw Normal View History

2020-06-06 19:45:38 +08:00
#include<hgl/graph/shader/ShaderResource.h>
#include<hgl/filesystem/FileSystem.h>
namespace hgl
{
namespace graph
{
ShaderResource *LoadShaderResoruce(const OSString &filename)
{
int64 filesize;
uint8 *filedata=(uint8 *)filesystem::LoadFileToMemory(filename,filesize);
if(!filedata)return(nullptr);
}
}//namespace graph
}//namespace hgl