Vulkan-Hpp icon indicating copy to clipboard operation
Vulkan-Hpp copied to clipboard

How to query for empty flag?

Open Chrjstoph opened this issue 9 years ago • 2 comments

imageMemoryBarrier.srcAccessMask == 0

Hi, how can I check for this? I guess thats where the bool operator kicks in: if(imageMemoryBarrier.srcAccessMask)

But how to pass 0 Flag, e.g. DependencyFlag 0 Like this i guess: {}

But how do I get the flagmask of for example vk::ShaderStageFlagBits?

Chrjstoph avatar Dec 10 '16 12:12 Chrjstoph

I'l update the documentation

Test if no bit is set ( mask == 0): If (!imageMemoryBarrier.srcAccessMask) {}

Test if any bit is set: if (imageMemoryBarrier.srcAccessMask)

Pass Zero flag: {} (as documented in README.md)

But how do I get the flagmask of for example vk::ShaderStageFlagBits? What do you mean with getting the flagMask?

mtavenrath avatar Dec 18 '16 10:12 mtavenrath

Closing since it's not an issue.

mtavenrath avatar Dec 28 '16 21:12 mtavenrath