mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Keep pan consistent when switching between integer multiple textures
* Basically for downsample chains and the like, the pixels should now exactly line up with each other rather than shifting back and forth.
This commit is contained in:
@@ -76,6 +76,15 @@ namespace renderdocui.Code
|
||||
else return val;
|
||||
}
|
||||
|
||||
public static float Area(this System.Drawing.PointF val)
|
||||
{
|
||||
return val.X * val.Y;
|
||||
}
|
||||
public static float Aspect(this System.Drawing.PointF val)
|
||||
{
|
||||
return val.X / val.Y;
|
||||
}
|
||||
|
||||
public static uint AlignUp(this uint x, uint a)
|
||||
{
|
||||
return (x + (a - 1)) & (~(a - 1));
|
||||
|
||||
Reference in New Issue
Block a user