Files
UnrealEngineUWP/Engine/Source/Editor/SparseVolumeTexture/SparseVolumeTexture.Build.cs
sebastien hillaire a831062e45 Sparse volumetexture initial commit.
Sparse Volume Texture asset from imported OpenVDB (only a single float channel for now). Static or animated sequence.
It will be possible to generate SVT at runtime from GPU later.
Using FEditorBulkData for handling raw source without loading everything when not caching or cooking.
BulkData used at runtime for loading. No streaming yet.
Importer with dependency on OpenVDB is in a SparseVolumeTexture module only loaded when in editor

Sparse volume texture can be sampled from any materials (sample, sample parameter) and overridden on material instance and material instance dynamic.

Added support for uint in compiler (fetch from page table, see SparseVolumeTextureGetVoxelCoord)
Volume texture with u8 VirtualTextureLayerIndex!=255 (INDEX_NONE) are sparse texture. The layer index then represent what texture/attribute to sample.

#preflight https://horde.devtools.epicgames.com/job/6346a466f93be0f6345af86c
#rb Patrick.Kelly, Charles.deRousiers

[CL 22551963 by sebastien hillaire in ue5-main branch]
2022-10-16 02:28:34 -04:00

72 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class SparseVolumeTexture : ModuleRules
{
public SparseVolumeTexture(ReadOnlyTargetRules Target) : base(Target)
{
PrivateIncludePaths.Add(ModuleDirectory + "/Private");
PublicIncludePaths.Add(ModuleDirectory + "/Public");
PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"Projects",
"Engine",
"Renderer",
"RenderCore",
}
);
PrivateIncludePathModuleNames.AddRange(
new string[] {
"AssetRegistry",
"AssetTools",
"EditorWidgets",
}
);
PrivateDependencyModuleNames.AddRange(
new string[] {
"Renderer",
"RenderCore",
"RHI",
"Core",
"CoreUObject",
"Engine",
"InputCore",
"Settings",
}
);
if (Target.bBuildEditor)
{
PrivateDependencyModuleNames.AddRange(
new string[]
{
"MainFrame",
"EditorFramework",
"UnrealEd"
}
);
}
// Specific to OpenVDB support
if (Target.IsInPlatformGroup(UnrealPlatformGroup.Windows))
{
bUseRTTI = true;
bEnableExceptions = true;
AddEngineThirdPartyPrivateStaticDependencies(Target,
"IntelTBB",
"Blosc",
"zlib",
"Boost",
"OpenVDB"
);
}
}
}