Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureSource
FMipLock to encapsulate a locked mip - acquires the lock in construct and unlocks in destruct.
Be very careful! Locking as ReadOnly will still get you a mutable ImageView! Altering a read only mip has consequences!
| Name | FMipLock |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
Syntax
struct FMipLock
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMipLock () |
No copying or default construct | Engine/Texture.h | |
| Move constructor | Engine/Texture.h | ||
| Engine/Texture.h | |||
FMipLock
(
ELockState InLockState, |
Engine/Texture.h | ||
FMipLock
(
ELockState InLockState, |
Constructor locks the mip (can fail, check IsValid()) | Engine/Texture.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMipLock() |
Destructor unlocks | Engine/Texture.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BlockIndex | int32 | Engine/Texture.h | ||
| Image | FImageView | Engine/Texture.h | ||
| LayerIndex | int32 | Engine/Texture.h | ||
| LockState | ELockState | Engine/Texture.h | ||
| MipIndex | int32 | Engine/Texture.h | ||
| TextureSource | FTextureSource * | Engine/Texture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int64 GetDataSize() |
Engine/Texture.h | ||
void * GetMutableData() |
Engine/Texture.h | ||
const void * GetRawData() |
Engine/Texture.h | ||
bool IsValid() |
Engine/Texture.h |