diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2020-09-11 00:48:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 09:48:48 +1000 |
| commit | 3d055da5fc77f462e9c7099e08570213c0220cd4 (patch) | |
| tree | 0f1fea8ba0385ff4672b783fd536e35bb91a2069 /Ryujinx.Graphics.Gpu/Window.cs | |
| parent | 5d69d9103ef423719619658dc3378869692a5064 (diff) | |
Allow swizzles to match with "undefined" components (#1538)
* Add swizzle matching rules.
Improves rules which try to match incompatible formats as perfect, such as D32 float -> R32 float.
Remove Format.HasOneComponent, since this information is now available via the FormatInfo struct.
* Fix this rule.
* Update component counts for depth formats.
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Window.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Window.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Window.cs b/Ryujinx.Graphics.Gpu/Window.cs index 10ee74be..cf5c01ef 100644 --- a/Ryujinx.Graphics.Gpu/Window.cs +++ b/Ryujinx.Graphics.Gpu/Window.cs @@ -112,7 +112,7 @@ namespace Ryujinx.Graphics.Gpu Action<object> releaseCallback, object userObj) { - FormatInfo formatInfo = new FormatInfo(format, 1, 1, bytesPerPixel); + FormatInfo formatInfo = new FormatInfo(format, 1, 1, bytesPerPixel, 4); TextureInfo info = new TextureInfo( address, |
