You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/nbl/video/utilities/IUtilities.h
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -538,7 +538,6 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
538
538
// --------------
539
539
// updateImageViaStagingBuffer
540
540
// --------------
541
-
#if0 // TODO: port
542
541
//! Copies `srcBuffer` to stagingBuffer and Records the commands needed to copy the image from stagingBuffer to `dstImage`
543
542
//! If the allocation from staging memory fails due to large image size or fragmentation then This function may need to submit the command buffer via the `submissionQueue` and then signal the fence.
544
543
//! Returns:
@@ -579,10 +578,20 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
579
578
//! * submissionFence must point to a valid IGPUFence
580
579
//! * submissionFence must be in `UNSIGNALED` state
581
580
//! ** IUtility::getDefaultUpStreamingBuffer()->cull_frees() should be called before reseting the submissionFence and after `submissionFence` is signaled.
582
-
[[nodiscard("Use The New IQueue::SubmitInfo")]] IQueue::SSubmitInfo updateImageViaStagingBuffer(
// this doesn't actually free the memory, the memory is queued up to be freed only after the GPU fence/event is signalled
167
-
m_defaultUploadBuffer.get()->multi_deallocate(1u, &localOffset, &allocationSize, core::smart_refctd_ptr<IGPUFence>(submissionFence), &cmdbuf); // can queue with a reset but not yet pending fence, just fine
144
+
m_defaultUploadBuffer.get()->multi_deallocate(1u, &localOffset, &allocationSize, intendedNextSubmit.getScratchSemaphoreNextWait()); // can queue with a reset but not yet pending fence, just fine
0 commit comments