PacktPublishing / Vulkan-Cookbook

Code repository for Vulkan Cookbook by Packt
MIT License
816 stars 109 forks source link

Possible Incorrect Operation in "05 Descriptor Sets/09 Creating an input attachment.cpp" #9

Closed millerf1234 closed 6 years ago

millerf1234 commented 6 years ago

On line 54 in the second 'if' statement (the one regarding aspect), the operation being performed is (aspect & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_DEPTH_BIT)) Is this supposed to be (aspect & (VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT))

Ekzuzy commented 6 years ago

Thanks for pointing this. Your are correct - here we are checking if image should contain color, depth or stencil data. Code is already fixed.