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

#include <RHIUtilities.h>

+ Inheritance diagram for FReadBuffer:

Public Member Functions

 FReadBuffer ()
 
void Initialize (FRHICommandListBase &RHICmdList, const TCHAR *InDebugName, uint32 BytesPerElement, uint32 NumElements, EPixelFormat Format, EBufferUsageFlags AdditionalUsage=BUF_None, FResourceArrayUploadInterface *InResourceArray=nullptr)
 
template<typename LAMBDA >
void InitializeWithData (FRHICommandListBase &RHICmdList, const TCHAR *InDebugName, uint32 BytesPerElement, uint32 NumElements, EPixelFormat Format, EBufferUsageFlags AdditionalUsage, LAMBDA &&InitializerFunction)
 
void Release ()
 

Public Attributes

FBufferRHIRef Buffer
 
FShaderResourceViewRHIRef SRV
 
uint32 NumBytes
 

Detailed Description

Encapsulates a GPU read buffer with its SRV.

Constructor & Destructor Documentation

◆ FReadBuffer()

FReadBuffer::FReadBuffer ( )
inline

Member Function Documentation

◆ Initialize()

void FReadBuffer::Initialize ( FRHICommandListBase RHICmdList,
const TCHAR InDebugName,
uint32  BytesPerElement,
uint32  NumElements,
EPixelFormat  Format,
EBufferUsageFlags  AdditionalUsage = BUF_None,
FResourceArrayUploadInterface InResourceArray = nullptr 
)
inline

◆ InitializeWithData()

template<typename LAMBDA >
void FReadBuffer::InitializeWithData ( FRHICommandListBase RHICmdList,
const TCHAR InDebugName,
uint32  BytesPerElement,
uint32  NumElements,
EPixelFormat  Format,
EBufferUsageFlags  AdditionalUsage,
LAMBDA &&  InitializerFunction 
)
inline

◆ Release()

void FReadBuffer::Release ( )
inline

Member Data Documentation

◆ Buffer

FBufferRHIRef FReadBuffer::Buffer

◆ NumBytes

uint32 FReadBuffer::NumBytes

◆ SRV

FShaderResourceViewRHIRef FReadBuffer::SRV

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