Skip to content

Add support for MTLDevice.newLibraryWithData:error #699

@mariusdkm

Description

@mariusdkm

Would it be possible to get MTLDevice.newLibraryWithData:error implemented?
https://developer.apple.com/documentation/metal/mtldevice/makelibrary(data:)?language=objc

It would be highly beneficial to implement MTLDevice.newLibraryWithData:error as it allows embedding compiled Metal library code directly into the binary. This eliminates the need to load shaders from separate files, saving time and improving performance.

I understand that this requires dispatch support—how complex would this be to implement?

Thank you for considering this feature!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dispatch2Affects the `dispatch2` crateA-frameworkAffects the framework crates and the translator for themenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions