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.
compileShader
1 parent 60cf8a0 commit 02cacd2Copy full SHA for 02cacd2
src/nbl/video/ILogicalDevice.cpp
@@ -422,7 +422,11 @@ core::smart_refctd_ptr<asset::ICPUShader> ILogicalDevice::compileShader(const SS
422
423
core::smart_refctd_ptr<IGPUShader> ILogicalDevice::createShader(const SShaderCreationParameters& creationParams)
424
{
425
- auto shader = createShader_impl(compileShader(creationParams).get());
+ auto cpuShader = compileShader(creationParams);
426
+ if (!cpuShader)
427
+ return nullptr;
428
+
429
+ auto shader = createShader_impl(cpuShader.get());
430
const auto path = creationParams.cpushader->getFilepathHint();
431
if (shader && !path.empty())
432
shader->setObjectDebugName(path.c_str());
0 commit comments