mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-25 02:05:47 +00:00
21 lines
No EOL
577 B
C#
21 lines
No EOL
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;
|
|
}
|
|
}
|
|
} |