134 return Bits[ (x >> 6) + y *
Pitch ] & ( 1ull << ( x & 63 ) );
139 Bits[ (x >> 6) + y *
Pitch ] |= ( 1ull << ( x & 63 ) );
155 Bits[ (x >> 6) + y *
Pitch ] &= ~( 1ull << ( x & 63 ) );
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AssetRegistryState.h:50
Definition UVSpaceAllocator.h:20
TArray< uint16 > SortedRowsIndex
Definition UVSpaceAllocator.h:126
TArray< uint64 > Bits
Definition UVSpaceAllocator.h:123
void SetBit(uint32 x, uint32 y)
Definition UVSpaceAllocator.h:137
void MergeRun(FRun &Run, const FRun &OtherRun, uint32 RectOffset, uint32 RectLength, uint32 PrimaryResolution, uint32 PerpendicularResolution)
Definition UVSpaceAllocator.cpp:686
bool Test(FRect Rect)
Definition UVSpaceAllocator.h:158
uint32 GetRasterHeight() const
Definition UVSpaceAllocator.h:103
void ClearBit(uint32 x, uint32 y)
Definition UVSpaceAllocator.h:153
void AddUsedSegment(FRun &Run, uint32 StartPos, uint32 Length)
Definition UVSpaceAllocator.cpp:673
void InitRuns(TArray< FRun > &Runs, uint32 PrimaryResolution, uint32 PerpendicularRasterSize)
Definition UVSpaceAllocator.cpp:522
uint32 GetUsedTexels() const
Definition UVSpaceAllocator.cpp:271
FMD5Hash GetRasterMD5() const
Definition UVSpaceAllocator.cpp:98
void InitSegments()
Definition UVSpaceAllocator.cpp:550
const uint32 Pitch
Definition UVSpaceAllocator.h:117
uint32 RasterHeight
Definition UVSpaceAllocator.h:120
TArray< FRun > Rows
Definition UVSpaceAllocator.h:121
TArray< FRun > Columns
Definition UVSpaceAllocator.h:122
void FlipY(const FRect &Rect)
Definition UVSpaceAllocator.cpp:479
bool FindBitByBit(FRect &Rect, const FUVSpaceAllocator &Other)
Definition UVSpaceAllocator.cpp:191
void Clear()
Definition UVSpaceAllocator.cpp:40
bool TestOneRun(const FRun &Run, const FRun &OtherRun, uint32 RectOffset, uint32 RectLength, uint32 PrimaryResolution, uint32 &OutFailedLength) const
Definition UVSpaceAllocator.cpp:355
FUVSpaceAllocator & operator=(const FUVSpaceAllocator &Other)
Definition UVSpaceAllocator.cpp:66
uint64 GetBit(uint32 x, uint32 y) const
Definition UVSpaceAllocator.h:132
bool TestAllColumns(const FRect &Rect, const FUVSpaceAllocator &Other, uint32 &FailedLength) const
Definition UVSpaceAllocator.cpp:336
EMode
Definition UVSpaceAllocator.h:23
const uint32 Height
Definition UVSpaceAllocator.h:116
uint32 GetRasterWidth() const
Definition UVSpaceAllocator.h:102
void CopyRuns(TArray< FRun > &Runs, const TArray< FRun > &OtherRuns, int32 MaxSize)
Definition UVSpaceAllocator.cpp:51
const uint32 Width
Definition UVSpaceAllocator.h:115
void Alloc(FRect Rect)
Definition UVSpaceAllocator.cpp:290
bool FindWithSegments(FRect &Rect, const FUVSpaceAllocator &Other, TFunctionRef< bool(const FUVSpaceAllocator::FRect &)> IsBestRect) const
Definition UVSpaceAllocator.cpp:209
void FlipX(const FRect &Rect)
Definition UVSpaceAllocator.cpp:433
void MergeSegments(const FRect &Rect, const FUVSpaceAllocator &Other)
Definition UVSpaceAllocator.cpp:772
uint32 RasterWidth
Definition UVSpaceAllocator.h:119
TArray< uint16 > SortedColumnsIndex
Definition UVSpaceAllocator.h:128
FString ToString() const
Definition UVSpaceAllocator.cpp:137
const EMode Mode
Definition UVSpaceAllocator.h:114
bool TestAllRows(const FRect &Rect, const FUVSpaceAllocator &Other, uint32 &FailedLength) const
Definition UVSpaceAllocator.cpp:317
void CreateUsedSegments()
Definition UVSpaceAllocator.cpp:557
Definition TestUtils.cpp:8
Definition AdvancedWidgetsModule.cpp:13
Definition SecureHash.h:133
Definition ReporterGraph.h:47
Definition LinuxPlatformSplash.cpp:43
Definition UVSpaceAllocator.h:33
uint32 W
Definition UVSpaceAllocator.h:36
uint32 H
Definition UVSpaceAllocator.h:37
uint32 Y
Definition UVSpaceAllocator.h:35
uint32 X
Definition UVSpaceAllocator.h:34
Definition UVSpaceAllocator.h:49
TArray< uint16 > FreeSegmentsLookup
Definition UVSpaceAllocator.h:60
uint32 LongestSegment
Definition UVSpaceAllocator.h:50
TArray< FSegment > Segments
Definition UVSpaceAllocator.h:51
Definition UVSpaceAllocator.h:41
uint32 StartPos
Definition UVSpaceAllocator.h:42
bool operator<(const FSegment &Other) const
Definition UVSpaceAllocator.h:45
uint32 Length
Definition UVSpaceAllocator.h:43