Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer MTLSharedTextureHandle #127

Open
OskarGroth opened this issue Apr 13, 2023 · 1 comment
Open

Transfer MTLSharedTextureHandle #127

OskarGroth opened this issue Apr 13, 2023 · 1 comment

Comments

@OskarGroth
Copy link

This library looks great, but I want to use it for sharing a MTLSharedTextureHandle.
Unfortunately, this only seems possible to encode using a NSXPCCoder:

https://stackoverflow.com/questions/53286138/how-do-you-use-mtlsharedtexturehandle-or-mtlsharedeventhandle-with-the-c-xpc-int

This seems like a huge limitation. Is this library a no-go in this case?

@jakaplan
Copy link
Contributor

Unfortunately you're correct that because this package is based on the C API it's a no-go.

If Apple in the future compatibility with the C API then I'll happily update this package. Overall I'm disappointed in the way they've split their capabilities especially because the C API is friendlier to use from Swift than the Objective-C one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants