{-# language CPP #-}
module Vulkan.Core11.Enums.ExternalMemoryHandleTypeFlagBits ( ExternalMemoryHandleTypeFlags
, ExternalMemoryHandleTypeFlagBits( EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT
, EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT
, EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT
, EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID
, EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT
, ..
)
) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.Zero (Zero)
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Core10.FundamentalTypes (Flags)
type ExternalMemoryHandleTypeFlags = ExternalMemoryHandleTypeFlagBits
newtype ExternalMemoryHandleTypeFlagBits = ExternalMemoryHandleTypeFlagBits Flags
deriving newtype (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
(ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> Eq ExternalMemoryHandleTypeFlagBits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c/= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
== :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c== :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
Eq, Eq ExternalMemoryHandleTypeFlagBits
Eq ExternalMemoryHandleTypeFlagBits =>
(ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Ordering)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> Ord ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Ordering
ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$cmin :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
max :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$cmax :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
>= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c>= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
> :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c> :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
<= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c<= :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
< :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
$c< :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Bool
compare :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Ordering
$ccompare :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> Ordering
$cp1Ord :: Eq ExternalMemoryHandleTypeFlagBits
Ord, Ptr b -> Int -> IO ExternalMemoryHandleTypeFlagBits
Ptr b -> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
Ptr ExternalMemoryHandleTypeFlagBits
-> IO ExternalMemoryHandleTypeFlagBits
Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> IO ExternalMemoryHandleTypeFlagBits
Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
Ptr ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> IO ()
ExternalMemoryHandleTypeFlagBits -> Int
(ExternalMemoryHandleTypeFlagBits -> Int)
-> (ExternalMemoryHandleTypeFlagBits -> Int)
-> (Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> IO ExternalMemoryHandleTypeFlagBits)
-> (Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits -> IO ())
-> (forall b. Ptr b -> Int -> IO ExternalMemoryHandleTypeFlagBits)
-> (forall b.
Ptr b -> Int -> ExternalMemoryHandleTypeFlagBits -> IO ())
-> (Ptr ExternalMemoryHandleTypeFlagBits
-> IO ExternalMemoryHandleTypeFlagBits)
-> (Ptr ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> IO ())
-> Storable ExternalMemoryHandleTypeFlagBits
forall b. Ptr b -> Int -> IO ExternalMemoryHandleTypeFlagBits
forall b. Ptr b -> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
poke :: Ptr ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> IO ()
$cpoke :: Ptr ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits -> IO ()
peek :: Ptr ExternalMemoryHandleTypeFlagBits
-> IO ExternalMemoryHandleTypeFlagBits
$cpeek :: Ptr ExternalMemoryHandleTypeFlagBits
-> IO ExternalMemoryHandleTypeFlagBits
pokeByteOff :: Ptr b -> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
peekByteOff :: Ptr b -> Int -> IO ExternalMemoryHandleTypeFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ExternalMemoryHandleTypeFlagBits
pokeElemOff :: Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
$cpokeElemOff :: Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits -> IO ()
peekElemOff :: Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> IO ExternalMemoryHandleTypeFlagBits
$cpeekElemOff :: Ptr ExternalMemoryHandleTypeFlagBits
-> Int -> IO ExternalMemoryHandleTypeFlagBits
alignment :: ExternalMemoryHandleTypeFlagBits -> Int
$calignment :: ExternalMemoryHandleTypeFlagBits -> Int
sizeOf :: ExternalMemoryHandleTypeFlagBits -> Int
$csizeOf :: ExternalMemoryHandleTypeFlagBits -> Int
Storable, ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits
-> Zero ExternalMemoryHandleTypeFlagBits
forall a. a -> Zero a
zero :: ExternalMemoryHandleTypeFlagBits
$czero :: ExternalMemoryHandleTypeFlagBits
Zero, Eq ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits
Eq ExternalMemoryHandleTypeFlagBits =>
(ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> ExternalMemoryHandleTypeFlagBits
-> (Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits -> Int -> Bool)
-> (ExternalMemoryHandleTypeFlagBits -> Maybe Int)
-> (ExternalMemoryHandleTypeFlagBits -> Int)
-> (ExternalMemoryHandleTypeFlagBits -> Bool)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits)
-> (ExternalMemoryHandleTypeFlagBits -> Int)
-> Bits ExternalMemoryHandleTypeFlagBits
Int -> ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits -> Bool
ExternalMemoryHandleTypeFlagBits -> Int
ExternalMemoryHandleTypeFlagBits -> Maybe Int
ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits -> Int -> Bool
ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
forall a.
Eq a =>
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: ExternalMemoryHandleTypeFlagBits -> Int
$cpopCount :: ExternalMemoryHandleTypeFlagBits -> Int
rotateR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$crotateR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
rotateL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$crotateL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
unsafeShiftR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cunsafeShiftR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
shiftR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cshiftR :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
unsafeShiftL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cunsafeShiftL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
shiftL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cshiftL :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
isSigned :: ExternalMemoryHandleTypeFlagBits -> Bool
$cisSigned :: ExternalMemoryHandleTypeFlagBits -> Bool
bitSize :: ExternalMemoryHandleTypeFlagBits -> Int
$cbitSize :: ExternalMemoryHandleTypeFlagBits -> Int
bitSizeMaybe :: ExternalMemoryHandleTypeFlagBits -> Maybe Int
$cbitSizeMaybe :: ExternalMemoryHandleTypeFlagBits -> Maybe Int
testBit :: ExternalMemoryHandleTypeFlagBits -> Int -> Bool
$ctestBit :: ExternalMemoryHandleTypeFlagBits -> Int -> Bool
complementBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$ccomplementBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
clearBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cclearBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
setBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$csetBit :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
bit :: Int -> ExternalMemoryHandleTypeFlagBits
$cbit :: Int -> ExternalMemoryHandleTypeFlagBits
zeroBits :: ExternalMemoryHandleTypeFlagBits
$czeroBits :: ExternalMemoryHandleTypeFlagBits
rotate :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$crotate :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
shift :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
$cshift :: ExternalMemoryHandleTypeFlagBits
-> Int -> ExternalMemoryHandleTypeFlagBits
complement :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$ccomplement :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
xor :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$cxor :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
.|. :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$c.|. :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
.&. :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$c.&. :: ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
-> ExternalMemoryHandleTypeFlagBits
$cp1Bits :: Eq ExternalMemoryHandleTypeFlagBits
Bits, Bits ExternalMemoryHandleTypeFlagBits
Bits ExternalMemoryHandleTypeFlagBits =>
(ExternalMemoryHandleTypeFlagBits -> Int)
-> (ExternalMemoryHandleTypeFlagBits -> Int)
-> (ExternalMemoryHandleTypeFlagBits -> Int)
-> FiniteBits ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits -> Int
forall b.
Bits b =>
(b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: ExternalMemoryHandleTypeFlagBits -> Int
$ccountTrailingZeros :: ExternalMemoryHandleTypeFlagBits -> Int
countLeadingZeros :: ExternalMemoryHandleTypeFlagBits -> Int
$ccountLeadingZeros :: ExternalMemoryHandleTypeFlagBits -> Int
finiteBitSize :: ExternalMemoryHandleTypeFlagBits -> Int
$cfiniteBitSize :: ExternalMemoryHandleTypeFlagBits -> Int
$cp1FiniteBits :: Bits ExternalMemoryHandleTypeFlagBits
FiniteBits)
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT = ExternalMemoryHandleTypeFlagBits 0x00000001
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT = ExternalMemoryHandleTypeFlagBits 0x00000002
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT = ExternalMemoryHandleTypeFlagBits 0x00000004
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT = ExternalMemoryHandleTypeFlagBits 0x00000008
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT = ExternalMemoryHandleTypeFlagBits 0x00000010
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT = ExternalMemoryHandleTypeFlagBits 0x00000020
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT = ExternalMemoryHandleTypeFlagBits 0x00000040
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT = ExternalMemoryHandleTypeFlagBits 0x00000100
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT = ExternalMemoryHandleTypeFlagBits 0x00000080
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID = ExternalMemoryHandleTypeFlagBits 0x00000400
pattern $bEXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT :: ExternalMemoryHandleTypeFlagBits
$mEXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT :: forall r.
ExternalMemoryHandleTypeFlagBits
-> (Void# -> r) -> (Void# -> r) -> r
EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT = ExternalMemoryHandleTypeFlagBits 0x00000200
conNameExternalMemoryHandleTypeFlagBits :: String
conNameExternalMemoryHandleTypeFlagBits :: String
conNameExternalMemoryHandleTypeFlagBits = "ExternalMemoryHandleTypeFlagBits"
enumPrefixExternalMemoryHandleTypeFlagBits :: String
enumPrefixExternalMemoryHandleTypeFlagBits :: String
enumPrefixExternalMemoryHandleTypeFlagBits = "EXTERNAL_MEMORY_HANDLE_TYPE_"
showTableExternalMemoryHandleTypeFlagBits :: [(ExternalMemoryHandleTypeFlagBits, String)]
showTableExternalMemoryHandleTypeFlagBits :: [(ExternalMemoryHandleTypeFlagBits, String)]
showTableExternalMemoryHandleTypeFlagBits =
[ (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT , "OPAQUE_FD_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT , "OPAQUE_WIN32_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT_BIT , "OPAQUE_WIN32_KMT_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT , "D3D11_TEXTURE_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_KMT_BIT , "D3D11_TEXTURE_KMT_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP_BIT , "D3D12_HEAP_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE_BIT , "D3D12_RESOURCE_BIT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT , "HOST_MAPPED_FOREIGN_MEMORY_BIT_EXT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_HOST_ALLOCATION_BIT_EXT , "HOST_ALLOCATION_BIT_EXT")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID, "ANDROID_HARDWARE_BUFFER_BIT_ANDROID")
, (ExternalMemoryHandleTypeFlagBits
EXTERNAL_MEMORY_HANDLE_TYPE_DMA_BUF_BIT_EXT , "DMA_BUF_BIT_EXT")
]
instance Show ExternalMemoryHandleTypeFlagBits where
showsPrec :: Int -> ExternalMemoryHandleTypeFlagBits -> ShowS
showsPrec = String
-> [(ExternalMemoryHandleTypeFlagBits, String)]
-> String
-> (ExternalMemoryHandleTypeFlagBits -> Flags)
-> (Flags -> ShowS)
-> Int
-> ExternalMemoryHandleTypeFlagBits
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixExternalMemoryHandleTypeFlagBits
[(ExternalMemoryHandleTypeFlagBits, String)]
showTableExternalMemoryHandleTypeFlagBits
String
conNameExternalMemoryHandleTypeFlagBits
(\(ExternalMemoryHandleTypeFlagBits x :: Flags
x) -> Flags
x)
(\x :: Flags
x -> String -> ShowS
showString "0x" ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Flags -> ShowS
forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)
instance Read ExternalMemoryHandleTypeFlagBits where
readPrec :: ReadPrec ExternalMemoryHandleTypeFlagBits
readPrec = String
-> [(ExternalMemoryHandleTypeFlagBits, String)]
-> String
-> (Flags -> ExternalMemoryHandleTypeFlagBits)
-> ReadPrec ExternalMemoryHandleTypeFlagBits
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixExternalMemoryHandleTypeFlagBits
[(ExternalMemoryHandleTypeFlagBits, String)]
showTableExternalMemoryHandleTypeFlagBits
String
conNameExternalMemoryHandleTypeFlagBits
Flags -> ExternalMemoryHandleTypeFlagBits
ExternalMemoryHandleTypeFlagBits