{-# language CPP #-}
-- No documentation found for Chapter "Result"
module OpenXR.Core10.Enums.Result  ( pattern SUCCEEDED
                                   , pattern UNQUALIFIED_SUCCESS
                                   , pattern FAILED
                                   , Result( SUCCESS
                                           , TIMEOUT_EXPIRED
                                           , SESSION_LOSS_PENDING
                                           , EVENT_UNAVAILABLE
                                           , SPACE_BOUNDS_UNAVAILABLE
                                           , SESSION_NOT_FOCUSED
                                           , FRAME_DISCARDED
                                           , ERROR_VALIDATION_FAILURE
                                           , ERROR_RUNTIME_FAILURE
                                           , ERROR_OUT_OF_MEMORY
                                           , ERROR_API_VERSION_UNSUPPORTED
                                           , ERROR_INITIALIZATION_FAILED
                                           , ERROR_FUNCTION_UNSUPPORTED
                                           , ERROR_FEATURE_UNSUPPORTED
                                           , ERROR_EXTENSION_NOT_PRESENT
                                           , ERROR_LIMIT_REACHED
                                           , ERROR_SIZE_INSUFFICIENT
                                           , ERROR_HANDLE_INVALID
                                           , ERROR_INSTANCE_LOST
                                           , ERROR_SESSION_RUNNING
                                           , ERROR_SESSION_NOT_RUNNING
                                           , ERROR_SESSION_LOST
                                           , ERROR_SYSTEM_INVALID
                                           , ERROR_PATH_INVALID
                                           , ERROR_PATH_COUNT_EXCEEDED
                                           , ERROR_PATH_FORMAT_INVALID
                                           , ERROR_PATH_UNSUPPORTED
                                           , ERROR_LAYER_INVALID
                                           , ERROR_LAYER_LIMIT_EXCEEDED
                                           , ERROR_SWAPCHAIN_RECT_INVALID
                                           , ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED
                                           , ERROR_ACTION_TYPE_MISMATCH
                                           , ERROR_SESSION_NOT_READY
                                           , ERROR_SESSION_NOT_STOPPING
                                           , ERROR_TIME_INVALID
                                           , ERROR_REFERENCE_SPACE_UNSUPPORTED
                                           , ERROR_FILE_ACCESS_ERROR
                                           , ERROR_FILE_CONTENTS_INVALID
                                           , ERROR_FORM_FACTOR_UNSUPPORTED
                                           , ERROR_FORM_FACTOR_UNAVAILABLE
                                           , ERROR_API_LAYER_NOT_PRESENT
                                           , ERROR_CALL_ORDER_INVALID
                                           , ERROR_GRAPHICS_DEVICE_INVALID
                                           , ERROR_POSE_INVALID
                                           , ERROR_INDEX_OUT_OF_RANGE
                                           , ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED
                                           , ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED
                                           , ERROR_NAME_DUPLICATED
                                           , ERROR_NAME_INVALID
                                           , ERROR_ACTIONSET_NOT_ATTACHED
                                           , ERROR_ACTIONSETS_ALREADY_ATTACHED
                                           , ERROR_LOCALIZED_NAME_DUPLICATED
                                           , ERROR_LOCALIZED_NAME_INVALID
                                           , ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING
                                           , ERROR_COLOR_SPACE_UNSUPPORTED_FB
                                           , ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB
                                           , ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT
                                           , ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT
                                           , ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT
                                           , ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR
                                           , ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR
                                           , ..
                                           )
                                   ) where

import OpenXR.Internal.Utils (enumReadPrec)
import OpenXR.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import OpenXR.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))

-- | XR_SUCCEEDED - Success convenience macro
--
-- = Description
--
-- This may be a qualified success such as 'FRAME_DISCARDED'.
--
-- = See Also
--
-- 'FAILED', 'UNQUALIFIED_SUCCESS'
pattern SUCCEEDED :: Result
pattern $mSUCCEEDED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
SUCCEEDED <- ((SUCCESS <=) -> True)

-- | XR_UNQUALIFIED_SUCCESS - Unqualified success convenience macro
--
-- = Description
--
-- used to compare an 'Result' to @0@ ('SUCCESS') exclusively.
--
-- = See Also
--
-- 'FAILED', 'SUCCEEDED'
pattern UNQUALIFIED_SUCCESS :: Result
pattern $mUNQUALIFIED_SUCCESS :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
UNQUALIFIED_SUCCESS <- ((SUCCESS ==) -> True)

