mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-21 06:15:54 +01:00
21 lines
577 B
C#
21 lines
577 B
C#
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Shader.StructuredIr
|
||
|
{
|
||
|
class ShaderProperties
|
||
|
{
|
||
|
private readonly Dictionary<int, BufferDefinition> _constantBuffers;
|
||
|
|
||
|
public IReadOnlyDictionary<int, BufferDefinition> ConstantBuffers => _constantBuffers;
|
||
|
|
||
|
public ShaderProperties()
|
||
|
{
|
||
|
_constantBuffers = new Dictionary<int, BufferDefinition>();
|
||
|
}
|
||
|
|
||
|
public void AddConstantBuffer(int binding, BufferDefinition definition)
|
||
|
{
|
||
|
_constantBuffers[binding] = definition;
|
||
|
}
|
||
|
}
|
||
|
}
|