File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
07_StagingAndMultipleQueues Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
250
250
251
251
// TODO: this is for basic testing purposes, will be deleted ofc
252
252
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));
254
254
m_logger->log (msg);
255
255
}
256
256
}
@@ -407,7 +407,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
407
407
params.image = images[imageToProcessId];
408
408
params.format = images[imageToProcessId]->getCreationParameters ().format ;
409
409
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 ;
411
411
412
412
imgInfo.desc = m_device->createImageView (std::move (params));
413
413
if (!imgInfo.desc )
@@ -471,6 +471,7 @@ class StagingAndMultipleQueuesApp final : public application_templates::BasicMul
471
471
for (uint32_t imageHistogramIdx = 0 ; imageHistogramIdx < IMAGE_CNT; ++imageHistogramIdx)
472
472
{
473
473
waitForPreviousStep (m_imagesProcessedSemaphore.get (), imageHistogramIdx + 1 );
474
+ images[imageHistogramIdx] = nullptr ;
474
475
475
476
const uint32_t resourceIdx = imageHistogramIdx % FRAMES_IN_FLIGHT;
476
477
uint32_t * histogramBuff = m_histogramBufferMemPtrs[resourceIdx];
You can’t perform that action at this time.
0 commit comments