Fix render target clear when sizes mismatch (#2994)
This commit is contained in:
parent
ef24c8983d
commit
6e0799580f
9 changed files with 181 additions and 25 deletions
|
@ -47,6 +47,16 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
/// </summary>
|
||||
public Target Target { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Texture width.
|
||||
/// </summary>
|
||||
public int Width { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Texture height.
|
||||
/// </summary>
|
||||
public int Height { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Texture information.
|
||||
/// </summary>
|
||||
|
@ -926,7 +936,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
FlushTextureDataToGuest(tracked);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets a host texture to use for flushing the texture, at 1x resolution.
|
||||
/// If the HostTexture is already at 1x resolution, it is returned directly.
|
||||
|
@ -1322,6 +1332,8 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
{
|
||||
Info = info;
|
||||
Target = info.Target;
|
||||
Width = info.Width;
|
||||
Height = info.Height;
|
||||
CanForceAnisotropy = CanTextureForceAnisotropy();
|
||||
|
||||
_depth = info.GetDepth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue