Diligent Engine
Loading...
Searching...
No Matches
Diligent::ResourceMappingImpl Class Reference

Implementation of the resource mapping. More...

#include <ResourceMappingImpl.hpp>

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

Public Member Functions

 ResourceMappingImpl (IReferenceCounters *pRefCounters, IMemoryAllocator &RawMemAllocator)
virtual void DILIGENT_CALL_TYPE AddResource (const Char *Name, IDeviceObject *pObject, bool bIsUnique) override final
 Implementation of IResourceMapping::AddResource().
virtual void DILIGENT_CALL_TYPE AddResourceArray (const Char *Name, Uint32 StartIndex, IDeviceObject *const *ppObjects, Uint32 NumElements, bool bIsUnique) override final
 Implementation of IResourceMapping::AddResourceArray().
virtual void DILIGENT_CALL_TYPE RemoveResourceByName (const Char *Name, Uint32 ArrayIndex) override final
 Implementation of IResourceMapping::RemoveResourceByName().
virtual IDeviceObject *DILIGENT_CALL_TYPE GetResource (const Char *Name, Uint32 ArrayIndex) override final
 Implementation of IResourceMapping::GetResource().
virtual size_t DILIGENT_CALL_TYPE 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