11/*
2- * Copyright 2019-2022 Diligent Graphics LLC
2+ * Copyright 2019-2025 Diligent Graphics LLC
33 * Copyright 2015-2019 Egor Yusov
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -218,7 +218,7 @@ class StaticStaleResourceWrapper
218218// / * When command list is submitted to the command queue, all stale objects associated with this
219219// / and earlier command lists are moved to the release queue, along with the fence value associated with
220220// / the command list
221- // / * Resources are removed and actually destroyed from the queue when fence is signaled and the queue is Purged
221+ // / * Resources are removed and actually destroyed from the queue when fence is signaled and the queue is purged
222222// /
223223// / \tparam ResourceWrapperType - Type of the resource wrapper used by the release queue.
224224template <typename ResourceWrapperType>
@@ -239,6 +239,7 @@ class ResourceReleaseQueue
239239 }
240240
241241 // / Creates a resource wrapper for the specific resource type
242+
242243 // / \param [in] Resource - Resource to be released
243244 // / \param [in] NumReferences - Number of references to the resource
244245 template <typename ResourceType, typename = typename std::enable_if<std::is_object<ResourceType>::value>::type>
@@ -248,6 +249,7 @@ class ResourceReleaseQueue
248249 }
249250
250251 // / Moves a resource to the stale resources queue
252+
251253 // / \param [in] Resource - Resource to be released
252254 // / \param [in] NextCommandListNumber - Number of the command list that will be submitted to the queue next
253255 template <typename ResourceType, typename = typename std::enable_if<std::is_object<ResourceType>::value>::type>
@@ -257,6 +259,7 @@ class ResourceReleaseQueue
257259 }
258260
259261 // / Moves a resource wrapper to the stale resources queue
262+
260263 // / \param [in] Wrapper - Resource wrapper containing the resource to be released
261264 // / \param [in] NextCommandListNumber - Number of the command list that will be submitted to the queue next
262265 void SafeReleaseResource (ResourceWrapperType&& Wrapper, Uint64 NextCommandListNumber)
@@ -266,6 +269,7 @@ class ResourceReleaseQueue
266269 }
267270
268271 // / Moves a copy of the resource wrapper to the stale resources queue
272+
269273 // / \param [in] Wrapper - Resource wrapper containing the resource to be released
270274 // / \param [in] NextCommandListNumber - Number of the command list that will be submitted to the queue next
271275 void SafeReleaseResource (const ResourceWrapperType& Wrapper, Uint64 NextCommandListNumber)
@@ -275,6 +279,7 @@ class ResourceReleaseQueue
275279 }
276280
277281 // / Adds a resource directly to the release queue
282+
278283 // / \param [in] Resource - Resource to be released.
279284 // / \param [in] FenceValue - Fence value indicating when the resource was used last time.
280285 template <typename ResourceType, typename = typename std::enable_if<std::is_object<ResourceType>::value>::type>
@@ -284,6 +289,7 @@ class ResourceReleaseQueue
284289 }
285290
286291 // / Adds a resource wrapper directly to the release queue
292+
287293 // / \param [in] Wrapper - Resource wrapper containing the resource to be released.
288294 // / \param [in] FenceValue - Fence value indicating when the resource was used last time.
289295 void DiscardResource (ResourceWrapperType&& Wrapper, Uint64 FenceValue)
@@ -293,6 +299,7 @@ class ResourceReleaseQueue
293299 }
294300
295301 // / Adds a copy of the resource wrapper directly to the release queue
302+
296303 // / \param [in] Wrapper - Resource wrapper containing the resource to be released.
297304 // / \param [in] FenceValue - Fence value indicating when the resource was used last time.
298305 void DiscardResource (const ResourceWrapperType& Wrapper, Uint64 FenceValue)
@@ -302,6 +309,7 @@ class ResourceReleaseQueue
302309 }
303310
304311 // / Adds multiple resources directly to the release queue
312+
305313 // / \param [in] FenceValue - Fence value indicating when the resource was used last time.
306314 // / \param [in] Iterator - Iterator that returns resources to be released.
307315 template <typename ResourceType, typename IteratorType>
@@ -316,6 +324,7 @@ class ResourceReleaseQueue
316324 }
317325
318326 // / Moves stale objects to the release queue
327+
319328 // / \param [in] SubmittedCmdBuffNumber - number of the last submitted command list.
320329 // / All resources in the stale object list whose command list number is
321330 // / less than or equal to this value are moved to the release queue.
@@ -344,6 +353,7 @@ class ResourceReleaseQueue
344353
345354 // / Removes all objects from the release queue whose fence value is
346355 // / less than or equal to CompletedFenceValue
356+
347357 // / \param [in] CompletedFenceValue - Value of the fence that has been completed by the GPU
348358 void Purge (Uint64 CompletedFenceValue)
349359 {
0 commit comments