mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2025-09-09 03:47:23 -04:00
Merge pull request #1317 from ylz-at/patch-1
Fix code snippet in error handling example
This commit is contained in:
commit
426c57a045
@ -347,7 +347,7 @@ if (shaderResult1.result != VK_SUCCESS)
|
||||
vk::Result result;
|
||||
vk::ShaderModule shaderModule2;
|
||||
std::tie(result, shaderModule2) = device.createShaderModule({...} /* createInfo temporary */);
|
||||
if (shaderResult2.result != VK_SUCCESS)
|
||||
if (result != VK_SUCCESS)
|
||||
{
|
||||
handle error code;
|
||||
cleanup?
|
||||
|
Loading…
x
Reference in New Issue
Block a user