mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-10 14:34:57 +00:00
18 lines
468 B
C++
18 lines
468 B
C++
#include "AssetLoaderPixelShader.h"
|
|
|
|
#include <cstring>
|
|
|
|
#include "ObjLoading.h"
|
|
#include "Game/IW4/IW4.h"
|
|
#include "Pool/GlobalAssetPool.h"
|
|
|
|
using namespace IW4;
|
|
|
|
void* AssetLoaderPixelShader::CreateEmptyAsset(const std::string& assetName, MemoryManager* memory)
|
|
{
|
|
auto* pixelShader = memory->Create<MaterialPixelShader>();
|
|
memset(pixelShader, 0, sizeof(MaterialPixelShader));
|
|
pixelShader->name = memory->Dup(assetName.c_str());
|
|
return pixelShader;
|
|
}
|