-- | XR_FAILED - Failure convenience macro
--
-- = Description
--
-- some way.
--
-- = See Also
--
-- 'SUCCEEDED', 'UNQUALIFIED_SUCCESS'
pattern FAILED :: Result
pattern $mFAILED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
FAILED <- ((SUCCESS >) -> True)

{-# complete SUCCEEDED, FAILED #-}


-- | XrResult - Result codes
--
-- = Description
--
-- All return codes in the API are reported via 'Result' return values.
--
-- Some common suffixes shared across many of the return codes are defined
-- below:
--
-- = See Also
--
-- 'OpenXR.Core10.Instance.resultToString'
newtype Result = Result Int32
  deriving newtype (Result -> Result -> Bool
(Result -> Result -> Bool)
-> (Result -> Result -> Bool) -> Eq Result
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Result -> Result -> Bool
$c/= :: Result -> Result -> Bool
== :: Result -> Result -> Bool
$c== :: Result -> Result -> Bool
Eq, Eq Result
Eq Result =>
(Result -> Result -> Ordering)
-> (Result -> Result -> Bool)
-> (Result -> Result -> Bool)
-> (Result -> Result -> Bool)
-> (Result -> Result -> Bool)
-> (Result -> Result -> Result)
-> (Result -> Result -> Result)
-> Ord Result
Result -> Result -> Bool
Result -> Result -> Ordering
Result -> Result -> Result
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 :: Result -> Result -> Result
$cmin :: Result -> Result -> Result
max :: Result -> Result -> Result
$cmax :: Result -> Result -> Result
>= :: Result -> Result -> Bool
$c>= :: Result -> Result -> Bool
> :: Result -> Result -> Bool
$c> :: Result -> Result -> Bool
<= :: Result -> Result -> Bool
$c<= :: Result -> Result -> Bool
< :: Result -> Result -> Bool
$c< :: Result -> Result -> Bool
compare :: Result -> Result -> Ordering
$ccompare :: Result -> Result -> Ordering
$cp1Ord :: Eq Result
Ord, Ptr b -> Int -> IO Result
Ptr b -> Int -> Result -> IO ()
Ptr Result -> IO Result
Ptr Result -> Int -> IO Result
Ptr Result -> Int -> Result -> IO ()
Ptr Result -> Result -> IO ()
Result -> Int
(Result -> Int)
-> (Result -> Int)
-> (Ptr Result -> Int -> IO Result)
-> (Ptr Result -> Int -> Result -> IO ())
-> (forall b. Ptr b -> Int -> IO Result)
-> (forall b. Ptr b -> Int -> Result -> IO ())
-> (Ptr Result -> IO Result)
-> (Ptr Result -> Result -> IO ())
-> Storable Result
forall b. Ptr b -> Int -> IO Result
forall b. Ptr b -> Int -> Result -> 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 Result -> Result -> IO ()
$cpoke :: Ptr Result -> Result -> IO ()
peek :: Ptr Result -> IO Result
$cpeek :: Ptr Result -> IO Result
pokeByteOff :: Ptr b -> Int -> Result -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> Result -> IO ()
peekByteOff :: Ptr b -> Int -> IO Result
$cpeekByteOff :: forall b. Ptr b -> Int -> IO Result
pokeElemOff :: Ptr Result -> Int -> Result -> IO ()
$cpokeElemOff :: Ptr Result -> Int -> Result -> IO ()
peekElemOff :: Ptr Result -> Int -> IO Result
$cpeekElemOff :: Ptr Result -> Int -> IO Result
alignment :: Result -> Int
$calignment :: Result -> Int
sizeOf :: Result -> Int
$csizeOf :: Result -> Int
Storable, Result
Result -> Zero Result
forall a. a -> Zero a
zero :: Result
$czero :: Result
Zero)

-- No documentation found for Nested "XrResult" "XR_SUCCESS"
pattern $bSUCCESS :: Result
$mSUCCESS :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
SUCCESS                            = Result 0
-- No documentation found for Nested "XrResult" "XR_TIMEOUT_EXPIRED"
pattern $bTIMEOUT_EXPIRED :: Result
$mTIMEOUT_EXPIRED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
TIMEOUT_EXPIRED                    = Result 1
-- No documentation found for Nested "XrResult" "XR_SESSION_LOSS_PENDING"
pattern $bSESSION_LOSS_PENDING :: Result
$mSESSION_LOSS_PENDING :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
SESSION_LOSS_PENDING               = Result 3
-- No documentation found for Nested "XrResult" "XR_EVENT_UNAVAILABLE"
pattern $bEVENT_UNAVAILABLE :: Result
$mEVENT_UNAVAILABLE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
EVENT_UNAVAILABLE                  = Result 4
-- No documentation found for Nested "XrResult" "XR_SPACE_BOUNDS_UNAVAILABLE"
pattern $bSPACE_BOUNDS_UNAVAILABLE :: Result
$mSPACE_BOUNDS_UNAVAILABLE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
SPACE_BOUNDS_UNAVAILABLE           = Result 7
-- No documentation found for Nested "XrResult" "XR_SESSION_NOT_FOCUSED"
pattern $bSESSION_NOT_FOCUSED :: Result
$mSESSION_NOT_FOCUSED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
SESSION_NOT_FOCUSED                = Result 8
-- No documentation found for Nested "XrResult" "XR_FRAME_DISCARDED"
pattern $bFRAME_DISCARDED :: Result
$mFRAME_DISCARDED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
FRAME_DISCARDED                    = Result 9
-- No documentation found for Nested "XrResult" "XR_ERROR_VALIDATION_FAILURE"
pattern $bERROR_VALIDATION_FAILURE :: Result
$mERROR_VALIDATION_FAILURE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_VALIDATION_FAILURE           = Result (-1)
-- No documentation found for Nested "XrResult" "XR_ERROR_RUNTIME_FAILURE"
pattern $bERROR_RUNTIME_FAILURE :: Result
$mERROR_RUNTIME_FAILURE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_RUNTIME_FAILURE              = Result (-2)
-- No documentation found for Nested "XrResult" "XR_ERROR_OUT_OF_MEMORY"
pattern $bERROR_OUT_OF_MEMORY :: Result
$mERROR_OUT_OF_MEMORY :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_OUT_OF_MEMORY                = Result (-3)
-- No documentation found for Nested "XrResult" "XR_ERROR_API_VERSION_UNSUPPORTED"
pattern $bERROR_API_VERSION_UNSUPPORTED :: Result
$mERROR_API_VERSION_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_API_VERSION_UNSUPPORTED      = Result (-4)
-- No documentation found for Nested "XrResult" "XR_ERROR_INITIALIZATION_FAILED"
pattern $bERROR_INITIALIZATION_FAILED :: Result
$mERROR_INITIALIZATION_FAILED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_INITIALIZATION_FAILED        = Result (-6)
-- No documentation found for Nested "XrResult" "XR_ERROR_FUNCTION_UNSUPPORTED"
pattern $bERROR_FUNCTION_UNSUPPORTED :: Result
$mERROR_FUNCTION_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FUNCTION_UNSUPPORTED         = Result (-7)
-- No documentation found for Nested "XrResult" "XR_ERROR_FEATURE_UNSUPPORTED"
pattern $bERROR_FEATURE_UNSUPPORTED :: Result
$mERROR_FEATURE_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FEATURE_UNSUPPORTED          = Result (-8)
-- No documentation found for Nested "XrResult" "XR_ERROR_EXTENSION_NOT_PRESENT"
pattern $bERROR_EXTENSION_NOT_PRESENT :: Result
$mERROR_EXTENSION_NOT_PRESENT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_EXTENSION_NOT_PRESENT        = Result (-9)
-- No documentation found for Nested "XrResult" "XR_ERROR_LIMIT_REACHED"
pattern $bERROR_LIMIT_REACHED :: Result
$mERROR_LIMIT_REACHED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_LIMIT_REACHED                = Result (-10)
-- No documentation found for Nested "XrResult" "XR_ERROR_SIZE_INSUFFICIENT"
pattern $bERROR_SIZE_INSUFFICIENT :: Result
$mERROR_SIZE_INSUFFICIENT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SIZE_INSUFFICIENT            = Result (-11)
-- No documentation found for Nested "XrResult" "XR_ERROR_HANDLE_INVALID"
pattern $bERROR_HANDLE_INVALID :: Result
$mERROR_HANDLE_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_HANDLE_INVALID               = Result (-12)
-- No documentation found for Nested "XrResult" "XR_ERROR_INSTANCE_LOST"
pattern $bERROR_INSTANCE_LOST :: Result
$mERROR_INSTANCE_LOST :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_INSTANCE_LOST                = Result (-13)
-- No documentation found for Nested "XrResult" "XR_ERROR_SESSION_RUNNING"
pattern $bERROR_SESSION_RUNNING :: Result
$mERROR_SESSION_RUNNING :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SESSION_RUNNING              = Result (-14)
-- No documentation found for Nested "XrResult" "XR_ERROR_SESSION_NOT_RUNNING"
pattern $bERROR_SESSION_NOT_RUNNING :: Result
$mERROR_SESSION_NOT_RUNNING :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SESSION_NOT_RUNNING          = Result (-16)
-- No documentation found for Nested "XrResult" "XR_ERROR_SESSION_LOST"
pattern $bERROR_SESSION_LOST :: Result
$mERROR_SESSION_LOST :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SESSION_LOST                 = Result (-17)
-- No documentation found for Nested "XrResult" "XR_ERROR_SYSTEM_INVALID"
pattern $bERROR_SYSTEM_INVALID :: Result
$mERROR_SYSTEM_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SYSTEM_INVALID               = Result (-18)
-- No documentation found for Nested "XrResult" "XR_ERROR_PATH_INVALID"
pattern $bERROR_PATH_INVALID :: Result
$mERROR_PATH_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_PATH_INVALID                 = Result (-19)
-- No documentation found for Nested "XrResult" "XR_ERROR_PATH_COUNT_EXCEEDED"
pattern $bERROR_PATH_COUNT_EXCEEDED :: Result
$mERROR_PATH_COUNT_EXCEEDED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_PATH_COUNT_EXCEEDED          = Result (-20)
-- No documentation found for Nested "XrResult" "XR_ERROR_PATH_FORMAT_INVALID"
pattern $bERROR_PATH_FORMAT_INVALID :: Result
$mERROR_PATH_FORMAT_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_PATH_FORMAT_INVALID          = Result (-21)
-- No documentation found for Nested "XrResult" "XR_ERROR_PATH_UNSUPPORTED"
pattern $bERROR_PATH_UNSUPPORTED :: Result
$mERROR_PATH_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_PATH_UNSUPPORTED             = Result (-22)
-- No documentation found for Nested "XrResult" "XR_ERROR_LAYER_INVALID"
pattern $bERROR_LAYER_INVALID :: Result
$mERROR_LAYER_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_LAYER_INVALID                = Result (-23)
-- No documentation found for Nested "XrResult" "XR_ERROR_LAYER_LIMIT_EXCEEDED"
pattern $bERROR_LAYER_LIMIT_EXCEEDED :: Result
$mERROR_LAYER_LIMIT_EXCEEDED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_LAYER_LIMIT_EXCEEDED         = Result (-24)
-- No documentation found for Nested "XrResult" "XR_ERROR_SWAPCHAIN_RECT_INVALID"
pattern $bERROR_SWAPCHAIN_RECT_INVALID :: Result
$mERROR_SWAPCHAIN_RECT_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SWAPCHAIN_RECT_INVALID       = Result (-25)
-- No documentation found for Nested "XrResult" "XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED"
pattern $bERROR_SWAPCHAIN_FORMAT_UNSUPPORTED :: Result
$mERROR_SWAPCHAIN_FORMAT_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = Result (-26)
-- No documentation found for Nested "XrResult" "XR_ERROR_ACTION_TYPE_MISMATCH"
pattern $bERROR_ACTION_TYPE_MISMATCH :: Result
$mERROR_ACTION_TYPE_MISMATCH :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ACTION_TYPE_MISMATCH         = Result (-27)
-- No documentation found for Nested "XrResult" "XR_ERROR_SESSION_NOT_READY"
pattern $bERROR_SESSION_NOT_READY :: Result
$mERROR_SESSION_NOT_READY :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SESSION_NOT_READY            = Result (-28)
-- No documentation found for Nested "XrResult" "XR_ERROR_SESSION_NOT_STOPPING"
pattern $bERROR_SESSION_NOT_STOPPING :: Result
$mERROR_SESSION_NOT_STOPPING :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SESSION_NOT_STOPPING         = Result (-29)
-- No documentation found for Nested "XrResult" "XR_ERROR_TIME_INVALID"
pattern $bERROR_TIME_INVALID :: Result
$mERROR_TIME_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_TIME_INVALID                 = Result (-30)
-- No documentation found for Nested "XrResult" "XR_ERROR_REFERENCE_SPACE_UNSUPPORTED"
pattern $bERROR_REFERENCE_SPACE_UNSUPPORTED :: Result
$mERROR_REFERENCE_SPACE_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_REFERENCE_SPACE_UNSUPPORTED  = Result (-31)
-- No documentation found for Nested "XrResult" "XR_ERROR_FILE_ACCESS_ERROR"
pattern $bERROR_FILE_ACCESS_ERROR :: Result
$mERROR_FILE_ACCESS_ERROR :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FILE_ACCESS_ERROR            = Result (-32)
-- No documentation found for Nested "XrResult" "XR_ERROR_FILE_CONTENTS_INVALID"
pattern $bERROR_FILE_CONTENTS_INVALID :: Result
$mERROR_FILE_CONTENTS_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FILE_CONTENTS_INVALID        = Result (-33)
-- No documentation found for Nested "XrResult" "XR_ERROR_FORM_FACTOR_UNSUPPORTED"
pattern $bERROR_FORM_FACTOR_UNSUPPORTED :: Result
$mERROR_FORM_FACTOR_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FORM_FACTOR_UNSUPPORTED      = Result (-34)
-- No documentation found for Nested "XrResult" "XR_ERROR_FORM_FACTOR_UNAVAILABLE"
pattern $bERROR_FORM_FACTOR_UNAVAILABLE :: Result
$mERROR_FORM_FACTOR_UNAVAILABLE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_FORM_FACTOR_UNAVAILABLE      = Result (-35)
-- No documentation found for Nested "XrResult" "XR_ERROR_API_LAYER_NOT_PRESENT"
pattern $bERROR_API_LAYER_NOT_PRESENT :: Result
$mERROR_API_LAYER_NOT_PRESENT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_API_LAYER_NOT_PRESENT        = Result (-36)
-- No documentation found for Nested "XrResult" "XR_ERROR_CALL_ORDER_INVALID"
pattern $bERROR_CALL_ORDER_INVALID :: Result
$mERROR_CALL_ORDER_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_CALL_ORDER_INVALID           = Result (-37)
-- No documentation found for Nested "XrResult" "XR_ERROR_GRAPHICS_DEVICE_INVALID"
pattern $bERROR_GRAPHICS_DEVICE_INVALID :: Result
$mERROR_GRAPHICS_DEVICE_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_GRAPHICS_DEVICE_INVALID      = Result (-38)
-- No documentation found for Nested "XrResult" "XR_ERROR_POSE_INVALID"
pattern $bERROR_POSE_INVALID :: Result
$mERROR_POSE_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_POSE_INVALID                 = Result (-39)
-- No documentation found for Nested "XrResult" "XR_ERROR_INDEX_OUT_OF_RANGE"
pattern $bERROR_INDEX_OUT_OF_RANGE :: Result
$mERROR_INDEX_OUT_OF_RANGE :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_INDEX_OUT_OF_RANGE           = Result (-40)
-- No documentation found for Nested "XrResult" "XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED"
pattern $bERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED :: Result
$mERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = Result (-41)
-- No documentation found for Nested "XrResult" "XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED"
pattern $bERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED :: Result
$mERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = Result (-42)
-- No documentation found for Nested "XrResult" "XR_ERROR_NAME_DUPLICATED"
pattern $bERROR_NAME_DUPLICATED :: Result
$mERROR_NAME_DUPLICATED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_NAME_DUPLICATED              = Result (-44)
-- No documentation found for Nested "XrResult" "XR_ERROR_NAME_INVALID"
pattern $bERROR_NAME_INVALID :: Result
$mERROR_NAME_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_NAME_INVALID                 = Result (-45)
-- No documentation found for Nested "XrResult" "XR_ERROR_ACTIONSET_NOT_ATTACHED"
pattern $bERROR_ACTIONSET_NOT_ATTACHED :: Result
$mERROR_ACTIONSET_NOT_ATTACHED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ACTIONSET_NOT_ATTACHED       = Result (-46)
-- No documentation found for Nested "XrResult" "XR_ERROR_ACTIONSETS_ALREADY_ATTACHED"
pattern $bERROR_ACTIONSETS_ALREADY_ATTACHED :: Result
$mERROR_ACTIONSETS_ALREADY_ATTACHED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ACTIONSETS_ALREADY_ATTACHED  = Result (-47)
-- No documentation found for Nested "XrResult" "XR_ERROR_LOCALIZED_NAME_DUPLICATED"
pattern $bERROR_LOCALIZED_NAME_DUPLICATED :: Result
$mERROR_LOCALIZED_NAME_DUPLICATED :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_LOCALIZED_NAME_DUPLICATED    = Result (-48)
-- No documentation found for Nested "XrResult" "XR_ERROR_LOCALIZED_NAME_INVALID"
pattern $bERROR_LOCALIZED_NAME_INVALID :: Result
$mERROR_LOCALIZED_NAME_INVALID :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_LOCALIZED_NAME_INVALID       = Result (-49)
-- No documentation found for Nested "XrResult" "XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING"
pattern $bERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING :: Result
$mERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = Result (-50)
-- No documentation found for Nested "XrResult" "XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB"
pattern $bERROR_COLOR_SPACE_UNSUPPORTED_FB :: Result
$mERROR_COLOR_SPACE_UNSUPPORTED_FB :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_COLOR_SPACE_UNSUPPORTED_FB   = Result (-1000108000)
-- No documentation found for Nested "XrResult" "XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB"
pattern $bERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB :: Result
$mERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = Result (-1000101000)
-- No documentation found for Nested "XrResult" "XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT"
pattern $bERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT :: Result
$mERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = Result (-1000055000)
-- No documentation found for Nested "XrResult" "XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT"
pattern $bERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT :: Result
$mERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = Result (-1000053000)
-- No documentation found for Nested "XrResult" "XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT"
pattern $bERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT :: Result
$mERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = Result (-1000039001)
-- No documentation found for Nested "XrResult" "XR_ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR"
pattern $bERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR :: Result
$mERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR = Result (-1000003001)
-- No documentation found for Nested "XrResult" "XR_ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR"
pattern $bERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR :: Result
$mERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR :: forall r. Result -> (Void# -> r) -> (Void# -> r) -> r
ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR = Result (-1000003000)
{-# complete SUCCESS,
             TIMEOUT_EXPIRED,
             SESSION_LOSS_PENDING,
             EVENT_UNAVAILABLE,
             SPACE_BOUNDS_UNAVAILABLE,
             SESSION_NOT_FOCUSED,
             FRAME_DISCARDED,
             ERROR_VALIDATION_FAILURE,
             ERROR_RUNTIME_FAILURE,
             ERROR_OUT_OF_MEMORY,
             ERROR_API_VERSION_UNSUPPORTED,
             ERROR_INITIALIZATION_FAILED,
             ERROR_FUNCTION_UNSUPPORTED,
             ERROR_FEATURE_UNSUPPORTED,
             ERROR_EXTENSION_NOT_PRESENT,
             ERROR_LIMIT_REACHED,
             ERROR_SIZE_INSUFFICIENT,
             ERROR_HANDLE_INVALID,
             ERROR_INSTANCE_LOST,
             ERROR_SESSION_RUNNING,
             ERROR_SESSION_NOT_RUNNING,
             ERROR_SESSION_LOST,
             ERROR_SYSTEM_INVALID,
             ERROR_PATH_INVALID,
             ERROR_PATH_COUNT_EXCEEDED,
             ERROR_PATH_FORMAT_INVALID,
             ERROR_PATH_UNSUPPORTED,
             ERROR_LAYER_INVALID,
             ERROR_LAYER_LIMIT_EXCEEDED,
             ERROR_SWAPCHAIN_RECT_INVALID,
             ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED,
             ERROR_ACTION_TYPE_MISMATCH,
             ERROR_SESSION_NOT_READY,
             ERROR_SESSION_NOT_STOPPING,
             ERROR_TIME_INVALID,
             ERROR_REFERENCE_SPACE_UNSUPPORTED,
             ERROR_FILE_ACCESS_ERROR,
             ERROR_FILE_CONTENTS_INVALID,
             ERROR_FORM_FACTOR_UNSUPPORTED,
             ERROR_FORM_FACTOR_UNAVAILABLE,
             ERROR_API_LAYER_NOT_PRESENT,
             ERROR_CALL_ORDER_INVALID,
             ERROR_GRAPHICS_DEVICE_INVALID,
             ERROR_POSE_INVALID,
             ERROR_INDEX_OUT_OF_RANGE,
             ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED,
             ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED,
             ERROR_NAME_DUPLICATED,
             ERROR_NAME_INVALID,
             ERROR_ACTIONSET_NOT_ATTACHED,
             ERROR_ACTIONSETS_ALREADY_ATTACHED,
             ERROR_LOCALIZED_NAME_DUPLICATED,
             ERROR_LOCALIZED_NAME_INVALID,
             ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING,
             ERROR_COLOR_SPACE_UNSUPPORTED_FB,
             ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB,
             ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT,
             ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT,
             ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT,
             ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR,
             ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR :: Result #-}

conNameResult :: String
conNameResult :: String
conNameResult = "Result"

enumPrefixResult :: String
enumPrefixResult :: String
enumPrefixResult = ""

showTableResult :: [(Result, String)]
showTableResult :: [(Result, String)]
showTableResult =
  [ (Result
SUCCESS                           , "SUCCESS")
  , (Result
TIMEOUT_EXPIRED                   , "TIMEOUT_EXPIRED")
  , (Result
SESSION_LOSS_PENDING              , "SESSION_LOSS_PENDING")
  , (Result
EVENT_UNAVAILABLE                 , "EVENT_UNAVAILABLE")
  , (Result
SPACE_BOUNDS_UNAVAILABLE          , "SPACE_BOUNDS_UNAVAILABLE")
  , (Result
SESSION_NOT_FOCUSED               , "SESSION_NOT_FOCUSED")
  , (Result
FRAME_DISCARDED                   , "FRAME_DISCARDED")
  , (Result
ERROR_VALIDATION_FAILURE          , "ERROR_VALIDATION_FAILURE")
  , (Result
ERROR_RUNTIME_FAILURE             , "ERROR_RUNTIME_FAILURE")
  , (Result
ERROR_OUT_OF_MEMORY               , "ERROR_OUT_OF_MEMORY")
  , (Result
ERROR_API_VERSION_UNSUPPORTED     , "ERROR_API_VERSION_UNSUPPORTED")
  , (Result
ERROR_INITIALIZATION_FAILED       , "ERROR_INITIALIZATION_FAILED")
  , (Result
ERROR_FUNCTION_UNSUPPORTED        , "ERROR_FUNCTION_UNSUPPORTED")
  , (Result
ERROR_FEATURE_UNSUPPORTED         , "ERROR_FEATURE_UNSUPPORTED")
  , (Result
ERROR_EXTENSION_NOT_PRESENT       , "ERROR_EXTENSION_NOT_PRESENT")
  , (Result
ERROR_LIMIT_REACHED               , "ERROR_LIMIT_REACHED")
  , (Result
ERROR_SIZE_INSUFFICIENT           , "ERROR_SIZE_INSUFFICIENT")
  , (Result
ERROR_HANDLE_INVALID              , "ERROR_HANDLE_INVALID")
  , (Result
ERROR_INSTANCE_LOST               , "ERROR_INSTANCE_LOST")
  , (Result
ERROR_SESSION_RUNNING             , "ERROR_SESSION_RUNNING")
  , (Result
ERROR_SESSION_NOT_RUNNING         , "ERROR_SESSION_NOT_RUNNING")
  , (Result
ERROR_SESSION_LOST                , "ERROR_SESSION_LOST")
  , (Result
ERROR_SYSTEM_INVALID              , "ERROR_SYSTEM_INVALID")
  , (Result
ERROR_PATH_INVALID                , "ERROR_PATH_INVALID")
  , (Result
ERROR_PATH_COUNT_EXCEEDED         , "ERROR_PATH_COUNT_EXCEEDED")
  , (Result
ERROR_PATH_FORMAT_INVALID         , "ERROR_PATH_FORMAT_INVALID")
  , (Result
ERROR_PATH_UNSUPPORTED            , "ERROR_PATH_UNSUPPORTED")
  , (Result
ERROR_LAYER_INVALID               , "ERROR_LAYER_INVALID")
  , (Result
ERROR_LAYER_LIMIT_EXCEEDED        , "ERROR_LAYER_LIMIT_EXCEEDED")
  , (Result
ERROR_SWAPCHAIN_RECT_INVALID      , "ERROR_SWAPCHAIN_RECT_INVALID")
  , (Result
ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED, "ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED")
  , (Result
ERROR_ACTION_TYPE_MISMATCH        , "ERROR_ACTION_TYPE_MISMATCH")
  , (Result
ERROR_SESSION_NOT_READY           , "ERROR_SESSION_NOT_READY")
  , (Result
ERROR_SESSION_NOT_STOPPING        , "ERROR_SESSION_NOT_STOPPING")
  , (Result
ERROR_TIME_INVALID                , "ERROR_TIME_INVALID")
  , (Result
ERROR_REFERENCE_SPACE_UNSUPPORTED , "ERROR_REFERENCE_SPACE_UNSUPPORTED")
  , (Result
ERROR_FILE_ACCESS_ERROR           , "ERROR_FILE_ACCESS_ERROR")
  , (Result
ERROR_FILE_CONTENTS_INVALID       , "ERROR_FILE_CONTENTS_INVALID")
  , (Result
ERROR_FORM_FACTOR_UNSUPPORTED     , "ERROR_FORM_FACTOR_UNSUPPORTED")
  , (Result
ERROR_FORM_FACTOR_UNAVAILABLE     , "ERROR_FORM_FACTOR_UNAVAILABLE")
  , (Result
ERROR_API_LAYER_NOT_PRESENT       , "ERROR_API_LAYER_NOT_PRESENT")
  , (Result
ERROR_CALL_ORDER_INVALID          , "ERROR_CALL_ORDER_INVALID")
  , (Result
ERROR_GRAPHICS_DEVICE_INVALID     , "ERROR_GRAPHICS_DEVICE_INVALID")
  , (Result
ERROR_POSE_INVALID                , "ERROR_POSE_INVALID")
  , (Result
ERROR_INDEX_OUT_OF_RANGE          , "ERROR_INDEX_OUT_OF_RANGE")
  , (Result
ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED, "ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED")
  , (Result
ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED, "ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED")
  , (Result
ERROR_NAME_DUPLICATED             , "ERROR_NAME_DUPLICATED")
  , (Result
ERROR_NAME_INVALID                , "ERROR_NAME_INVALID")
  , (Result
ERROR_ACTIONSET_NOT_ATTACHED      , "ERROR_ACTIONSET_NOT_ATTACHED")
  , (Result
ERROR_ACTIONSETS_ALREADY_ATTACHED , "ERROR_ACTIONSETS_ALREADY_ATTACHED")
  , (Result
ERROR_LOCALIZED_NAME_DUPLICATED   , "ERROR_LOCALIZED_NAME_DUPLICATED")
  , (Result
ERROR_LOCALIZED_NAME_INVALID      , "ERROR_LOCALIZED_NAME_INVALID")
  , (Result
ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING, "ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING")
  , (Result
ERROR_COLOR_SPACE_UNSUPPORTED_FB  , "ERROR_COLOR_SPACE_UNSUPPORTED_FB")
  , (Result
ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB, "ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB")
  , (Result
ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT, "ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT")
  , ( Result
ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT
    , "ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT"
    )
  , (Result
ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT     , "ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT")
  , (Result
ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR   , "ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHR")
  , (Result
ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR, "ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHR")
  ]

instance Show Result where
  showsPrec :: Int -> Result -> ShowS
showsPrec = String
-> [(Result, String)]
-> String
-> (Result -> Int32)
-> (Int32 -> ShowS)
-> Int
-> Result
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixResult [(Result, String)]
showTableResult String
conNameResult (\(Result x :: Int32
x) -> Int32
x) (Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)

instance Read Result where
  readPrec :: ReadPrec Result
readPrec = String
-> [(Result, String)]
-> String
-> (Int32 -> Result)
-> ReadPrec Result
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixResult [(Result, String)]
showTableResult String
conNameResult Int32 -> Result
Result