UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTexture2DResourceMem Class Referenceabstract

#include <ResourceArray.h>

+ Inheritance diagram for FTexture2DResourceMem:

Public Member Functions

virtual voidGetMipData (int32 MipIdx)=0
 
virtual int32 GetNumMips ()=0
 
virtual int32 GetSizeX ()=0
 
virtual int32 GetSizeY ()=0
 
virtual bool IsValid ()=0
 
virtual bool HasAsyncAllocationCompleted () const =0
 
virtual void FinishAsyncAllocation ()=0
 
virtual void CancelAsyncAllocation ()=0
 
virtual ~FTexture2DResourceMem ()
 
- Public Member Functions inherited from FResourceBulkDataInterface
virtual ~FResourceBulkDataInterface ()
 
virtual const voidGetResourceBulkData () const =0
 
virtual uint32 GetResourceBulkDataSize () const =0
 
template<typename TElement >
TConstArrayView< TElementGetBulkDataView () const
 
virtual void Discard ()=0
 

Detailed Description

Allows for direct GPU mem allocation for texture resource.

Constructor & Destructor Documentation

◆ ~FTexture2DResourceMem()

virtual FTexture2DResourceMem::~FTexture2DResourceMem ( )
inlinevirtual

Member Function Documentation

◆ CancelAsyncAllocation()

virtual void FTexture2DResourceMem::CancelAsyncAllocation ( )
pure virtual

Cancels any async allocation.

◆ FinishAsyncAllocation()

virtual void FTexture2DResourceMem::FinishAsyncAllocation ( )
pure virtual

Blocks the calling thread until the allocation has been completed.

◆ GetMipData()

virtual void * FTexture2DResourceMem::GetMipData ( int32  MipIdx)
pure virtual
Parameters
MipIdxindex for mip to retrieve
Returns
ptr to the offset in bulk memory for the given mip

◆ GetNumMips()

virtual int32 FTexture2DResourceMem::GetNumMips ( )
pure virtual
Returns
total number of mips stored in this resource

◆ GetSizeX()

virtual int32 FTexture2DResourceMem::GetSizeX ( )
pure virtual
Returns
width of texture stored in this resource

◆ GetSizeY()

virtual int32 FTexture2DResourceMem::GetSizeY ( )
pure virtual
Returns
height of texture stored in this resource

◆ HasAsyncAllocationCompleted()

virtual bool FTexture2DResourceMem::HasAsyncAllocationCompleted ( ) const
pure virtual
Returns
Whether the resource memory has an async allocation request and it's been completed.

◆ IsValid()

virtual bool FTexture2DResourceMem::IsValid ( )
pure virtual
Returns
Whether the resource memory is properly allocated or not.

The documentation for this class was generated from the following file: