![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderCompilerCore.h>
Public Member Functions | |
| FShaderCompilerError (const TCHAR *InStrippedErrorMessage=TEXT("")) | |
| FShaderCompilerError (const TCHAR *InVirtualFilePath, const TCHAR *InLineString, const TCHAR *InStrippedErrorMessage) | |
| FShaderCompilerError (FString &&InStrippedErrorMessage) | |
| FShaderCompilerError (FString &&InStrippedErrorMessage, FString &&InHighlightedLine, FString &&InHighlightedLineMarker) | |
| FString RENDERCORE_API | GetErrorStringWithSourceLocation () const |
| FString RENDERCORE_API | GetErrorStringWithLineMarker () const |
| FString RENDERCORE_API | GetErrorString (bool bOmitLineMarker=false) const |
| bool | HasLineMarker () const |
| bool RENDERCORE_API | ExtractSourceLocation () |
| FString RENDERCORE_API | GetShaderSourceFilePath (TArray< FShaderCompilerError > *InOutErrors=nullptr) const |
Static Public Member Functions | |
| static void RENDERCORE_API | ExtractSourceLocations (TArray< FShaderCompilerError > &InOutErrors) |
Public Attributes | |
| FString | ErrorVirtualFilePath |
| FString | ErrorLineString |
| FString | StrippedErrorMessage |
| FString | HighlightedLine |
| FString | HighlightedLineMarker |
Friends | |
| FArchive & | operator<< (FArchive &Ar, FShaderCompilerError &Error) |
A shader compiler error or warning.
|
inline |
|
inline |
|
inline |
|
inline |
| bool FShaderCompilerError::ExtractSourceLocation | ( | ) |
Extracts the file path and source line from StrippedErrorMessage to ErrorVirtualFilePath and ErrorLineString.
|
static |
Extracts the file path and source line for each error from the error message. Propagates highlighted line and marker to all errors pertaining to the same source location.
Returns the error message with source file and source line (if present).
| FString FShaderCompilerError::GetErrorStringWithLineMarker | ( | ) | const |
Returns the error message with source file and source line (if present), as well as a line marker separated with a LINE_TERMINATOR.
| FString FShaderCompilerError::GetErrorStringWithSourceLocation | ( | ) | const |
Returns the error message with source file and source line (if present), as well as a line marker separated with a LINE_TERMINATOR.
| FString FShaderCompilerError::GetShaderSourceFilePath | ( | TArray< FShaderCompilerError > * | InOutErrors = nullptr | ) | const |
Returns the path of the underlying source file relative to the process base dir.
|
inline |
Returns true if this error message has a marker string for the highlighted source line where the error occurred. Example: /Engine/Private/MySourceFile.usf(120): error: undeclared identifier 'a' float b = a; ^
|
friend |
| FString FShaderCompilerError::ErrorLineString |
| FString FShaderCompilerError::ErrorVirtualFilePath |
| FString FShaderCompilerError::HighlightedLine |
| FString FShaderCompilerError::HighlightedLineMarker |
| FString FShaderCompilerError::StrippedErrorMessage |