Skip to content

Commit

Permalink
ObjectBase: make INTERFACE_ID fully qualified
Browse files Browse the repository at this point in the history
Support implement Diligent's class interface in other namespaces
  • Loading branch information
WangHoi committed Jan 3, 2025
1 parent dcfb9ed commit cb3ec86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/interface/ObjectBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ namespace Diligent
}

#define IMPLEMENT_QUERY_INTERFACE(ClassName, InterfaceID, ParentClassName) \
void ClassName::QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) \
void ClassName::QueryInterface(const ::Diligent::INTERFACE_ID& IID, IObject** ppInterface) \
IMPLEMENT_QUERY_INTERFACE_BODY(InterfaceID, ParentClassName)

#define IMPLEMENT_QUERY_INTERFACE_IN_PLACE(InterfaceID, ParentClassName) \
virtual void DILIGENT_CALL_TYPE QueryInterface(const INTERFACE_ID& IID, IObject** ppInterface) override \
virtual void DILIGENT_CALL_TYPE QueryInterface(const ::Diligent::INTERFACE_ID& IID, IObject** ppInterface) override \
IMPLEMENT_QUERY_INTERFACE_BODY(InterfaceID, ParentClassName)


Expand Down

0 comments on commit cb3ec86

Please sign in to comment.