Shaders and BufferCollection now use append allocation

This commit is contained in:
Simon Lübeß
2020-12-31 13:19:27 +01:00
parent ebb5d94c1f
commit e021da8e0b
4 changed files with 14 additions and 14 deletions
+7 -12
View File
@@ -7,26 +7,21 @@ namespace GlitchyEngine.Renderer
{
typealias BufferEntry = (String Name, int Index, Buffer Buffer, bool OwnsBuffer);
List<BufferEntry> _buffers ~ delete _;
List<BufferEntry> _buffers ~ delete:append _;
Dictionary<StringView, Buffer> _strToBuf ~ delete _;
Dictionary<int, Buffer> _idxToBuf ~ delete _;
Dictionary<StringView, Buffer> _strToBuf ~ delete:append _;
Dictionary<int, Buffer> _idxToBuf ~ delete:append _;
//[AllowAppend]
[AllowAppend]
public this()
{
/*List<BufferEntry> buffers = append .();
Dictionary<StringView, Buffer> strToBuf = append .();
Dictionary<int, Buffer> idxToBuf = append .();
let buffers = append List<BufferEntry>();
let strToBuf = append Dictionary<StringView, Buffer>();
let idxToBuf = append Dictionary<int, Buffer>();
_buffers = buffers;
_strToBuf = strToBuf;
_idxToBuf = idxToBuf;
*/
_buffers = new .();
_strToBuf = new .();
_idxToBuf = new .();
}
public ~this()