41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#ifdef WITH_NNE_RUNTIME_IREE_SHADER
|
|
|
|
#include "CoreMinimal.h"
|
|
|
|
/** Struct containing a message returned by shader compilation. */
|
|
struct NNERUNTIMEIREESHADER_API FNNERuntimeIREEShaderCompileMessage
|
|
{
|
|
enum class EMessageType
|
|
{
|
|
None,
|
|
Info,
|
|
Warning,
|
|
Error
|
|
};
|
|
|
|
EMessageType Type = EMessageType::None;
|
|
FString Text;
|
|
FString VirtualFilePath;
|
|
FString RealFilePath;
|
|
int32 Line = -1;
|
|
int32 ColumnStart = -1;
|
|
int32 ColumnEnd = -1;
|
|
|
|
/** Equality operator used to deduplicate messages. */
|
|
bool operator==(FNNERuntimeIREEShaderCompileMessage const& Rhs) const
|
|
{
|
|
return Type == Rhs.Type && Text == Rhs.Text && VirtualFilePath == Rhs.VirtualFilePath && RealFilePath == Rhs.RealFilePath && Line == Rhs.Line && ColumnStart == Rhs.ColumnStart && ColumnEnd == Rhs.ColumnEnd;
|
|
}
|
|
};
|
|
|
|
/** Struct containing all of the messages returned by shader compilation. */
|
|
struct NNERUNTIMEIREESHADER_API FNNERuntimeIREEShaderCompileResults
|
|
{
|
|
TArray<FNNERuntimeIREEShaderCompileMessage> Messages;
|
|
};
|
|
|
|
#endif // WITH_NNE_RUNTIME_IREE_SHADER
|