mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 14:36:35 +00:00
Give ResourceId.Null a proper return type
This commit is contained in:
@@ -60,7 +60,11 @@ struct ResourceId
|
||||
ResourceId &operator=(ResourceId &&) = default;
|
||||
#endif
|
||||
|
||||
DOCUMENT("A helper function that explicitly creates an empty/invalid/null :class:`ResourceId`.");
|
||||
DOCUMENT(R"(A helper function that explicitly creates an empty/invalid/null :class:`ResourceId`.
|
||||
|
||||
:return: an empty/invalid/null :class:`ResourceId`.
|
||||
:rtype: ResourceId
|
||||
)");
|
||||
inline static ResourceId Null() { return ResourceId(); }
|
||||
DOCUMENT("Compares two ``ResourceId`` objects for equality.");
|
||||
bool operator==(const ResourceId u) const { return id == u.id; }
|
||||
|
||||
Reference in New Issue
Block a user