|
1 | 1 | /* |
2 | | - * Copyright 2019-2023 Diligent Graphics LLC |
| 2 | + * Copyright 2019-2025 Diligent Graphics LLC |
3 | 3 | * Copyright 2015-2019 Egor Yusov |
4 | 4 | * |
5 | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -57,44 +57,44 @@ DILIGENT_BEGIN_INTERFACE(IDeviceObject, IObject) |
57 | 57 |
|
58 | 58 | /// Returns unique identifier assigned to an object |
59 | 59 |
|
60 | | - /// \remarks Unique identifiers can be used to reliably check if two objects are identical. |
61 | | - /// Note that the engine reuses memory reclaimed after an object has been released. |
62 | | - /// For example, if a texture object is released and then another texture is created, |
63 | | - /// the engine may return the same pointer, so pointer-to-pointer comparisons are not |
64 | | - /// reliable. Unique identifiers, on the other hand, are guaranteed to be, well, unique. |
| 60 | + /// Unique identifiers can be used to reliably check if two objects are identical. |
| 61 | + /// Note that the engine reuses memory reclaimed after an object has been released. |
| 62 | + /// For example, if a texture object is released and then another texture is created, |
| 63 | + /// the engine may return the same pointer, so pointer-to-pointer comparisons are not |
| 64 | + /// reliable. Unique identifiers, on the other hand, are guaranteed to be, well, unique. |
65 | 65 | /// |
66 | | - /// Unique identifiers are object-specifics, so, for instance, buffer identifiers |
67 | | - /// are not comparable to texture identifiers. |
| 66 | + /// Unique identifiers are object-specifics, so, for instance, buffer identifiers |
| 67 | + /// are not comparable to texture identifiers. |
68 | 68 | /// |
69 | | - /// Unique identifiers are only meaningful within one session. After an application |
70 | | - /// restarts, all identifiers become invalid. |
| 69 | + /// Unique identifiers are only meaningful within one session. After an application |
| 70 | + /// restarts, all identifiers become invalid. |
71 | 71 | /// |
72 | | - /// Valid identifiers are always positive values. Zero and negative values can never be |
73 | | - /// assigned to an object and are always guaranteed to be invalid. |
| 72 | + /// Valid identifiers are always positive values. Zero and negative values can never be |
| 73 | + /// assigned to an object and are always guaranteed to be invalid. |
74 | 74 | VIRTUAL Int32 METHOD(GetUniqueID)(THIS) CONST PURE; |
75 | 75 |
|
76 | 76 |
|
77 | | - /// Stores a pointer to the user-provided data object, which |
78 | | - /// may later be retrieved through GetUserData(). |
| 77 | + /// Stores a pointer to the user-provided data object. |
| 78 | + |
| 79 | + /// The data may later be retrieved through GetUserData(). |
79 | 80 | /// |
80 | 81 | /// \param [in] pUserData - Pointer to the user data object to store. |
81 | 82 | /// |
82 | 83 | /// \note The method is not thread-safe and an application |
83 | 84 | /// must externally synchronize the access. |
84 | 85 | /// |
85 | | - /// The method keeps strong reference to the user data object. |
86 | | - /// If an application needs to release the object, it |
87 | | - /// should call SetUserData(nullptr); |
| 86 | + /// The method keeps strong reference to the user data object. |
| 87 | + /// If an application needs to release the object, it |
| 88 | + /// should call SetUserData(nullptr); |
88 | 89 | VIRTUAL void METHOD(SetUserData)(THIS_ |
89 | 90 | IObject* pUserData) PURE; |
90 | 91 |
|
91 | 92 |
|
92 | | - /// Returns a pointer to the user data object previously |
93 | | - /// set with SetUserData() method. |
94 | | - /// |
| 93 | + /// Returns a pointer to the user data object previously set with SetUserData() method. |
| 94 | + |
95 | 95 | /// \return The pointer to the user data object. |
96 | 96 | /// |
97 | | - /// \remarks The method does *NOT* call AddRef() |
| 97 | + /// \remarks The method does **NOT** call AddRef() |
98 | 98 | /// for the object being returned. |
99 | 99 | VIRTUAL IObject* METHOD(GetUserData)(THIS) CONST PURE; |
100 | 100 | }; |
|
0 commit comments