29 #include "DeviceObject.h" 34 static constexpr INTERFACE_ID IID_ResourceMapping =
35 { 0x6c1ac7a6, 0xb429, 0x4139, { 0x94, 0x33, 0x9e, 0x54, 0xe9, 0x3e, 0x38, 0x4a } };
55 ArrayIndex(_ArrayIndex)
84 virtual void QueryInterface(
const Diligent::INTERFACE_ID &IID, IObject **ppInterface ) = 0;
111 virtual void AddResourceArray(
const Char *Name, Uint32 StartIndex,
IDeviceObject*
const* ppObjects, Uint32 NumElements,
bool bIsUnique ) = 0;
Base interface for all objects created by the render device Diligent::IRenderDevice.
Definition: DeviceObject.h:40
ResourceMappingEntry * pEntries
Pointer to the array of resource mapping entries. The last element in the array must be default value...
Definition: ResourceMapping.h:65
virtual size_t GetSize()=0
Returns the size of the resource mapping, i.e. the number of objects.
virtual void AddResourceArray(const Char *Name, Uint32 StartIndex, IDeviceObject *const *ppObjects, Uint32 NumElements, bool bIsUnique)=0
Adds resource array to the mapping.
ResourceMappingEntry(const Char *_Name=nullptr, IDeviceObject *_pObject=nullptr, Uint32 _ArrayIndex=0)
Initializes the structure members.
Definition: ResourceMapping.h:52
Namespace for the OpenGL implementation of the graphics engine.
Definition: BufferD3D11Impl.h:34
Resouce mapping.
Definition: ResourceMapping.h:80
ResourceMappingDesc()
Initializes the structure members with default values.
Definition: ResourceMapping.h:72
virtual void RemoveResourceByName(const Char *Name, Uint32 ArrayIndex=0)=0
Removes a resource from the mapping using its literal name.
Resource mapping description.
Definition: ResourceMapping.h:60
virtual void QueryInterface(const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0
Queries the specific interface, see IObject::QueryInterface() for details.
virtual void GetResource(const Char *Name, IDeviceObject **ppResource, Uint32 ArrayIndex=0)=0
Finds a resource in the mapping.
const Char * Name
Object name.
Definition: ResourceMapping.h:41
virtual void AddResource(const Char *Name, IDeviceObject *pObject, bool bIsUnique)=0
Adds a resource to the mapping.
Describes the resourse mapping object entry.
Definition: ResourceMapping.h:38
IDeviceObject * pObject
Pointer to the object's interface.
Definition: ResourceMapping.h:44