diff --git a/src/Graphics/Resources/Buffer.cs b/src/Graphics/Resources/Buffer.cs index 9af312fb..ee90e856 100644 --- a/src/Graphics/Resources/Buffer.cs +++ b/src/Graphics/Resources/Buffer.cs @@ -11,6 +11,11 @@ namespace MoonWorks.Graphics { protected override Action QueueDestroyFunction => Refresh.Refresh_QueueDestroyBuffer; + /// + /// Size in bytes. + /// + public uint Size { get; } + /// /// Creates a buffer of appropriate size given a type and element count. /// @@ -49,6 +54,7 @@ namespace MoonWorks.Graphics (Refresh.BufferUsageFlags) usageFlags, sizeInBytes ); + Size = sizeInBytes; } ///