Implement shader compile counter (Avalonia)
This commit is contained in:
parent
ca59c3f499
commit
67b873645f
9 changed files with 81 additions and 5 deletions
|
@ -29,6 +29,8 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
private readonly Sync _sync;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
|
||||
public event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
|
||||
|
||||
internal PersistentBuffers PersistentBuffers { get; }
|
||||
|
@ -94,6 +96,8 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
public IProgram CreateProgram(ShaderSource[] shaders, ShaderInfo info)
|
||||
{
|
||||
ProgramCount++;
|
||||
|
||||
return new Program(shaders, info.FragmentOutputMap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue