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, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IResourceMapping, FixedBlockMemoryAllocator > Diligent::IResourceMapping Diligent::IObject

Public Member Functions

 ResourceMappingImpl (FixedBlockMemoryAllocator &ObjAllocator, 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 ()
 Returns number of resources in the resource mapping.
 
- Public Member Functions inherited from Diligent::RefCountedObject< IResourceMapping, FixedBlockMemoryAllocator >
virtual IReferenceCountersGetReferenceCounters () const override final
 
virtual Atomics::Long AddRef () override
 
virtual Atomics::Long Release () override
 

Detailed Description

Implementation of the resource mapping.

Constructor & Destructor Documentation

Diligent::ResourceMappingImpl::ResourceMappingImpl ( FixedBlockMemoryAllocator ObjAllocator,
IMemoryAllocator RawMemAllocator 
)
inline
Parameters
ObjAllocatorallocator that was used to allocate memory for this instance of the resource mapping object.
RawMemAllocatorraw memory allocator that is used by the m_HashTable member