mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Add a little bit more debug information
This commit is contained in:
parent
27b432a930
commit
b5b96ee222
3 changed files with 20 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -107,7 +107,7 @@ public:
|
||||||
|
|
||||||
FString DebugInfo() override
|
FString DebugInfo() override
|
||||||
{
|
{
|
||||||
return "DrawColumnRt1LLVMCommand";
|
return "DrawColumnRt1LLVMCommand\n" + args.ToString();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue