Skip to content

Commit 3a487ac

Browse files
author
devsh
committed
make example 30 run again
1 parent e30938c commit 3a487ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

30_ComputeShaderPathTracer/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ class ComputeShaderPathtracer final : public examples::SimpleWindowedApplication
534534
region.imageExtent = scrambleMapCPU->getCreationParameters().extent;
535535

536536
scrambleMapCPU->setBufferAndRegions(std::move(texelBuffer), regions);
537+
538+
// programmatically user-created IPreHashed need to have their hash computed (loaders do it while loading)
539+
scrambleMapCPU->setContentHash(scrambleMapCPU->computeContentHash());
537540
}
538541

539542
std::array<ICPUImage*, 2> cpuImgs = { envMapCPU.get(), scrambleMapCPU.get()};

0 commit comments

Comments
 (0)