You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
NOTE: OpenVDB's typeNameAsString will now return "<unknown>" for non-specialized types rather than calling rtti functions to get the typename so that we don't need to turn on rtti just for that #jira UE-210180 #rb tim.doerries, zack.neyland [CL 32521540 by james singer in ue5-main branch]
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SparseVolumeTextureModule.h"
|
|
|
|
#include "SparseVolumeTextureOpenVDB.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "SparseVolumeTextureModule"
|
|
|
|
IMPLEMENT_MODULE(FSparseVolumeTextureModule, SparseVolumeTexture);
|
|
|
|
template<typename T>
|
|
static void RegisterOpenVDBGrid()
|
|
{
|
|
if (!T::isRegistered())
|
|
{
|
|
T::registerGrid();
|
|
}
|
|
}
|
|
|
|
void FSparseVolumeTextureModule::StartupModule()
|
|
{
|
|
#if PLATFORM_WINDOWS || PLATFORM_LINUX
|
|
// Global registration of the vdb types.
|
|
openvdb::initialize();
|
|
|
|
RegisterOpenVDBGrid<FOpenVDBHalf1Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBHalf2Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBHalf3Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBHalf4Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBFloat1Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBFloat2Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBFloat3Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBFloat4Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBDouble1Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBDouble2Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBDouble3Grid>();
|
|
RegisterOpenVDBGrid<FOpenVDBDouble4Grid>();
|
|
#endif
|
|
}
|
|
|
|
void FSparseVolumeTextureModule::ShutdownModule()
|
|
{
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|