Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureSource
Structure that encapsulates the decompressed texture data and can be accessed per mip
| Name | FMipData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
Syntax
struct FMipData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMipData () |
Disallow everything else so we don't get duplicates | Engine/Texture.h | |
| Allow the copy constructor by rvalue | Engine/Texture.h | ||
| Engine/Texture.h | |||
FMipData
(
const FTextureSource& InSource, |
Engine/Texture.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMipData() |
Engine/Texture.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MipData | FSharedBuffer | Engine/Texture.h | ||
| TextureSource | const FTextureSource & | Engine/Texture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSharedBuffer GetData() |
Engine/Texture.h | ||
FSharedBuffer GetMipData
(
int32 BlockIndex, |
Access the given texture mip in the form of a read only FSharedBuffer. | Engine/Texture.h | |
bool GetMipData
(
TArray64< uint8 >& OutMipData, |
Get a copy of a given texture mip, to be stored in OutMipData | Engine/Texture.h | |
FImageView GetMipDataImageView
(
int32 BlockIndex, |
Note: FImageView does not hold a ref on the FSharedBuffer memory it points at you must keep the FMipData around or hold a ref on the FSharedBuffer elsewhere | Engine/Texture.h | |
FSharedBuffer GetMipDataWithInfo
(
int32 InBlockIndex, |
Engine/Texture.h | ||
bool IsValid() |
Engine/Texture.h | ||
void ResetData() |
Engine/Texture.h |