add Size property to Buffer
parent
17333cfb67
commit
a413863cf9
|
@ -11,6 +11,11 @@ namespace MoonWorks.Graphics
|
||||||
{
|
{
|
||||||
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroyBuffer;
|
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroyBuffer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Size in bytes.
|
||||||
|
/// </summary>
|
||||||
|
public uint Size { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates a buffer of appropriate size given a type and element count.
|
/// Creates a buffer of appropriate size given a type and element count.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -49,6 +54,7 @@ namespace MoonWorks.Graphics
|
||||||
(Refresh.BufferUsageFlags) usageFlags,
|
(Refresh.BufferUsageFlags) usageFlags,
|
||||||
sizeInBytes
|
sizeInBytes
|
||||||
);
|
);
|
||||||
|
Size = sizeInBytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue