Oh btw: if I would want to create an on-device shader editor for geometry modifiers or surface shaders, using the above method is currently the only option – correct? Or is there a way to take some metal files/source strings, compile them and write everything to a file?
Is the newish MTLDynamicLibrary API (https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553982-serialize) suitable for this?
Hi, thanks for your reply!
I figured that might be the issue but had hoped there would be another way.
That being said, I've tried to inline the header file contents and it actually works really well. As I can prepare the shaders before showing the content anyway, hitches shouldn't be too much of an issue.
I'll file a feature request tomorrow and post the number here, thanks!
Oh btw: if I would want to create an on-device shader editor for geometry modifiers or surface shaders, using the above method is currently the only option – correct? Or is there a way to take some metal files/source strings, compile them and write everything to a file?
Is the newish MTLDynamicLibrary API (https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553982-serialize) suitable for this?
Hi, thanks for your reply!
I figured that might be the issue but had hoped there would be another way.
That being said, I've tried to inline the header file contents and it actually works really well. As I can prepare the shaders before showing the content anyway, hitches shouldn't be too much of an issue.
I'll file a feature request tomorrow and post the number here, thanks!