Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureSource
| Name | FMipAllocation |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
| Include Path | #include "Engine/Texture.h" |
Syntax
struct FMipAllocation
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Create an empty object | Engine/Texture.h | ||
FMipAllocation
(
FSharedBuffer SrcData |
Take a read only FSharedBuffer, will allocate a new buffer and copy from this if Read/Write access is requested | Engine/Texture.h | |
FMipAllocation
(
const FMipAllocation& |
Do not actually do anything for copy constructor or assignments, this is required for as long as we need to support the old bulkdata code path (although previously storing these allocations as raw pointers would allow it to be assigned, this would most likely cause a mismatch in lock counts, either in FTextureSource or the underlying bulkdata and was never actually safe) | Engine/Texture.h | |
FMipAllocation
(
FMipAllocation&& |
We do allow rvalue assignment. | Engine/Texture.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMipAllocation() |
Engine/Texture.h |
Structs
| Name | Remarks |
|---|---|
| FDeleterFree |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ReadOnlyReference | FSharedBuffer | Engine/Texture.h | ||
| ReadWriteBuffer | TUniquePtr< uint8, FDeleterFree > | Engine/Texture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FSharedBuffer & GetDataReadOnly() |
Returns a FSharedBuffer that contains the current texture data but cannot be directly modified | Engine/Texture.h | |
uint8 * GetDataReadWrite() |
Engine/Texture.h | ||
FMutableMemoryView GetDataReadWriteView() |
Returns a pointer that contains the current texture data and can be written to | Engine/Texture.h | |
int64 GetSize() |
Returns the overall size of the data in bytes | Engine/Texture.h | |
bool IsNull() |
Returns true if the object contains no data | Engine/Texture.h | |
FSharedBuffer Release() |
Returns the internal FSharedBuffer and relinquish ownership, used to transfer the data to virtualized bulkdata | Engine/Texture.h | |
void Reset() |
Release all currently owned data and return the object to the default state | Engine/Texture.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMipAllocation & operator=
(
const FMipAllocation& |
Engine/Texture.h | ||
FMipAllocation & operator=
(
FMipAllocation&& |
Engine/Texture.h |