value
partitionOptReq From a list of things, take all the required things and as many optional things as possible.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Modulevulkan-utils-0.5.11.0Haskell2010
partitionOptReq From a list of things, take all the required things and as many optional things as possible.
partitionOptReqIO :: (Show a, Eq a, MonadIO m)=> StringWhat are we sorting (Used for a debug message)
-> [a]What do we have available
-> [a]Optional desired elements
-> [a]Required desired elements
-> m ([a], [a])All the required elements and as many optional elements as possible, as well as the missing optional elements.
Like partitionOptReq.
Will throw an 'IOError in the case of missing things. Details on missing things will be reported in stderr.
This is useful in dealing with layers and extensions.
Show valies as a union of their individual bits
showBits @Int 5"1 .|. 4"
showBits @Int 0"zeroBits"
import Vulkan.Core10.Enums.QueueFlagBitsshowBits (QUEUE_COMPUTE_BIT .|. QUEUE_GRAPHICS_BIT)"QUEUE_GRAPHICS_BIT .|. QUEUE_COMPUTE_BIT"
Check if the intersection of bits is non-zero