We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94a615 commit f3f4344Copy full SHA for f3f4344
include/nbl/asset/utils/IShaderCompiler.h
@@ -442,6 +442,11 @@ class NBL_API2 IShaderCompiler : public core::IReferenceCounted
442
return found;
443
}
444
auto retVal = compileToSPIRV_impl(code, options, options.writeCache ? &dependencies : nullptr);
445
+ // compute the SPIR-V shader content hash
446
+ {
447
+ auto backingBuffer = retVal->getContent();
448
+ const_cast<ICPUBuffer*>(backingBuffer)->setContentHash(backingBuffer->computeContentHash());
449
+ }
450
if (options.writeCache)
451
{
452
entry.dependencies = std::move(dependencies);
0 commit comments