This struct holds the result of TextureStreaming Build for each component texture, as referred by its used materials. 更多...
#include <TextureStreamingTypes.h>
Public 成员函数 | |
| ENGINE_API void | PackFrom (ULevel *Level, const FBoxSphereBounds &RefBounds, const FStreamingRenderAssetPrimitiveInfo &Info) |
| Set this struct to match the unpacked params. 更多... | |
Public 属性 | |
| uint32 | PackedRelativeBox |
| The relative bounding box for this entry. 更多... | |
| float | TexelFactor |
| The texel factor for this texture. 更多... | |
| int32 | TextureLevelIndex |
| The level scope identifier of the texture. 更多... | |
This struct holds the result of TextureStreaming Build for each component texture, as referred by its used materials.
It is possible that the entry referred by this data is not actually relevant in a given quality / target. It is also possible that some texture are not referred, and will then fall on fallbacks computation. Because each component holds its precomputed data for each texture, this struct is designed to be as compact as possible.
| ENGINE_API void FStreamingTextureBuildInfo::PackFrom | ( | ULevel * | Level, |
| const FBoxSphereBounds & | RefBounds, | ||
| const FStreamingRenderAssetPrimitiveInfo & | Info | ||
| ) |
Set this struct to match the unpacked params.
| LevelTextures | [in,out] The list of textures referred by all component of a level. The array index maps to UTexture2D::LevelIndex. |
| RefBounds | [in] The reference bounds used to compute the packed relative box. |
| Info | [in] The unpacked params. |
| uint32 FStreamingTextureBuildInfo::PackedRelativeBox |
The relative bounding box for this entry.
The relative bounds is a bound equal or smaller than the component bounds and represent the merged LOD section bounds of all LOD section referencing the given texture. When the level transform is modified following a call to ApplyLevelTransform, this relative bound becomes deprecated as it was computed from the transform at build time.
| float FStreamingTextureBuildInfo::TexelFactor |
The texel factor for this texture.
This represent the world size a texture square holding with unit UVs. This value is a combination of the TexelFactor from the mesh and also the material scale. It does not take into consideration StreamingDistanceMultiplier, or texture group scale.
| int32 FStreamingTextureBuildInfo::TextureLevelIndex |
The level scope identifier of the texture.
When building the texture streaming data, each level holds a list of all referred texture Guids. This is required to prevent loading textures on platforms which would not require the texture to be loaded, and is a consequence of the texture streaming build not being platform specific (the same streaming data is build for every platform target). Could also apply to quality level.