73 return 1.0f / 2048.0f;
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Archive.h:1208
Definition ContainerAllocationPolicies.h:1644
Definition ArrayView.h:139
Definition MorphTarget.h:230
Definition MorphTargetVertexCodec.cpp:12
float ComputeTangentPrecision()
Definition MorphTargetVertexCodec.h:71
constexpr uint32 BatchSizeBits
Definition MorphTargetVertexCodec.h:17
void Encode(TConstArrayView< FMorphTargetDelta > InMorphDeltas, const TBitArray<> *InVertexNeedsTangents, const float InPositionPrecision, const float InTangentZPrecision, TArray< FDeltaBatchHeader > &OutBatchHeaders, TArray< uint32 > &OutCompressedVertices)
Definition MorphTargetVertexCodec.cpp:163
void ReadQuantizedDeltas(TArrayView< FQuantizedDelta > OutQuantizedDeltas, const FDeltaBatchHeader &InBatchHeader, TConstArrayView< uint32 > InData)
Definition MorphTargetVertexCodec.cpp:514
void WriteQuantizedDeltas(TConstArrayView< FQuantizedDelta > InQuantizedDeltas, const FDeltaBatchHeader &InBatchHeader, TArrayView< uint32 > OutData)
Definition MorphTargetVertexCodec.cpp:484
uint32 CalculateBatchDwords(const FDeltaBatchHeader &InBatchHeader)
Definition MorphTargetVertexCodec.cpp:544
void DequantizeDelta(FMorphTargetDelta &OutDelta, const bool bInNeedsTangent, const FQuantizedDelta &InQuantizedDelta, const float InPositionPrecision, const float InTangentZPrecision)
Definition MorphTargetVertexCodec.cpp:576
void QuantizeDelta(const FMorphTargetDelta &InDelta, const bool bInNeedsTangent, FQuantizedDelta &OutQuantizedDelta, const float InPositionPrecision, const float InTangentZPrecision)
Definition MorphTargetVertexCodec.cpp:553
void Decode(TConstArrayView< FDeltaBatchHeader > InBatchHeaders, TConstArrayView< uint32 > InCompressedVertices, const float InPositionPrecision, const float InTangentZPrecision, TArray< FMorphTargetDelta > &OutMorphDeltas)
Definition MorphTargetVertexCodec.cpp:349
void WriteHeader(const FDeltaBatchHeader &InBatchHeader, TArrayView< uint32 > OutData)
Definition MorphTargetVertexCodec.cpp:434
float ComputePositionPrecision(float InTargetPositionErrorTolerance)
Definition MorphTargetVertexCodec.h:65
constexpr uint32 BatchSize
Definition MorphTargetVertexCodec.h:18
constexpr uint32 NumBatchHeaderDwords
Definition MorphTargetVertexCodec.h:20
bool IterativeDecode(uint64 &InOutNextItemToken, TConstArrayView< FDeltaBatchHeader > InBatchHeaders, TConstArrayView< uint32 > InCompressedVertices, const float InPositionPrecision, const float InTangentZPrecision, FMorphTargetDelta &OutMorphTargetDelta)
Definition MorphTargetVertexCodec.cpp:378
void ReadHeader(FDeltaBatchHeader &OutBatchHeader, TConstArrayView< uint32 > InData)
Definition MorphTargetVertexCodec.cpp:460
Definition MorphTarget.h:17
Definition MorphTargetVertexCodec.h:24
bool operator==(const FQuantizedDelta &) const =default
FIntVector Position
Definition MorphTargetVertexCodec.h:25
uint32 Index
Definition MorphTargetVertexCodec.h:27
FIntVector TangentZ
Definition MorphTargetVertexCodec.h:26