Support res scale on images, correctly blacklist for SUST, move logic out of backend. (#1657)
* Support res scale on images, correctly blacklist for SUST, move logic out of backend. * Fix Typo
This commit is contained in:
parent
11a7c99764
commit
e1da7df207
10 changed files with 199 additions and 78 deletions
|
@ -194,6 +194,15 @@ namespace Ryujinx.Graphics.Gpu.Image
|
|||
return changesScale || (hasValue && color.ScaleMode != TextureScaleMode.Blacklisted && color.ScaleFactor != GraphicsConfig.ResScale);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the first available bound colour target, or the depth stencil target if not present.
|
||||
/// </summary>
|
||||
/// <returns>The first bound colour target, otherwise the depth stencil target</returns>
|
||||
public Texture GetAnyRenderTarget()
|
||||
{
|
||||
return _rtColors[0] ?? _rtDepthStencil;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the Render Target scale, given the currently bound render targets.
|
||||
/// This will update scale to match the configured scale, scale textures that are eligible but not scaled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue