Custom compile time slang lib like core.meta.slang
, ...
#3859
Closed
fknfilewalker
started this conversation in
General
Replies: 1 comment
-
Please see our documentation on module pre compilation: https://shader-slang.com/slang/user-guide/link-time-specialization.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am confused how core.meta.slang, glsl.meta.slang, ... are handled so that they are also correctly recognised by the slang language server for autocompletion (I hope they are not baked into the language server). Is it possible to compile your own slang code to something similar (Slang IR Module?) and save that e.g., inside or next to the executable and still get correct syntax highlighting when runtime slang code wants to use it? Or does this only work with a forward decl using
[__extern]
?My goal is to write some slang code that is compiled and included during host code compilation which can then be used by my runtime slang shaders. If I am completely wrong please tell me the proper way.
Bonus question: How to use slang modules saved as a file without the .slang ending, e.g., if it is defined in a .cpp file.
Beta Was this translation helpful? Give feedback.
All reactions