Diligent Engine API Reference
Public Member Functions | List of all members
Diligent::ResourceMappingImpl Class Reference

Implementation of the resource mapping. More...

Inheritance diagram for Diligent::ResourceMappingImpl:
Diligent::ObjectBase< IResourceMapping > Diligent::RefCountedObject< IResourceMapping > Diligent::IResourceMapping

Public Member Functions

 ResourceMappingImpl (IReferenceCounters *pRefCounters, IMemoryAllocator &RawMemAllocator)
 
virtual void QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface) override final
 Queries the specific interface, see IObject::QueryInterface() for details.
 
virtual void AddResource (const Char *Name, IDeviceObject *pObject, bool bIsUnique) override final
 Implementation of IResourceMapping::AddResource()
 
virtual void AddResourceArray (const Char *Name, Uint32 StartIndex, IDeviceObject *const *ppObjects, Uint32 NumElements, bool bIsUnique) override final
 Implementation of IResourceMapping::AddResourceArray()
 
virtual void RemoveResourceByName (const Char *Name, Uint32 ArrayIndex) override final
 Implementation of IResourceMapping::RemoveResourceByName()
 
virtual void GetResource (const Char *Name, IDeviceObject **ppResource, Uint32 ArrayIndex) override final
 Implementation of IResourceMapping::GetResource()
 
virtual size_t GetSize () override final
 Returns number of resources in the resource mapping.
 

Detailed Description

Implementation of the resource mapping.

Constructor & Destructor Documentation

◆ ResourceMappingImpl()

Diligent::ResourceMappingImpl::ResourceMappingImpl ( IReferenceCounters *  pRefCounters,
IMemoryAllocator &  RawMemAllocator 
)
inline
Parameters
pRefCounters- reference counters object that controls the lifetime of this resource mapping
RawMemAllocator- raw memory allocator that is used by the m_HashTable member