![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <VirtualTextureFeedback.h>
Inheritance diagram for FVirtualTextureFeedback:Classes | |
| struct | FMapResult |
Protected Member Functions | |
| virtual void | InitRHI (FRHICommandListBase &RHICmdList) override |
| virtual void | ReleaseRHI () override |
Protected Member Functions inherited from FRenderResource | |
| void | SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel) |
| const FStaticFeatureLevel | GetFeatureLevel () const |
| bool | HasValidFeatureLevel () const |
| template<typename T > | |
| FBufferRHIRef | CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName) |
| void | SetInitPhase (EInitPhase InInitPhase) |
Additional Inherited Members | |
Public Types inherited from FRenderResource | |
| enum class | EInitPhase : uint8 { Pre , Default , MAX } |
Static Public Member Functions inherited from FRenderResource | |
| static RENDERCORE_API void | ReleaseRHIForAllResources () |
| static RENDERCORE_API void | InitPreRHIResources () |
| static RENDERCORE_API void | ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel) |
| static RENDERCORE_API FName | SetScopeName (FName Name) |
Public Attributes inherited from FRenderResource | |
| ERenderResourceState | ResourceState = ERenderResourceState::Default |
Static Protected Member Functions inherited from FRenderResource | |
| static RENDERCORE_API FRHICommandListBase & | GetImmediateCommandList () |
Class that handles the read back of feedback buffers from the GPU. Multiple buffers can be transferred per frame using TransferGPUToCPU(). Use Map()/Unmap() to return the data. It will only return data that is ready to fetch without stalling the GPU. All calls are expected to be from the single render thread only.
| FVirtualTextureFeedback::FVirtualTextureFeedback | ( | ) |
| FVirtualTextureFeedback::~FVirtualTextureFeedback | ( | ) |
| bool FVirtualTextureFeedback::CanMap | ( | FRHICommandListImmediate & | RHICmdList | ) |
Returns true if there are any pending transfer results that are ready so that we can call Map().
|
overrideprotectedvirtual |
Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
| FVirtualTextureFeedback::FMapResult FVirtualTextureFeedback::Map | ( | FRHICommandListImmediate & | RHICmdList | ) |
Fetch all pending results into a flat output buffer for analysis.
| FVirtualTextureFeedback::FMapResult FVirtualTextureFeedback::Map | ( | FRHICommandListImmediate & | RHICmdList, |
| int32 | MaxTransfersToMap | ||
| ) |
Fetch up to MaxTransfersToMap pending results into a flat output buffer for analysis.
|
overrideprotectedvirtual |
Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.
Reimplemented from FRenderResource.
| void FVirtualTextureFeedback::TransferGPUToCPU | ( | FRDGBuilder & | GraphBuilder, |
| class FRDGBuffer * | Buffer, | ||
| FVirtualTextureFeedbackBufferDesc const & | Desc | ||
| ) |
| void FVirtualTextureFeedback::TransferGPUToCPU | ( | FRHICommandList & | RHICmdList, |
| FBufferRHIRef const & | Buffer, | ||
| FVirtualTextureFeedbackBufferDesc const & | Desc | ||
| ) |
Commit a RHIBuffer to be transferred for later CPU analysis.
| void FVirtualTextureFeedback::Unmap | ( | FRHICommandListImmediate & | RHICmdList, |
| int32 | MapHandle | ||
| ) |