mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
docs(readme): fix code snippet in error handling example
This commit is contained in:
parent
fca463f6da
commit
e1531c432a
@ -347,7 +347,7 @@ if (shaderResult1.result != VK_SUCCESS)
|
|||||||
vk::Result result;
|
vk::Result result;
|
||||||
vk::ShaderModule shaderModule2;
|
vk::ShaderModule shaderModule2;
|
||||||
std::tie(result, shaderModule2) = device.createShaderModule({...} /* createInfo temporary */);
|
std::tie(result, shaderModule2) = device.createShaderModule({...} /* createInfo temporary */);
|
||||||
if (shaderResult2.result != VK_SUCCESS)
|
if (result != VK_SUCCESS)
|
||||||
{
|
{
|
||||||
handle error code;
|
handle error code;
|
||||||
cleanup?
|
cleanup?
|
||||||
|
Loading…
Reference in New Issue
Block a user