Skip to content

Commit

Permalink
changes for 1.3.269
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Oct 20, 2023
1 parent c2731f8 commit 2ebeb76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions generate-new/src/Bespoke.hs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ dualPurposeBytestrings = BespokeScheme $ \case
a | (Ptr NonConst Void) <- type' a, "pData" <- name a ->
Just (Returned ByteString)
_ -> Nothing
| c == "vkGetCudaModuleCacheNV" -> \case
a | (Ptr NonConst Void) <- type' a, "pCacheData" <- name a ->
Just (Returned ByteString)
_ -> Nothing
_ -> const Nothing

difficultLengths :: [BespokeScheme]
Expand Down Expand Up @@ -1277,6 +1281,10 @@ cuLaunchSchemes =
a | "pParams" <- name a -> Just (Vector NotNullable VoidPtr)
a | "pExtras" <- name a -> Just (Vector NotNullable VoidPtr)
_ -> Nothing
"VkCudaLaunchInfoNV" -> \case
a | "pParams" <- name a -> Just (Vector Nullable VoidPtr)
a | "pExtras" <- name a -> Just (Vector Nullable VoidPtr)
_ -> Nothing
_ -> const Nothing

----------------------------------------------------------------
Expand Down
8 changes: 7 additions & 1 deletion generate-new/vk/VK/Bracket.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ brackets marshaledCommands handles = context "brackets" $ do

-- TODO: Missing functions here should be warnings, because we might be
-- generating a different version of the spec.
bs <- sequenceV
bs <- sequenceV $
[ cdBracket "Instance"
, cdBracket "Device"
, cdBracket "CommandPool"
Expand Down Expand Up @@ -134,6 +134,12 @@ brackets marshaledCommands handles = context "brackets" $ do
"vkDestroyShaderEXT"
"vkWithShadersEXT"
-- , cdBracket "SemaphoreSciSyncPoolNV"
] <>
[ cdBracket "CudaModuleNV"
| "VkCudaModuleNV" `elem` (hName <$> handles)
] <>
[ cdBracket "CudaFunctionNV"
| "VkCudaFunctionNV" `elem` (hName <$> handles)
]

--
Expand Down

0 comments on commit 2ebeb76

Please sign in to comment.