![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "RenderResource.h"#include "Misc/App.h"#include "RHI.h"#include "RenderingThread.h"#include "ProfilingDebugging/LoadTimeTracker.h"#include "CoreGlobals.h"#include "RenderGraphResources.h"#include "Containers/ResourceArray.h"#include "RenderCore.h"#include "Async/RecursiveMutex.h"Classes | |
| class | FRenderResourceList |
| struct | FBatchedReleaseResources |
| class | FTextureSamplerStateCache |
Functions | |
| void | BeginInitResource (FRenderResource *Resource, FRenderCommandPipe *RenderCommandPipe) |
| void | BeginUpdateResourceRHI (FRenderResource *Resource, FRenderCommandPipe *RenderCommandPipe) |
| void | StartBatchedRelease () |
| void | EndBatchedRelease () |
| void | BeginReleaseResource (FRenderResource *Resource, FRenderCommandPipe *RenderCommandPipe) |
| void | ReleaseResourceAndFlush (FRenderResource *Resource) |
Variables | |
| float | GEnableMipLevelFading = 1.0f |
| TGlobalResource< FTextureSamplerStateCache > | GTextureSamplerStateCache |
| int32 | GTextureReferenceRevertsLastRenderContainer = 1 |
| FAutoConsoleVariableRef | CVarTextureReferenceRevertsLastRenderContainer (TEXT("r.TextureReferenceRevertsLastRenderContainer"), GTextureReferenceRevertsLastRenderContainer, TEXT("")) |
| FMipFadeSettings | GMipFadeSettings [MipFade_NumSettings] |
| float | GMipLevelFadingAgeThreshold = 0.5f |
| void BeginInitResource | ( | FRenderResource * | Resource, |
| FRenderCommandPipe * | RenderCommandPipe = nullptr |
||
| ) |
Sends a message to the rendering thread to initialize a resource. This is called in the game thread.
| void BeginReleaseResource | ( | FRenderResource * | Resource, |
| FRenderCommandPipe * | RenderCommandPipe = nullptr |
||
| ) |
Sends a message to the rendering thread to release a resource. This is called in the game thread.
| void BeginUpdateResourceRHI | ( | FRenderResource * | Resource, |
| FRenderCommandPipe * | RenderCommandPipe = nullptr |
||
| ) |
Sends a message to the rendering thread to update a resource. This is called in the game thread.
| void EndBatchedRelease | ( | ) |
Disables the batching of calls to BeginReleaseResource This is called in the game thread.
| void ReleaseResourceAndFlush | ( | FRenderResource * | Resource | ) |
Sends a message to the rendering thread to release a resource, and spins until the rendering thread has processed the message. This is called in the game thread.
| void StartBatchedRelease | ( | ) |
Enables the batching of calls to BeginReleaseResource This is called in the game thread.
| FAutoConsoleVariableRef CVarTextureReferenceRevertsLastRenderContainer(TEXT("r.TextureReferenceRevertsLastRenderContainer"), GTextureReferenceRevertsLastRenderContainer, TEXT("")) | ( | TEXT("r.TextureReferenceRevertsLastRenderContainer") | , |
| GTextureReferenceRevertsLastRenderContainer | , | ||
| TEXT("") | |||
| ) |
| float GEnableMipLevelFading = 1.0f |
Whether to enable mip-level fading or not: +1.0f if enabled, -1.0f if disabled.
| FMipFadeSettings GMipFadeSettings[MipFade_NumSettings] |
Global mip fading settings, indexed by EMipFadeSettings.
| float GMipLevelFadingAgeThreshold = 0.5f |
How "old" a texture must be to be considered a "new texture", in seconds.
| int32 GTextureReferenceRevertsLastRenderContainer = 1 |
| TGlobalResource<FTextureSamplerStateCache> GTextureSamplerStateCache |