Add basic error logging to the GPU
This commit is contained in:
parent
d1ab9fb42c
commit
af8498d679
27 changed files with 473 additions and 493 deletions
|
@ -1,7 +1,7 @@
|
|||
using OpenTK.Graphics.OpenGL;
|
||||
using Ryujinx.Common.Logging;
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using Ryujinx.Graphics.GAL.Texture;
|
||||
using Ryujinx.Graphics.OpenGL.Formats;
|
||||
using OpenTK.Graphics.OpenGL;
|
||||
|
||||
namespace Ryujinx.Graphics.OpenGL
|
||||
{
|
||||
|
@ -135,13 +135,15 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
_info.Height,
|
||||
_info.Depth);
|
||||
break;
|
||||
|
||||
default:
|
||||
Logger.PrintError(LogClass.Gpu, $"Invalid or unsupported texture target: {target}.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public ITexture CreateDefaultView()
|
||||
{
|
||||
int layers = _info.GetLayers();
|
||||
|
||||
return CreateView(_info, 0, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue