You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
If compile an exported function to header file, I got a bad variable name that is g_lib.no::entry.
It cannot be used in C or C++ source code:
This is a really odd feature that I didn't know existed. I imagine there is a reasonable workaround using #embed. This has likely been broken forever so it will be low priority for us to address.
For context what is happening here is that library shaders have no entry, so the entry is getting the name "no::entry", which when munged into the variable is odd.
There is a DXC flag -Vn which can be used to specify a specific variable name to use. I would recommend using that flag as a workaround for this issue.
This is a really odd feature that I didn't know existed. I imagine there is a reasonable workaround using #embed.
Yes, #embed is a good idea, but we cannot use C23 now...
There is a DXC flag -Vn which can be used to specify a specific variable name to use. I would recommend using that flag as a workaround for this issue.
Description
If compile an exported function to header file, I got a bad variable name that is
g_lib.no::entry
.It cannot be used in C or C++ source code:
Steps to Reproduce
shader:
command:
Desired behavior
A good name can be used in C/C++. e.g.
g_lib_no__entry
.Environment
The text was updated successfully, but these errors were encountered: