4 ms·
Disclaimer: I know nothing about the issues, but would using C with inline assembly gain anything?
by SeanDav 11y ago
Disclaimer: I know nothing about the issues, but would using C with inline assembly gain anything?
- belleandsebasti 11y agoNo. Inline assembly is a static construct targeting the same compute unit as the C code during compile-time. What is needed is "runtime inline assembly" which assembles inline assembly for a different target architecture at runtime. This is essentially what shader programs are and you don't need special syntax to support it. Just store your shader program in a char* and bundle an assembler/compiler with your host program.