Use VK_NULL_HANDLE for null shader module.
The VkShaderModule is defined in vulkan.h as: VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkShaderModule)
This commit is contained in:
parent
afef87681c
commit
c32a131788
2 changed files with 2 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ namespace vks
|
|||
else
|
||||
{
|
||||
std::cerr << "Error: Could not open shader file \"" << fileName << "\"" << std::endl;
|
||||
return nullptr;
|
||||
return VK_NULL_HANDLE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue