Skip to content

Commit 4897f5b

Browse files
committed
start considering optimalRowPitchAlignment and some little cleanups
1 parent b2080ca commit 4897f5b

File tree

2 files changed

+61
-67
lines changed

2 files changed

+61
-67
lines changed

include/nbl/video/utilities/IUtilities.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,8 @@ class NBL_API ImageRegionIterator
10101010
IPhysicalDevice::SQueueFamilyProperties queueFamilyProps,
10111011
asset::ICPUBuffer const* srcBuffer,
10121012
asset::E_FORMAT srcImageFormat,
1013-
video::IGPUImage* const dstImage
1013+
video::IGPUImage* const dstImage,
1014+
size_t optimalRowPitchAlignment
10141015
);
10151016

10161017
// ! Memory you need to allocate to transfer the remaining regions in one submit.
@@ -1037,9 +1038,10 @@ class NBL_API ImageRegionIterator
10371038

10381039
// Mock CPU Images used to copy cpu buffer to staging buffer
10391040
std::vector<core::smart_refctd_ptr<asset::ICPUImage>> imageFilterInCPUImages;
1040-
core::smart_refctd_dynamic_array<asset::ICPUImage::SBufferCopy> outCPUImageRegions; // Because this needs to update before each upload
1041+
core::smart_refctd_dynamic_array<asset::ICPUImage::SBufferCopy> outCPUImageRegions; // needs to be updated before each upload
10411042
std::vector<core::smart_refctd_ptr<asset::ICPUImage>> imageFilterOutCPUImages;
10421043

1044+
uint32_t optimalRowPitchAlignment = 1u;
10431045
bool canTransferMipLevelsPartially = false;
10441046
asset::VkExtent3D minImageTransferGranularity = {};
10451047
uint32_t bufferOffsetAlignment = 1u;

0 commit comments

Comments
 (0)