using System.Collections.Generic; namespace Ryujinx.Graphics.Shader.StructuredIr { class ShaderProperties { private readonly Dictionary _constantBuffers; private readonly Dictionary _storageBuffers; public IReadOnlyDictionary ConstantBuffers => _constantBuffers; public IReadOnlyDictionary StorageBuffers => _storageBuffers; public ShaderProperties() { _constantBuffers = new Dictionary(); _storageBuffers = new Dictionary(); } public void AddConstantBuffer(int binding, BufferDefinition definition) { _constantBuffers[binding] = definition; } public void AddStorageBuffer(int binding, BufferDefinition definition) { _storageBuffers[binding] = definition; } } }