diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-11-08 08:10:00 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-08 12:10:00 +0100 |
| commit | 8d168574eb04ae1e7026ac2b058e3b184f068fae (patch) | |
| tree | 6e0f79447276619af980055419874f5e99595b58 /Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs | |
| parent | 5561a3b95e9c980e3354366570e7896a213b95ae (diff) | |
Use explicit buffer and texture bindings on shaders (#1666)
* Use explicit buffer and texture bindings on shaders
* More XML docs and other nits
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs index 7b1587ae..08e7df3b 100644 --- a/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs +++ b/Ryujinx.Graphics.Shader/Translation/ShaderConfig.cs @@ -20,11 +20,13 @@ namespace Ryujinx.Graphics.Shader.Translation public TranslationFlags Flags { get; } + public TranslationCounts Counts { get; } + public int Size { get; private set; } public FeatureFlags UsedFeatures { get; private set; } - public ShaderConfig(IGpuAccessor gpuAccessor, TranslationFlags flags) + public ShaderConfig(IGpuAccessor gpuAccessor, TranslationFlags flags, TranslationCounts counts) { Stage = ShaderStage.Compute; OutputTopology = OutputTopology.PointList; @@ -38,9 +40,10 @@ namespace Ryujinx.Graphics.Shader.Translation Flags = flags; Size = 0; UsedFeatures = FeatureFlags.None; + Counts = counts; } - public ShaderConfig(ShaderHeader header, IGpuAccessor gpuAccessor, TranslationFlags flags) + public ShaderConfig(ShaderHeader header, IGpuAccessor gpuAccessor, TranslationFlags flags, TranslationCounts counts) { Stage = header.Stage; OutputTopology = header.OutputTopology; @@ -54,6 +57,7 @@ namespace Ryujinx.Graphics.Shader.Translation Flags = flags; Size = 0; UsedFeatures = FeatureFlags.None; + Counts = counts; } public int GetDepthRegister() |
