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
HLSL gives no special meaning to the function named main. It does give special handling to entry points, and the active entry point when building a freestanding shader. Those cases are handled by the HLSLShader attribute, which can be implicitly applied to main if no other entry is specified, rather than the function name.
The text was updated successfully, but these errors were encountered:
HLSL doesn't distinguish `main` from any other function. It does treat
entry points special, but they're not required to be called `main` so
we have a different attribute annotation to mark them.
At the moment this change really just changes the mangling of functions
named `main` in the Itanium mangling.
Fixesllvm#110517
HLSL gives no special meaning to the function named
main
. It does give special handling to entry points, and the active entry point when building a freestanding shader. Those cases are handled by the HLSLShader attribute, which can be implicitly applied tomain
if no other entry is specified, rather than the function name.The text was updated successfully, but these errors were encountered: