Skip to content

Commit 5ec1b5a

Browse files
committed
Resolved all comments
1 parent 69e7d85 commit 5ec1b5a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

07_StagingAndMultipleQueues/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
250250

251251
// TODO: this is for basic testing purposes, will be deleted ofc
252252
std::string msg = std::string("Image nr ") + std::to_string(imageIdx) + " loaded. Resource idx: " + std::to_string(resourceIdx);
253-
std::this_thread::sleep_for(std::chrono::milliseconds(6969));
253+
//std::this_thread::sleep_for(std::chrono::milliseconds(6969));
254254
m_logger->log(msg);
255255
}
256256
}
@@ -407,7 +407,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
407407
params.image = images[imageToProcessId];
408408
params.format = images[imageToProcessId]->getCreationParameters().format;
409409
params.subresourceRange.aspectMask = IImage::E_ASPECT_FLAGS::EAF_COLOR_BIT;
410-
params.subresourceRange.layerCount = images[resourceIdx]->getCreationParameters().arrayLayers;
410+
params.subresourceRange.layerCount = images[imageToProcessId]->getCreationParameters().arrayLayers;
411411

412412
imgInfo.desc = m_device->createImageView(std::move(params));
413413
if (!imgInfo.desc)
@@ -471,6 +471,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
471471
for (uint32_t imageHistogramIdx = 0; imageHistogramIdx < IMAGE_CNT; ++imageHistogramIdx)
472472
{
473473
waitForPreviousStep(m_imagesProcessedSemaphore.get(), imageHistogramIdx + 1);
474+
images[imageHistogramIdx] = nullptr;
474475

475476
const uint32_t resourceIdx = imageHistogramIdx % FRAMES_IN_FLIGHT;
476477
uint32_t* histogramBuff = m_histogramBufferMemPtrs[resourceIdx];

0 commit comments

Comments
 (0)