Diligent Engine
 
Loading...
Searching...
No Matches
Diligent::ShaderResourceCacheGL::CachedResourceView Struct Reference

Describes a resource bound to a sampler or an image slot. More...

#include <ShaderResourceCacheGL.hpp>

Public Attributes

RefCntAutoPtr< IDeviceObjectpView
 

Detailed Description

Describes a resource bound to a sampler or an image slot.

Member Data Documentation

◆ pView

RefCntAutoPtr<IDeviceObject> Diligent::ShaderResourceCacheGL::CachedResourceView::pView

We 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 a strong reference to the texture or the buffer, so it makes no difference.