Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientFrameSRBCache Class Referencefinal

#include <RadientFrameSRBCache.hpp>

Public Member Functions

void Add (RadientIBLResources *pResources, IShaderResourceBinding *pSRB)
 Adds the SRB unless the resources are already cached.
RefCntAutoPtr< IShaderResourceBindingGet (const RadientIBLResources *pResources) const noexcept

Detailed Description

Renderer-owned cache of immutable frame SRBs associated with view IBL resources. The cache does not retain the resource bundle; destroying the bundle evicts its SRB.

Member Function Documentation

◆ Get()

RefCntAutoPtr< IShaderResourceBinding > Diligent::RadientFrameSRBCache::Get ( const RadientIBLResources * pResources) const
noexcept

Returns a strong reference that remains valid if the cache entry is concurrently removed.