UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MorphTargetVertexCodec.h File Reference

Go to the source code of this file.

Classes

struct  UE::MorphTargetVertexCodec::FQuantizedDelta
 
struct  UE::MorphTargetVertexCodec::FDeltaBatchHeader
 

Namespaces

namespace  UE
 
namespace  UE::MorphTargetVertexCodec
 

Functions

float UE::MorphTargetVertexCodec::ComputePositionPrecision (float InTargetPositionErrorTolerance)
 
float UE::MorphTargetVertexCodec::ComputeTangentPrecision ()
 
void UE::MorphTargetVertexCodec::Encode (TConstArrayView< FMorphTargetDelta > InMorphDeltas, const TBitArray<> *InVertexNeedsTangents, const float InPositionPrecision, const float InTangentZPrecision, TArray< FDeltaBatchHeader > &OutBatchHeaders, TArray< uint32 > &OutCompressedVertices)
 
void UE::MorphTargetVertexCodec::Decode (TConstArrayView< FDeltaBatchHeader > InBatchHeaders, TConstArrayView< uint32 > InCompressedVertices, const float InPositionPrecision, const float InTangentZPrecision, TArray< FMorphTargetDelta > &OutMorphDeltas)
 
bool UE::MorphTargetVertexCodec::IterativeDecode (uint64 &InOutNextItemToken, TConstArrayView< FDeltaBatchHeader > InBatchHeaders, TConstArrayView< uint32 > InCompressedVertices, const float InPositionPrecision, const float InTangentZPrecision, FMorphTargetDelta &OutMorphTargetDelta)
 
ENGINE_API void UE::MorphTargetVertexCodec::ReadHeader (FDeltaBatchHeader &OutBatchHeader, const TArrayView< const uint32 > InData)
 
void UE::MorphTargetVertexCodec::WriteHeader (const FDeltaBatchHeader &InBatchHeader, TArrayView< uint32 > OutData)
 
void UE::MorphTargetVertexCodec::WriteQuantizedDeltas (TConstArrayView< FQuantizedDelta > InQuantizedDeltas, const FDeltaBatchHeader &InBatchHeader, TArrayView< uint32 > OutData)
 
void UE::MorphTargetVertexCodec::ReadQuantizedDeltas (TArrayView< FQuantizedDelta > OutQuantizedDeltas, const FDeltaBatchHeader &InBatchHeader, TConstArrayView< uint32 > InData)
 
uint32 UE::MorphTargetVertexCodec::CalculateBatchDwords (const FDeltaBatchHeader &InBatchHeader)
 
void UE::MorphTargetVertexCodec::QuantizeDelta (const FMorphTargetDelta &InDelta, const bool bInNeedsTangent, FQuantizedDelta &OutQuantizedDelta, const float InPositionPrecision, const float InTangentZPrecision)
 
void UE::MorphTargetVertexCodec::DequantizeDelta (FMorphTargetDelta &OutDelta, const bool bInNeedsTangent, const FQuantizedDelta &InQuantizedDelta, const float InPositionPrecision, const float InTangentZPrecision)
 

Variables

constexpr uint32 UE::MorphTargetVertexCodec::BatchSizeBits = 6u
 
constexpr uint32 UE::MorphTargetVertexCodec::BatchSize = 1u << BatchSizeBits
 
constexpr uint32 UE::MorphTargetVertexCodec::NumBatchHeaderDwords = 10u