Skip to content

Commit

Permalink
Fix for 279
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Apr 16, 2021
1 parent 4bb8477 commit 6c040cb
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions generate-new/src/Spec/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -629,20 +629,20 @@ parseHandles = onTypes "handle" parseHandle
"VkDevice" -> pure Device
"XrInstance" -> pure Instance
_ -> case getAttr "parent" n of
Nothing -> pure NoHandleLevel
Nothing -> pure NoHandleLevel
-- TODO: derive this from the spec
Just "VkInstance" -> pure Instance
Just "VkPhysicalDevice" -> pure Instance
Just "VkDevice" -> pure Device
Just "VkCommandPool" -> pure Device
Just "VkDescriptorPool" -> pure Device
Just "VkDisplayKHR" -> pure Instance
Just "VkSurfaceKHR" -> pure Instance
Just "VkVideoSessionParametersKHR" -> pure Device
Just "XrInstance" -> pure Instance
Just "XrSession" -> pure Instance
Just "XrActionSet" -> pure Instance
_ -> throw "Unknown handle level"
Just "VkInstance" -> pure Instance
Just "VkPhysicalDevice" -> pure Instance
Just "VkDevice" -> pure Device
Just "VkCommandPool" -> pure Device
Just "VkDescriptorPool" -> pure Device
Just "VkDisplayKHR" -> pure Instance
Just "VkSurfaceKHR" -> pure Instance
Just "VkVideoSessionKHR" -> pure Device
Just "XrInstance" -> pure Instance
Just "XrSession" -> pure Instance
Just "XrActionSet" -> pure Instance
_ -> throw "Unknown handle level"
pure Handle { .. }

parseFuncPointers :: [Content] -> P (Vector FuncPointer)
Expand Down

0 comments on commit 6c040cb

Please sign in to comment.