mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-19 22:37:08 +00:00
2 unmerged PRs from original Ryujinx:
Implement shader compile counter (currently not translated, will change, need to pull changes.) Remove event logic in favor of a single init function. Thanks @MutantAura
This commit is contained in:
parent
da0b784679
commit
e9dea85064
9 changed files with 99 additions and 31 deletions
|
|
@ -28,6 +28,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
private bool _initialized;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
|
||||
internal FormatCapabilities FormatCapabilities { get; private set; }
|
||||
internal HardwareCapabilities Capabilities;
|
||||
|
||||
|
|
@ -511,6 +513,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public IProgram CreateProgram(ShaderSource[] sources, ShaderInfo info)
|
||||
{
|
||||
ProgramCount++;
|
||||
|
||||
bool isCompute = sources.Length == 1 && sources[0].Stage == ShaderStage.Compute;
|
||||
|
||||
if (info.State.HasValue || isCompute)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue