Add a little bit more debug information

This commit is contained in:
Magnus Norddahl 2016-10-12 13:49:12 +02:00
parent 27b432a930
commit b5b96ee222
3 changed files with 20 additions and 3 deletions

View File

@ -83,6 +83,13 @@ struct DrawSpanArgs
simple_shade = 1, simple_shade = 1,
nearest_filter = 2 nearest_filter = 2
}; };
FString ToString()
{
FString info;
info.Format("x1 = %i, x2 = %i, y = %i, flags = %i", x1, x2, y, flags);
return info;
}
}; };
struct DrawColumnArgs struct DrawColumnArgs
@ -117,6 +124,13 @@ struct DrawColumnArgs
{ {
simple_shade = 1 simple_shade = 1
}; };
FString ToString()
{
FString info;
info.Format("dest_y = %i, count = %i, flags = %i", dest_y, count, flags);
return info;
}
}; };
class LLVMDrawers class LLVMDrawers

View File

@ -104,7 +104,10 @@ public:
LLVMDrawers::Instance()->DrawSpan(&args); LLVMDrawers::Instance()->DrawSpan(&args);
} }
FString DebugInfo() override { return "DrawSpanLLVMCommand"; } FString DebugInfo() override
{
return "DrawSpanLLVMCommand\n" + args.ToString();
}
protected: protected:
DrawSpanArgs args; DrawSpanArgs args;
@ -332,7 +335,7 @@ protected:
FString DebugInfo() override FString DebugInfo() override
{ {
return "DrawColumnLLVMCommand"; return "DrawColumnLLVMCommand\n" + args.ToString();
} }
public: public:

View File

@ -107,7 +107,7 @@ public:
FString DebugInfo() override FString DebugInfo() override
{ {
return "DrawColumnRt1LLVMCommand"; return "DrawColumnRt1LLVMCommand\n" + args.ToString();
} }
}; };