Diligent::ShaderResourceCacheD3D11::CachedResource struct

Describes a resource associated with a cached SRV or a UAV.

Contents

Public variables

RefCntAutoPtr<IDeviceObject> pView
Wee keep strong reference to the view instead of the reference to the texture or buffer because this is more efficient from performance point of view: this avoids one pair of AddStrongRef()/ReleaseStrongRef(). The view holds strong reference to the texture or the buffer, so it makes no difference.