{-# language CPP #-}
module Vulkan.Core10.Enums.QueryType (QueryType( QUERY_TYPE_OCCLUSION
, QUERY_TYPE_PIPELINE_STATISTICS
, QUERY_TYPE_TIMESTAMP
, QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT
, QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT
, QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR
, QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR
, QUERY_TYPE_PRIMITIVES_GENERATED_EXT
, QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
, QUERY_TYPE_PERFORMANCE_QUERY_INTEL
, QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV
, QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR
, QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR
, QUERY_TYPE_PERFORMANCE_QUERY_KHR
, QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
newtype QueryType = QueryType Int32
deriving newtype (QueryType -> QueryType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: QueryType -> QueryType -> Bool
$c/= :: QueryType -> QueryType -> Bool
== :: QueryType -> QueryType -> Bool
$c== :: QueryType -> QueryType -> Bool
Eq, Eq QueryType
QueryType -> QueryType -> Bool
QueryType -> QueryType -> Ordering
QueryType -> QueryType -> QueryType
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 :: QueryType -> QueryType -> QueryType
$cmin :: QueryType -> QueryType -> QueryType
max :: QueryType -> QueryType -> QueryType
$cmax :: QueryType -> QueryType -> QueryType
>= :: QueryType -> QueryType -> Bool
$c>= :: QueryType -> QueryType -> Bool
> :: QueryType -> QueryType -> Bool
$c> :: QueryType -> QueryType -> Bool
<= :: QueryType -> QueryType -> Bool
$c<= :: QueryType -> QueryType -> Bool
< :: QueryType -> QueryType -> Bool
$c< :: QueryType -> QueryType -> Bool
compare :: QueryType -> QueryType -> Ordering
$ccompare :: QueryType -> QueryType -> Ordering
Ord, Ptr QueryType -> IO QueryType
Ptr QueryType -> Int -> IO QueryType
Ptr QueryType -> Int -> QueryType -> IO ()
Ptr QueryType -> QueryType -> IO ()
QueryType -> Int
forall b. Ptr b -> Int -> IO QueryType
forall b. Ptr b -> Int -> QueryType -> 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 QueryType -> QueryType -> IO ()
$cpoke :: Ptr QueryType -> QueryType -> IO ()
peek :: Ptr QueryType -> IO QueryType
$cpeek :: Ptr QueryType -> IO QueryType
pokeByteOff :: forall b. Ptr b -> Int -> QueryType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> QueryType -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO QueryType
$cpeekByteOff :: forall b. Ptr b -> Int -> IO QueryType
pokeElemOff :: Ptr QueryType -> Int -> QueryType -> IO ()
$cpokeElemOff :: Ptr QueryType -> Int -> QueryType -> IO ()
peekElemOff :: Ptr QueryType -> Int -> IO QueryType
$cpeekElemOff :: Ptr QueryType -> Int -> IO QueryType
alignment :: QueryType -> Int
$calignment :: QueryType -> Int
sizeOf :: QueryType -> Int
$csizeOf :: QueryType -> Int
Storable, QueryType
forall a. a -> Zero a
zero :: QueryType
$czero :: QueryType
Zero)
pattern $bQUERY_TYPE_OCCLUSION :: QueryType
$mQUERY_TYPE_OCCLUSION :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_OCCLUSION = QueryType 0
pattern $bQUERY_TYPE_PIPELINE_STATISTICS :: QueryType
$mQUERY_TYPE_PIPELINE_STATISTICS :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_PIPELINE_STATISTICS = QueryType 1
pattern $bQUERY_TYPE_TIMESTAMP :: QueryType
$mQUERY_TYPE_TIMESTAMP :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_TIMESTAMP = QueryType 2
pattern $bQUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT :: QueryType
$mQUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT = QueryType 1000396001
pattern $bQUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT :: QueryType
$mQUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT = QueryType 1000396000
pattern $bQUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR :: QueryType
$mQUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR = QueryType 1000386001
pattern $bQUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR :: QueryType
$mQUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR = QueryType 1000386000
pattern $bQUERY_TYPE_PRIMITIVES_GENERATED_EXT :: QueryType
$mQUERY_TYPE_PRIMITIVES_GENERATED_EXT :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_PRIMITIVES_GENERATED_EXT = QueryType 1000382000
pattern $bQUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT :: QueryType
$mQUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT = QueryType 1000328000
pattern $bQUERY_TYPE_PERFORMANCE_QUERY_INTEL :: QueryType
$mQUERY_TYPE_PERFORMANCE_QUERY_INTEL :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_PERFORMANCE_QUERY_INTEL = QueryType 1000210000
pattern $bQUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV :: QueryType
$mQUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV = QueryType 1000165000
pattern $bQUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR :: QueryType
$mQUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR = QueryType 1000150001
pattern $bQUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR :: QueryType
$mQUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR = QueryType 1000150000
pattern $bQUERY_TYPE_PERFORMANCE_QUERY_KHR :: QueryType
$mQUERY_TYPE_PERFORMANCE_QUERY_KHR :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_PERFORMANCE_QUERY_KHR = QueryType 1000116000
pattern $bQUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT :: QueryType
$mQUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT :: forall {r}. QueryType -> ((# #) -> r) -> ((# #) -> r) -> r
QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT = QueryType 1000028004
{-# COMPLETE
QUERY_TYPE_OCCLUSION
, QUERY_TYPE_PIPELINE_STATISTICS
, QUERY_TYPE_TIMESTAMP
, QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT
, QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT
, QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR
, QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR
, QUERY_TYPE_PRIMITIVES_GENERATED_EXT
, QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
, QUERY_TYPE_PERFORMANCE_QUERY_INTEL
, QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV
, QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR
, QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR
, QUERY_TYPE_PERFORMANCE_QUERY_KHR
, QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT ::
QueryType
#-}
conNameQueryType :: String
conNameQueryType :: String
conNameQueryType = String
"QueryType"
enumPrefixQueryType :: String
enumPrefixQueryType :: String
enumPrefixQueryType = String
"QUERY_TYPE_"
showTableQueryType :: [(QueryType, String)]
showTableQueryType :: [(QueryType, String)]
showTableQueryType =
[ (QueryType
QUERY_TYPE_OCCLUSION, String
"OCCLUSION")
, (QueryType
QUERY_TYPE_PIPELINE_STATISTICS, String
"PIPELINE_STATISTICS")
, (QueryType
QUERY_TYPE_TIMESTAMP, String
"TIMESTAMP")
,
( QueryType
QUERY_TYPE_MICROMAP_COMPACTED_SIZE_EXT
, String
"MICROMAP_COMPACTED_SIZE_EXT"
)
,
( QueryType
QUERY_TYPE_MICROMAP_SERIALIZATION_SIZE_EXT
, String
"MICROMAP_SERIALIZATION_SIZE_EXT"
)
,
( QueryType
QUERY_TYPE_ACCELERATION_STRUCTURE_SIZE_KHR
, String
"ACCELERATION_STRUCTURE_SIZE_KHR"
)
,
( QueryType
QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR
, String
"ACCELERATION_STRUCTURE_SERIALIZATION_BOTTOM_LEVEL_POINTERS_KHR"
)
,
( QueryType
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
, String
"PRIMITIVES_GENERATED_EXT"
)
,
( QueryType
QUERY_TYPE_MESH_PRIMITIVES_GENERATED_EXT
, String
"MESH_PRIMITIVES_GENERATED_EXT"
)
,
( QueryType
QUERY_TYPE_PERFORMANCE_QUERY_INTEL
, String
"PERFORMANCE_QUERY_INTEL"
)
,
( QueryType
QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV
, String
"ACCELERATION_STRUCTURE_COMPACTED_SIZE_NV"
)
,
( QueryType
QUERY_TYPE_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR
, String
"ACCELERATION_STRUCTURE_SERIALIZATION_SIZE_KHR"
)
,
( QueryType
QUERY_TYPE_ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR
, String
"ACCELERATION_STRUCTURE_COMPACTED_SIZE_KHR"
)
,
( QueryType
QUERY_TYPE_PERFORMANCE_QUERY_KHR
, String
"PERFORMANCE_QUERY_KHR"
)
,
( QueryType
QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT
, String
"TRANSFORM_FEEDBACK_STREAM_EXT"
)
]
instance Show QueryType where
showsPrec :: Int -> QueryType -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixQueryType
[(QueryType, String)]
showTableQueryType
String
conNameQueryType
(\(QueryType Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read QueryType where
readPrec :: ReadPrec QueryType
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixQueryType
[(QueryType, String)]
showTableQueryType
String
conNameQueryType
Int32 -> QueryType
QueryType