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
It seems like an hlsl::Exception is being thrown when calling Compile for preprocessing data. However, the exception is not being caught by the try-catch block in Compile. Perhaps it's being thrown by clang elsewhere once compilation has begun? I'm using IDxcCompiler3. It looks like compilation is failing inside here.
if (isPreprocessing) {
// These settings are back-compatible with fxc.
clang::PreprocessorOutputOptions &PPOutOpts =
compiler.getPreprocessorOutputOpts();
PPOutOpts.ShowCPP = 1; // Print normal preprocessed output.
PPOutOpts.ShowComments = 0; // Show comments.
PPOutOpts.ShowLineMarkers = 1; // Show \#line markers.
PPOutOpts.UseLineDirectives = 1; // Use \#line instead of GCC-style \# N.
PPOutOpts.ShowMacroComments = 0; // Show comments, even in macros.
PPOutOpts.ShowMacros = 0; // Print macro definitions.
PPOutOpts.RewriteIncludes = 0; // Preprocess include directives only.
FrontendInputFile file(pUtf8SourceName, IK_HLSL);
clang::PrintPreprocessedAction action;
if (action.BeginSourceFile(compiler, file)) {
action.Execute();
action.EndSourceFile();
}
outStream.flush();
}
The text was updated successfully, but these errors were encountered:
It seems like an hlsl::Exception is being thrown when calling Compile for preprocessing data. However, the exception is not being caught by the try-catch block in Compile. Perhaps it's being thrown by clang elsewhere once compilation has begun? I'm using IDxcCompiler3. It looks like compilation is failing inside here.
The text was updated successfully, but these errors were encountered: