{-# language CPP #-}
-- No documentation found for Chapter "BufferUsageFlagBits"
module Vulkan.Core10.Enums.BufferUsageFlagBits  ( BufferUsageFlags
                                                , BufferUsageFlagBits( BUFFER_USAGE_TRANSFER_SRC_BIT
                                                                     , BUFFER_USAGE_TRANSFER_DST_BIT
                                                                     , BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT
                                                                     , BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT
                                                                     , BUFFER_USAGE_UNIFORM_BUFFER_BIT
                                                                     , BUFFER_USAGE_STORAGE_BUFFER_BIT
                                                                     , BUFFER_USAGE_INDEX_BUFFER_BIT
                                                                     , BUFFER_USAGE_VERTEX_BUFFER_BIT
                                                                     , BUFFER_USAGE_INDIRECT_BUFFER_BIT
                                                                     , BUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT
                                                                     , BUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT
                                                                     , BUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT
                                                                     , BUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT
                                                                     , BUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT
                                                                     , BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR
                                                                     , BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR
                                                                     , BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR
                                                                     , BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT
                                                                     , BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT
                                                                     , BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT
                                                                     , BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT
                                                                     , ..
                                                                     )
                                                ) where

import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import Vulkan.Core10.FundamentalTypes (Flags)
type BufferUsageFlags = BufferUsageFlagBits

-- | VkBufferUsageFlagBits - Bitmask specifying allowed usage of a buffer
--
-- = See Also
--
-- <https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_VERSION_1_0 VK_VERSION_1_0>,
-- 'BufferUsageFlags'
newtype BufferUsageFlagBits = BufferUsageFlagBits Flags
  deriving newtype (BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c/= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
== :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c== :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
Eq, Eq BufferUsageFlagBits
BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
BufferUsageFlagBits -> BufferUsageFlagBits -> Ordering
BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
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 :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
$cmin :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
max :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
$cmax :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
>= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c>= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
> :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c> :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
<= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c<= :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
< :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
$c< :: BufferUsageFlagBits -> BufferUsageFlagBits -> Bool
compare :: BufferUsageFlagBits -> BufferUsageFlagBits -> Ordering
$ccompare :: BufferUsageFlagBits -> BufferUsageFlagBits -> Ordering
Ord, Ptr BufferUsageFlagBits -> IO BufferUsageFlagBits
Ptr BufferUsageFlagBits -> Int -> IO BufferUsageFlagBits
Ptr BufferUsageFlagBits -> Int -> BufferUsageFlagBits -> IO ()
Ptr BufferUsageFlagBits -> BufferUsageFlagBits -> IO ()
BufferUsageFlagBits -> Int
forall b. Ptr b -> Int -> IO BufferUsageFlagBits
forall b. Ptr b -> Int -> BufferUsageFlagBits -> 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 BufferUsageFlagBits -> BufferUsageFlagBits -> IO ()
$cpoke :: Ptr BufferUsageFlagBits -> BufferUsageFlagBits -> IO ()
peek :: Ptr BufferUsageFlagBits -> IO BufferUsageFlagBits
$cpeek :: Ptr BufferUsageFlagBits -> IO BufferUsageFlagBits
pokeByteOff :: forall b. Ptr b -> Int -> BufferUsageFlagBits -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> BufferUsageFlagBits -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO BufferUsageFlagBits
$cpeekByteOff :: forall b. Ptr b -> Int -> IO BufferUsageFlagBits
pokeElemOff :: Ptr BufferUsageFlagBits -> Int -> BufferUsageFlagBits -> IO ()
$cpokeElemOff :: Ptr BufferUsageFlagBits -> Int -> BufferUsageFlagBits -> IO ()
peekElemOff :: Ptr BufferUsageFlagBits -> Int -> IO BufferUsageFlagBits
$cpeekElemOff :: Ptr BufferUsageFlagBits -> Int -> IO BufferUsageFlagBits
alignment :: BufferUsageFlagBits -> Int
$calignment :: BufferUsageFlagBits -> Int
sizeOf :: BufferUsageFlagBits -> Int
$csizeOf :: BufferUsageFlagBits -> Int
Storable, BufferUsageFlagBits
forall a. a -> Zero a
zero :: BufferUsageFlagBits
$czero :: BufferUsageFlagBits
Zero, Eq BufferUsageFlagBits
BufferUsageFlagBits
Int -> BufferUsageFlagBits
BufferUsageFlagBits -> Bool
BufferUsageFlagBits -> Int
BufferUsageFlagBits -> Maybe Int
BufferUsageFlagBits -> BufferUsageFlagBits
BufferUsageFlagBits -> Int -> Bool
BufferUsageFlagBits -> Int -> BufferUsageFlagBits
BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
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 :: BufferUsageFlagBits -> Int
$cpopCount :: BufferUsageFlagBits -> Int
rotateR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$crotateR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
rotateL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$crotateL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
unsafeShiftR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cunsafeShiftR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
shiftR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cshiftR :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
unsafeShiftL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cunsafeShiftL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
shiftL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cshiftL :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
isSigned :: BufferUsageFlagBits -> Bool
$cisSigned :: BufferUsageFlagBits -> Bool
bitSize :: BufferUsageFlagBits -> Int
$cbitSize :: BufferUsageFlagBits -> Int
bitSizeMaybe :: BufferUsageFlagBits -> Maybe Int
$cbitSizeMaybe :: BufferUsageFlagBits -> Maybe Int
testBit :: BufferUsageFlagBits -> Int -> Bool
$ctestBit :: BufferUsageFlagBits -> Int -> Bool
complementBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$ccomplementBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
clearBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cclearBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
setBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$csetBit :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
bit :: Int -> BufferUsageFlagBits
$cbit :: Int -> BufferUsageFlagBits
zeroBits :: BufferUsageFlagBits
$czeroBits :: BufferUsageFlagBits
rotate :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$crotate :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
shift :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
$cshift :: BufferUsageFlagBits -> Int -> BufferUsageFlagBits
complement :: BufferUsageFlagBits -> BufferUsageFlagBits
$ccomplement :: BufferUsageFlagBits -> BufferUsageFlagBits
xor :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
$cxor :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
.|. :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
$c.|. :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
.&. :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
$c.&. :: BufferUsageFlagBits -> BufferUsageFlagBits -> BufferUsageFlagBits
Bits, Bits BufferUsageFlagBits
BufferUsageFlagBits -> Int
forall b.
Bits b -> (b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: BufferUsageFlagBits -> Int
$ccountTrailingZeros :: BufferUsageFlagBits -> Int
countLeadingZeros :: BufferUsageFlagBits -> Int
$ccountLeadingZeros :: BufferUsageFlagBits -> Int
finiteBitSize :: BufferUsageFlagBits -> Int
$cfiniteBitSize :: BufferUsageFlagBits -> Int
FiniteBits)

-- | 'BUFFER_USAGE_TRANSFER_SRC_BIT' specifies that the buffer /can/ be used
-- as the source of a /transfer command/ (see the definition of
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#synchronization-pipeline-stages-transfer >).
pattern $bBUFFER_USAGE_TRANSFER_SRC_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_TRANSFER_SRC_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_TRANSFER_SRC_BIT = BufferUsageFlagBits 0x00000001

-- | 'BUFFER_USAGE_TRANSFER_DST_BIT' specifies that the buffer /can/ be used
-- as the destination of a transfer command.
pattern $bBUFFER_USAGE_TRANSFER_DST_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_TRANSFER_DST_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_TRANSFER_DST_BIT = BufferUsageFlagBits 0x00000002

-- | 'BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT' specifies that the buffer /can/
-- be used to create a 'Vulkan.Core10.Handles.BufferView' suitable for
-- occupying a 'Vulkan.Core10.Handles.DescriptorSet' slot of type
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER'.
pattern $bBUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = BufferUsageFlagBits 0x00000004

-- | 'BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT' specifies that the buffer /can/
-- be used to create a 'Vulkan.Core10.Handles.BufferView' suitable for
-- occupying a 'Vulkan.Core10.Handles.DescriptorSet' slot of type
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER'.
pattern $bBUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = BufferUsageFlagBits 0x00000008

-- | 'BUFFER_USAGE_UNIFORM_BUFFER_BIT' specifies that the buffer /can/ be
-- used in a 'Vulkan.Core10.DescriptorSet.DescriptorBufferInfo' suitable
-- for occupying a 'Vulkan.Core10.Handles.DescriptorSet' slot either of
-- type 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_UNIFORM_BUFFER'
-- or
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC'.
pattern $bBUFFER_USAGE_UNIFORM_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_UNIFORM_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_UNIFORM_BUFFER_BIT = BufferUsageFlagBits 0x00000010

-- | 'BUFFER_USAGE_STORAGE_BUFFER_BIT' specifies that the buffer /can/ be
-- used in a 'Vulkan.Core10.DescriptorSet.DescriptorBufferInfo' suitable
-- for occupying a 'Vulkan.Core10.Handles.DescriptorSet' slot either of
-- type 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_BUFFER'
-- or
-- 'Vulkan.Core10.Enums.DescriptorType.DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC'.
pattern $bBUFFER_USAGE_STORAGE_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_STORAGE_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_STORAGE_BUFFER_BIT = BufferUsageFlagBits 0x00000020

-- | 'BUFFER_USAGE_INDEX_BUFFER_BIT' specifies that the buffer is suitable
-- for passing as the @buffer@ parameter to
-- 'Vulkan.Core10.CommandBufferBuilding.cmdBindIndexBuffer'.
pattern $bBUFFER_USAGE_INDEX_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_INDEX_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_INDEX_BUFFER_BIT = BufferUsageFlagBits 0x00000040

-- | 'BUFFER_USAGE_VERTEX_BUFFER_BIT' specifies that the buffer is suitable
-- for passing as an element of the @pBuffers@ array to
-- 'Vulkan.Core10.CommandBufferBuilding.cmdBindVertexBuffers'.
pattern $bBUFFER_USAGE_VERTEX_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_VERTEX_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_VERTEX_BUFFER_BIT = BufferUsageFlagBits 0x00000080

-- | 'BUFFER_USAGE_INDIRECT_BUFFER_BIT' specifies that the buffer is suitable
-- for passing as the @buffer@ parameter to
-- 'Vulkan.Core10.CommandBufferBuilding.cmdDrawIndirect',
-- 'Vulkan.Core10.CommandBufferBuilding.cmdDrawIndexedIndirect',
-- 'Vulkan.Extensions.VK_NV_mesh_shader.cmdDrawMeshTasksIndirectNV',
-- 'Vulkan.Extensions.VK_NV_mesh_shader.cmdDrawMeshTasksIndirectCountNV',
-- 'Vulkan.Extensions.VK_EXT_mesh_shader.cmdDrawMeshTasksIndirectEXT',
-- 'Vulkan.Extensions.VK_EXT_mesh_shader.cmdDrawMeshTasksIndirectCountEXT',
-- 'Vulkan.Extensions.VK_HUAWEI_cluster_culling_shader.cmdDrawClusterIndirectHUAWEI',
-- or 'Vulkan.Core10.CommandBufferBuilding.cmdDispatchIndirect'. It is also
-- suitable for passing as the @buffer@ member of
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.IndirectCommandsStreamNV',
-- or @sequencesCountBuffer@ or @sequencesIndexBuffer@ or
-- @preprocessedBuffer@ member of
-- 'Vulkan.Extensions.VK_NV_device_generated_commands.GeneratedCommandsInfoNV'
pattern $bBUFFER_USAGE_INDIRECT_BUFFER_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_INDIRECT_BUFFER_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_INDIRECT_BUFFER_BIT = BufferUsageFlagBits 0x00000100

-- No documentation found for Nested "VkBufferUsageFlagBits" "VK_BUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT"
pattern $bBUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT = BufferUsageFlagBits 0x01000000

-- No documentation found for Nested "VkBufferUsageFlagBits" "VK_BUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT"
pattern $bBUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT = BufferUsageFlagBits 0x00800000

-- | 'BUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT' specifies that
-- the buffer, when bound, /can/ be used by the implementation to support
-- push descriptors when using descriptor buffers.
pattern $bBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT = BufferUsageFlagBits 0x04000000

-- | 'BUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT' specifies that the
-- buffer is suitable to contain resource descriptors when bound as a
-- descriptor buffer.
pattern $bBUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT = BufferUsageFlagBits 0x00400000

-- | 'BUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT' specifies that the
-- buffer is suitable to contain sampler and combined image sampler
-- descriptors when bound as a descriptor buffer. Buffers containing
-- combined image sampler descriptors /must/ also specify
-- 'BUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT'.
pattern $bBUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT = BufferUsageFlagBits 0x00200000

-- | 'BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR' specifies that the buffer is
-- suitable for use as a
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#shader-binding-table Shader Binding Table>.
pattern $bBUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR :: BufferUsageFlagBits
$mBUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR = BufferUsageFlagBits 0x00000400

-- | 'BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR' specifies that the
-- buffer is suitable for storage space for a
-- 'Vulkan.Extensions.Handles.AccelerationStructureKHR'.
pattern $bBUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR :: BufferUsageFlagBits
$mBUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR = BufferUsageFlagBits 0x00100000

-- | 'BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR'
-- specifies that the buffer is suitable for use as a read-only input to an
-- <https://registry.khronos.org/vulkan/specs/1.3-extensions/html/vkspec.html#acceleration-structure-building acceleration structure build>.
pattern $bBUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR :: BufferUsageFlagBits
$mBUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR = BufferUsageFlagBits 0x00080000

-- | 'BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT' specifies that the buffer
-- is suitable for passing as the @buffer@ parameter to
-- 'Vulkan.Extensions.VK_EXT_conditional_rendering.cmdBeginConditionalRenderingEXT'.
pattern $bBUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT = BufferUsageFlagBits 0x00000200

-- | 'BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT' specifies that
-- the buffer is suitable for using as a counter buffer with
-- 'Vulkan.Extensions.VK_EXT_transform_feedback.cmdBeginTransformFeedbackEXT'
-- and
-- 'Vulkan.Extensions.VK_EXT_transform_feedback.cmdEndTransformFeedbackEXT'.
pattern $bBUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT = BufferUsageFlagBits 0x00001000

-- | 'BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT' specifies that the
-- buffer is suitable for using for binding as a transform feedback buffer
-- with
-- 'Vulkan.Extensions.VK_EXT_transform_feedback.cmdBindTransformFeedbackBuffersEXT'.
pattern $bBUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT :: BufferUsageFlagBits
$mBUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT = BufferUsageFlagBits 0x00000800

-- | 'BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT' specifies that the buffer /can/
-- be used to retrieve a buffer device address via
-- 'Vulkan.Core12.Promoted_From_VK_KHR_buffer_device_address.getBufferDeviceAddress'
-- and use that address to access the buffer’s memory from a shader.
pattern $bBUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT :: BufferUsageFlagBits
$mBUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT :: forall {r}.
BufferUsageFlagBits -> ((# #) -> r) -> ((# #) -> r) -> r
BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT = BufferUsageFlagBits 0x00020000

conNameBufferUsageFlagBits :: String
conNameBufferUsageFlagBits :: String
conNameBufferUsageFlagBits = String
"BufferUsageFlagBits"

enumPrefixBufferUsageFlagBits :: String
enumPrefixBufferUsageFlagBits :: String
enumPrefixBufferUsageFlagBits = String
"BUFFER_USAGE_"

showTableBufferUsageFlagBits :: [(BufferUsageFlagBits, String)]
showTableBufferUsageFlagBits :: [(BufferUsageFlagBits, String)]
showTableBufferUsageFlagBits =
  [
    ( BufferUsageFlagBits
BUFFER_USAGE_TRANSFER_SRC_BIT
    , String
"TRANSFER_SRC_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_TRANSFER_DST_BIT
    , String
"TRANSFER_DST_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT
    , String
"UNIFORM_TEXEL_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT
    , String
"STORAGE_TEXEL_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_UNIFORM_BUFFER_BIT
    , String
"UNIFORM_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_STORAGE_BUFFER_BIT
    , String
"STORAGE_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_INDEX_BUFFER_BIT
    , String
"INDEX_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_VERTEX_BUFFER_BIT
    , String
"VERTEX_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_INDIRECT_BUFFER_BIT
    , String
"INDIRECT_BUFFER_BIT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_MICROMAP_STORAGE_BIT_EXT
    , String
"MICROMAP_STORAGE_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT
    , String
"MICROMAP_BUILD_INPUT_READ_ONLY_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT
    , String
"PUSH_DESCRIPTORS_DESCRIPTOR_BUFFER_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT
    , String
"RESOURCE_DESCRIPTOR_BUFFER_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT
    , String
"SAMPLER_DESCRIPTOR_BUFFER_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_SHADER_BINDING_TABLE_BIT_KHR
    , String
"SHADER_BINDING_TABLE_BIT_KHR"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_ACCELERATION_STRUCTURE_STORAGE_BIT_KHR
    , String
"ACCELERATION_STRUCTURE_STORAGE_BIT_KHR"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR
    , String
"ACCELERATION_STRUCTURE_BUILD_INPUT_READ_ONLY_BIT_KHR"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT
    , String
"CONDITIONAL_RENDERING_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT
    , String
"TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_TRANSFORM_FEEDBACK_BUFFER_BIT_EXT
    , String
"TRANSFORM_FEEDBACK_BUFFER_BIT_EXT"
    )
  ,
    ( BufferUsageFlagBits
BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT
    , String
"SHADER_DEVICE_ADDRESS_BIT"
    )
  ]

instance Show BufferUsageFlagBits where
  showsPrec :: Int -> BufferUsageFlagBits -> ShowS
showsPrec =
    forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
      String
enumPrefixBufferUsageFlagBits
      [(BufferUsageFlagBits, String)]
showTableBufferUsageFlagBits
      String
conNameBufferUsageFlagBits
      (\(BufferUsageFlagBits Flags
x) -> Flags
x)
      (\Flags
x -> String -> ShowS
showString String
"0x" forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. (Integral a, Show a) => a -> ShowS
showHex Flags
x)

instance Read BufferUsageFlagBits where
  readPrec :: ReadPrec BufferUsageFlagBits
readPrec =
    forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
      String
enumPrefixBufferUsageFlagBits
      [(BufferUsageFlagBits, String)]
showTableBufferUsageFlagBits
      String
conNameBufferUsageFlagBits
      Flags -> BufferUsageFlagBits
BufferUsageFlagBits