Navigation
API > API/Runtime > API/Runtime/RenderCore
A shader compiler error or warning.
| Name | FShaderCompilerError |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCompilerCore.h |
| Include Path | #include "ShaderCompilerCore.h" |
Syntax
struct FShaderCompilerError
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FShaderCompilerError
(
const TCHAR* InStrippedErrorMessage |
ShaderCompilerCore.h | ||
FShaderCompilerError
(
FString&& InStrippedErrorMessage |
ShaderCompilerCore.h | ||
FShaderCompilerError
(
const TCHAR* InVirtualFilePath, |
ShaderCompilerCore.h | ||
FShaderCompilerError
(
FString&& InStrippedErrorMessage, |
ShaderCompilerCore.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ErrorLineString | FString | ShaderCompilerCore.h | ||
| ErrorVirtualFilePath | FString | ShaderCompilerCore.h | ||
| HighlightedLine | FString | ShaderCompilerCore.h | ||
| HighlightedLineMarker | FString | ShaderCompilerCore.h | ||
| StrippedErrorMessage | FString | ShaderCompilerCore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ExtractSourceLocation() |
Extracts the file path and source line from StrippedErrorMessage to ErrorVirtualFilePath and ErrorLineString. | ShaderCompilerCore.h | |
FString GetErrorString
(
bool bOmitLineMarker |
Returns the error message with source file and source line (if present). | ShaderCompilerCore.h | |
FString GetErrorStringWithLineMarker() |
Returns the error message with source file and source line (if present), as well as a line marker separated with a LINE_TERMINATOR. | ShaderCompilerCore.h | |
FString GetErrorStringWithSourceLocation() |
Returns the error message with source file and source line (if present), as well as a line marker separated with a LINE_TERMINATOR. | ShaderCompilerCore.h | |
FString GetShaderSourceFilePath
(
TArray< FShaderCompilerError >* InOutErrors |
Returns the path of the underlying source file relative to the process base dir. | ShaderCompilerCore.h | |
bool HasLineMarker () |
Returns true if this error message has a marker string for the highlighted source line where the error occurred. | ShaderCompilerCore.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ExtractSourceLocations
(
TArray< FShaderCompilerError >& InOutErrors |
Extracts the file path and source line for each error from the error message. | ShaderCompilerCore.h |