UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FResourceArrayUploadArrayView Struct Reference

#include <ResourceArray.h>

+ Inheritance diagram for FResourceArrayUploadArrayView:

Public Member Functions

 FResourceArrayUploadArrayView ()=delete
 
 FResourceArrayUploadArrayView (const void *InData, uint32 InSizeInBytes)
 
template<typename ElementType >
 FResourceArrayUploadArrayView (TConstArrayView< ElementType > View)
 
template<typename ElementType , typename AllocatorType >
 FResourceArrayUploadArrayView (const TArray< ElementType, AllocatorType > &InArray)
 
virtual const voidGetResourceData () const final
 
virtual uint32 GetResourceDataSize () const final
 
virtual void Discard () final
 
- Public Member Functions inherited from FResourceArrayUploadInterface
virtual ~FResourceArrayUploadInterface ()
 
template<typename TElement >
TConstArrayView< TElementGetResourceDataView () const
 

Public Attributes

const void *const Data
 
const uint32 SizeInBytes
 

Detailed Description

Utility to do a simple upload of data from an array managed by the caller.

Constructor & Destructor Documentation

◆ FResourceArrayUploadArrayView() [1/4]

FResourceArrayUploadArrayView::FResourceArrayUploadArrayView ( )
delete

◆ FResourceArrayUploadArrayView() [2/4]

FResourceArrayUploadArrayView::FResourceArrayUploadArrayView ( const void InData,
uint32  InSizeInBytes 
)
inlineexplicit

◆ FResourceArrayUploadArrayView() [3/4]

template<typename ElementType >
FResourceArrayUploadArrayView::FResourceArrayUploadArrayView ( TConstArrayView< ElementType >  View)
inlineexplicit

◆ FResourceArrayUploadArrayView() [4/4]

template<typename ElementType , typename AllocatorType >
FResourceArrayUploadArrayView::FResourceArrayUploadArrayView ( const TArray< ElementType, AllocatorType > &  InArray)
inlineexplicit

Member Function Documentation

◆ Discard()

virtual void FResourceArrayUploadArrayView::Discard ( )
inlinefinalvirtual

Called on non-UMA systems after the RHI has copied the resource data, and no longer needs the CPU's copy.

Implements FResourceArrayUploadInterface.

◆ GetResourceData()

virtual const void * FResourceArrayUploadArrayView::GetResourceData ( ) const
inlinefinalvirtual

Returns a pointer to the resource data.

Implements FResourceArrayUploadInterface.

◆ GetResourceDataSize()

virtual uint32 FResourceArrayUploadArrayView::GetResourceDataSize ( ) const
inlinefinalvirtual

Returns size of resource data allocation

Implements FResourceArrayUploadInterface.

Member Data Documentation

◆ Data

const void* const FResourceArrayUploadArrayView::Data

◆ SizeInBytes

const uint32 FResourceArrayUploadArrayView::SizeInBytes

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