Repository navigation
Only save root signature for entry function. - #86
Conversation
|
Hi Xiang Li (@python3kgae), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
TTYL, MSBOT; |
| } | ||
| else { | ||
| DXASSERT(CGM.getLangOpts().RootSigMinor == 1, | ||
| "else EmitHLSLRootSignature needs to be updated"); |
There was a problem hiding this comment.
We are not in EmitHLSLRootSignature here.
| @@ -5193,17 +5205,8 @@ void CGMSHLSLRuntime::EmitHLSLRootSignature(CodeGenFunction &CGF, | |||
|
|
|||
| DXASSERT(CGF.getLangOpts().RootSigMajor == 1, | |||
| "else EmitHLSLRootSignature needs to be updated"); | |||
There was a problem hiding this comment.
Can we move this DXASSERT to the constructor along with the checks on RootSigMinor to keep these together?
| pModule->GetHLModule().GetRootSignature().Assign(D, pSignature); | ||
| } else { | ||
| // Only save root signature for entry function. | ||
| if (Fn == EntryFunc) |
There was a problem hiding this comment.
Could we avoid parsing root signatures that are not on the entry function, rather than parsing, then throwing them away?
No description provided.