Navigation
API > API/Plugins > API/Plugins/MutableRuntime > API/Plugins/MutableRuntime/MuR
References
| Module | MutableRuntime |
| Header | /Engine/Plugins/Experimental/Mutable/Source/MutableRuntime/Public/MuR/ImageDataStorage.h |
| Include | #include "MuR/ImageDataStorage.h" |
Syntax
class FImageDataStorage
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FImageArray, TInlineAllocator< 1 > > | Buffers | ||
| TStaticArray< uint16, NumLODsInCompactedTail > | CompactedTailOffsets | This is needed for images its size cannot be known from dimensions and format, e.g., RLE compressed formats. | |
| EImageFormat | ImageFormat | ||
| FImageSize | ImageSize | ||
| uint8 | NumLODs |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FImageDataStorage
(
const FImageDesc& Desc |
|||
FImageDataStorage
(
const FImageDataStorage& Other |
|||
FImageDataStorage
(
FImageDataStorage&& Other |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | |||
| void | CopyFrom
(
const FImageDataStorage& Other |
||
| void | Remove NumLODsToDrop starting form LOD 0. The resulting image will be smaller. | ||
| int32 | |||
| TArrayView< uint8 > | |||
| TArrayView< const uint8 > | |||
| TArrayView< const uint8 > | GetBatchFirstLODOffset
(
int32 BatchId, |
Returns a non modifiable view to the portion of the first LOD buffer with OffsetInBytes for the BatchId | |
| TArrayView< uint8 > | GetBatchFirstLODOffset
(
int32 BatchId, |
Non const version of GetBatchFirstLODOffset(). | |
| TArrayView< uint8 > | Non const version of GetBatchLODRange(). | ||
| TArrayView< const uint8 > | Returns a non modifiable view to the portion of the [LODBegin, LODEnd) for the BatchId. | ||
| int32 | GetDataSize () |
||
| FImageArray & | GetInternalArray
(
int32 LODIndex |
||
| const FImageArray & | GetInternalArray
(
int32 LODIndex |
||
| TArrayView< uint8 > | Get a view to the data containing the LODIndex. | ||
| TArrayView< const uint8 > | Get a const view to the data containing the LODIndex. | ||
| int32 | GetNumBatches
(
int32 BatchSizeInElems, |
Stateless iteration in batches. | |
| int32 | GetNumBatchesFirstLODOffset
(
int32 BatchSizeInElems, |
Returns the number of batches GetBatchFirtsLODOffet will admit and that will cover the first LOD buffer with OffsetInBytes removed from the front. | |
| int32 | GetNumBatchesLODRange
(
int32 BatchSizeInElems, |
Returns the number of batches GetBatchLODRange will admit and that will cover the [LODBegin, LODEnd) range. | |
| int32 | GetNumLODs () |
||
| void | Init
(
const FImageDesc& ImageDesc, |
||
| void | InitInternalArray
(
int32 Index, |
||
| void | InitVoid
(
const FImageDesc& Desc |
||
| bool | IsEmpty () |
Returns true if all buffers are empty. | |
| bool | IsVoid () |
||
| FImageDesc | |||
| void | Resizes LODIndex Data to NewSizeBytes | ||
| void | Serialise
(
OutputArchive& Arch |
||
| void | SetNumLODs
(
int32 InNumLODs, |
Change the number of lods in the image. | |
| void | Unserialise
(
InputArchive& Arch |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FImageDataStorage & | operator=
(
FImageDataStorage&& Other |
||
| FImageDataStorage & | operator=
(
const FImageDataStorage& Other |
||
| bool | operator==
(
const FImageDataStorage& Other |
Constants
| Name | Description |
|---|---|
| NumLODsInCompactedTail |