diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-10-20 19:03:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-20 19:03:20 -0300 |
| commit | 2dcc6333f8cbb959293832f52857bdaeab1918bf (patch) | |
| tree | 1aefd3ff6abb23d1a4efc78ee14274283b9041a4 /Ryujinx.Graphics.Shader/TextureDescriptor.cs | |
| parent | 08332bdc041a594d389b0b732b3c4b5f8573e3fb (diff) | |
Fix image binding format (#1625)
* Fix image binding format
* XML doc
Diffstat (limited to 'Ryujinx.Graphics.Shader/TextureDescriptor.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/TextureDescriptor.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/TextureDescriptor.cs b/Ryujinx.Graphics.Shader/TextureDescriptor.cs index a9900fb8..7c2bd714 100644 --- a/Ryujinx.Graphics.Shader/TextureDescriptor.cs +++ b/Ryujinx.Graphics.Shader/TextureDescriptor.cs @@ -6,6 +6,8 @@ namespace Ryujinx.Graphics.Shader public SamplerType Type { get; } + public TextureFormat Format { get; } + public int HandleIndex { get; } public bool IsBindless { get; } @@ -15,10 +17,11 @@ namespace Ryujinx.Graphics.Shader public TextureUsageFlags Flags { get; set; } - public TextureDescriptor(string name, SamplerType type, int handleIndex) + public TextureDescriptor(string name, SamplerType type, TextureFormat format, int handleIndex) { Name = name; Type = type; + Format = format; HandleIndex = handleIndex; IsBindless = false; @@ -33,6 +36,7 @@ namespace Ryujinx.Graphics.Shader { Name = name; Type = type; + Format = TextureFormat.Unknown; HandleIndex = 0; IsBindless = true; |
