FMipAllocation

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Texture.h

Include

#include "Engine/Texture.h"

Syntax

struct FMipAllocation

Constructors

Name Description

Public function

FMipAllocation()

Create an empty object

Public function

FMipAllocation

(
    FSharedBuffer SrcData
)

Take a read only FSharedBuffer, will allocate a new buffer and copy from this if Read/Write access is requested

Public function

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)

Public function

FMipAllocation

(
    FMipAllocation&&
)

We do allow rvalue assignment.

Destructors

Name Description

Public function

~FMipAllocation()

Functions

Name Description

Public function Const

const FShare...

 

GetDataReadOnly()

Returns a FSharedBuffer that contains the current texture data but cannot be directly modified

Public function

uint8 *

 

GetDataReadWrite()

Returns a pointer that contains the current texture data and can be written to

Public function Const

int64

 

GetSize()

Returns the overall size of the data in bytes

Public function Const

bool

 

IsNull()

Returns true if the object contains no data

Public function

FSharedBuffe...

 

Release()

Returns the internal FSharedBuffer and relinquish ownership, used to transfer the data to virtualized bulkdata

Public function

void

 

Reset()

Release all currently owned data and return the object to the default state

Operators

Name Description

Public function

FMipAllocati...

 

operator=

(
    const FMipAllocation&
)

Public function

FMipAllocati...

 

operator=

(
    FMipAllocation&&
)