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.
This commit is contained in:
parent
5d69d9103e
commit
3d055da5fc
7 changed files with 222 additions and 205 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue