Post

Replies

Boosts

Views

Activity

Comment on Create MTLLibrary from raw String for use within RealityKit
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?
Topic: Graphics & Games SubTopic: General Tags:
Nov ’21
Comment on Create MTLLibrary from raw String for use within RealityKit
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!
Topic: Graphics & Games SubTopic: General Tags:
Nov ’21
Comment on Create MTLLibrary from raw String for use within RealityKit
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?
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Comment on Create MTLLibrary from raw String for use within RealityKit
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!
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21