Resource mapping.  
 More...
#include <ResourceMapping.h>
|  | 
| virtual void DILIGENT_CALL_TYPE | AddResource (const Char *Name, IDeviceObject *pObject, Bool bIsUnique)=0 | 
|  | Adds a resource to the mapping. 
 | 
|  | 
| virtual void DILIGENT_CALL_TYPE | AddResourceArray (const Char *Name, Uint32 StartIndex, IDeviceObject *const *ppObjects, Uint32 NumElements, Bool bIsUnique)=0 | 
|  | Adds resource array to the mapping. 
 | 
|  | 
| virtual void DILIGENT_CALL_TYPE | RemoveResourceByName (const Char *Name, Uint32 ArrayIndex=0)=0 | 
|  | Removes a resource from the mapping using its literal name. 
 | 
|  | 
| virtual IDeviceObject *DILIGENT_CALL_TYPE | GetResource (const Char *Name, Uint32 ArrayIndex=0)=0 | 
|  | Finds a resource in the mapping. 
 | 
|  | 
| virtual size_t DILIGENT_CALL_TYPE | GetSize ()=0 | 
|  | Returns the size of the resource mapping, i.e. the number of objects. 
 | 
|  | 
| virtual void DILIGENT_CALL_TYPE | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0 | 
|  | Queries the specific interface. 
 | 
|  | 
| virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | AddRef ()=0 | 
|  | Increments the number of strong references by 1. 
 | 
|  | 
| virtual ReferenceCounterValueType DILIGENT_CALL_TYPE | Release ()=0 | 
|  | 
| virtual IReferenceCounters *DILIGENT_CALL_TYPE | GetReferenceCounters () const =0 | 
|  | 
Resource mapping. 
This interface provides mapping between literal names and resource pointers. It is created by IRenderDevice::CreateResourceMapping(). 
◆ AddResource()
  
  | 
        
          | virtual void DILIGENT_CALL_TYPE Diligent.IResourceMapping.AddResource | ( | const Char * | Name, |  
          |  |  | IDeviceObject * | pObject, |  
          |  |  | Bool | bIsUnique ) |  | pure virtual | 
 
Adds a resource to the mapping. 
- Parameters
- 
  
    | [in] | Name | - Resource name. |  | [in] | pObject | - Pointer to the object. |  | [in] | bIsUnique | - Flag indicating if a resource with the same name is allowed to be found in the mapping. In the latter case, the new resource replaces the existing one. |  
 
 
 
◆ AddResourceArray()
  
  | 
        
          | virtual void DILIGENT_CALL_TYPE Diligent.IResourceMapping.AddResourceArray | ( | const Char * | Name, |  
          |  |  | Uint32 | StartIndex, |  
          |  |  | IDeviceObject *const * | ppObjects, |  
          |  |  | Uint32 | NumElements, |  
          |  |  | Bool | bIsUnique ) |  | pure virtual | 
 
Adds resource array to the mapping. 
- Parameters
- 
  
    | [in] | Name | - Resource array name. |  | [in] | StartIndex | - First index in the array, where the first element will be inserted |  | [in] | ppObjects | - Pointer to the array of objects. |  | [in] | NumElements | - Number of elements to add |  | [in] | bIsUnique | - Flag indicating if a resource with the same name is allowed to be found in the mapping. In the latter case, the new resource replaces the existing one. |  
 
 
 
◆ GetResource()
  
  | 
        
          | virtual IDeviceObject *DILIGENT_CALL_TYPE Diligent.IResourceMapping.GetResource | ( | const Char * | Name, |  
          |  |  | Uint32 | ArrayIndex = 0 ) |  | pure virtual | 
 
Finds a resource in the mapping. 
- Parameters
- 
  
    | [in] | Name | - Resource name. |  | [in] | ArrayIndex | - for arrays, index of the array element. |  
 
- Returns
- Pointer to the object with the given name and array index.
 
 
◆ RemoveResourceByName()
  
  | 
        
          | virtual void DILIGENT_CALL_TYPE Diligent.IResourceMapping.RemoveResourceByName | ( | const Char * | Name, |  
          |  |  | Uint32 | ArrayIndex = 0 ) |  | pure virtual | 
 
Removes a resource from the mapping using its literal name. 
- Parameters
- 
  
    | [in] | Name | - Name of the resource to remove. |  | [in] | ArrayIndex | - For array resources, index in the array |