Target/Backend Plugin Extension #9964
Replies: 3 comments
-
|
Sorry, what kind of extension are you thinking about? What you have done seems to be like the right approach. Maybe send out a PR for review of what you already have? |
Beta Was this translation helpful? Give feedback.
-
|
(I forgot to reply to this discussion earlier. I've recently added a target to Slang so this is still fresh in my mind) Unfortunately, there currently is no such plugin system for adding new targets. It seems to me that it'd be difficult to create such a system, because different targets usually need different IR transformation passes (in There's also an upcoming GDC presentation that may be relevant to you: https://schedule.gdconf.com/session/were-speaking-your-slang-uage-here-a-proof-of-concept-console-backend-for-the-slang-shading-language-presented-by-nvidia/917503 |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick response. It is good to know copying the HLSL target is the proper way to go. I will continue on with this method. Also thanks a lot for the GDC session info. That looks like a great session to attend. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was wondering if there is an extension system to add a new target into Slang without having to fork it? I currently tested by copying how the HLSL target is done. I had to change some core files. Is that the proper way to do it? It would be perfect if a target/backend could be a dynamically loadable module.
Beta Was this translation helpful? Give feedback.
All reactions