|
| ResourceType | CreatePooledResource (ResourceCreationArguments Args) |
| | Creates a pooled resource. 更多...
|
| |
| virtual void | InitRHI () override |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
| virtual bool | IsTickable () const override |
| | Pure virtual that must be overloaded by the inheriting class. 更多...
|
| |
| virtual bool | NeedsRenderingResumedForRenderingThreadTick () const override |
| | Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function. 更多...
|
| |
| void | ReleasePooledResource (ResourceType Resource) |
| | Release a resource back into the pool. 更多...
|
| |
| virtual void | ReleaseRHI () override |
| | Releases the RHI resources used by this resource. 更多...
|
| |
| virtual void | Tick (float DeltaTime) override |
| | Pure virtual that must be overloaded by the inheriting class. 更多...
|
| |
|
| TRenderResourcePool () |
| | Constructor
|
| |
| | TRenderResourcePool (ResourcePoolPolicy InPolicy) |
| | Constructor with policy argument 更多...
|
| |
|
virtual | ~TRenderResourcePool () |
| | Destructor
|
| |
| ResourceType | CreatePooledResource (ResourceCreationArguments Args) |
| | Creates a pooled resource. 更多...
|
| |
| void | DrainPool (bool bForceDrainAll) |
| | Drain the pool of freed resources that need to be culled or prepared for reuse. 更多...
|
| |
| uint32 | PooledSizeForCreationArguments (ResourceCreationArguments Args) |
| | Gets the size a pooled object will use when constructed from the pool. 更多...
|
| |
| void | ReleasePooledResource (const ResourceType &Resource) |
| | Release a resource back into the pool. 更多...
|
| |
|
| TResourcePool () |
| | Constructor
|
| |
| | TResourcePool (ResourcePoolPolicy InPolicy) |
| | Constructor with policy argument 更多...
|
| |
|
virtual | ~TResourcePool () |
| | Destructor
|
| |
| | FTickableObjectRenderThread (bool bRegisterImmediately=true, bool bInHighFrequency=false) |
| | Registers this instance with the static array of tickable objects. 更多...
|
| |
|
virtual TStatId | GetStatId () const =0 |
| | return the stat id to use for this tickable
|
| |
| virtual bool | IsTickable () const =0 |
| | Pure virtual that must be overloaded by the inheriting class. 更多...
|
| |
| virtual bool | NeedsRenderingResumedForRenderingThreadTick () const |
| | Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function. 更多...
|
| |
| void | Register (bool bIsRenderingThreadObject=false) |
| | Registers the object for ticking. 更多...
|
| |
| virtual void | Tick (float DeltaTime)=0 |
| | Pure virtual that must be overloaded by the inheriting class. 更多...
|
| |
|
virtual | ~FTickableObjectRenderThread () |
| | Removes this instance from the static array of tickable objects.
|
| |
|
| FRenderResource () |
| | Default constructor.
|
| |
|
| FRenderResource (ERHIFeatureLevel::Type InFeatureLevel) |
| | Constructor when we know what feature level this resource should support
|
| |
| virtual FString | GetFriendlyName () const |
| |
| virtual void | InitDynamicRHI () |
| | Initializes the dynamic RHI resource and/or RHI render target used by this resource. 更多...
|
| |
| virtual void | InitResource () |
| | Initializes the resource. 更多...
|
| |
| virtual void | InitRHI () |
| | Initializes the RHI resources used by this resource. 更多...
|
| |
| virtual void | ReleaseDynamicRHI () |
| | Releases the dynamic RHI resource and/or RHI render target resources used by this resource. 更多...
|
| |
| virtual void | ReleaseResource () |
| | Prepares the resource for deletion. 更多...
|
| |
| virtual void | ReleaseRHI () |
| | Releases the RHI resources used by this resource. 更多...
|
| |
| void | UpdateRHI () |
| | If the resource's RHI resources have been initialized, then release and reinitialize it. 更多...
|
| |
|
virtual | ~FRenderResource () |
| | Destructor used to catch unreleased resources.
|
| |
template<typename ResourceType, class ResourcePoolPolicy, class ResourceCreationArguments>
class TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >
A resource pool that automatically handles render-thread resources
template<typename ResourceType , class ResourcePoolPolicy , class ResourceCreationArguments >
| virtual bool TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >::IsTickable |
( |
| ) |
const |
|
inlineoverridevirtual |
Pure virtual that must be overloaded by the inheriting class.
It is used to determine whether an object is ready to be ticked. This is required for example for all UObject derived classes as they might be loaded async and therefore won't be ready immediately.
- 返回
- true if class is ready to be ticked, false otherwise.
实现了 FTickableObjectRenderThread.
template<typename ResourceType , class ResourcePoolPolicy , class ResourceCreationArguments >
| virtual void TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >::Tick |
( |
float |
DeltaTime | ) |
|
|
inlineoverridevirtual |
Pure virtual that must be overloaded by the inheriting class.
It will be called from within LevelTick.cpp after ticking all actors or from the rendering thread (depending on bIsRenderingThreadObject)
- 参数
-
| DeltaTime | Game time passed since the last call. |
实现了 FTickableObjectRenderThread.