/// <summary>Creates a new instance of a memory allocator that uses a system provided default algorithm.</summary> /// <param name="deviceObject">The device object for which the allocator is managing memory.</param> /// <param name="memoryAllocatorCreateOptions">The options to use when creating the memory allocator.</param> /// <returns>A new memory allocator that uses a system provided default algorithm.</returns> /// <exception cref="ArgumentNullException"><paramref name="deviceObject" /> is <c>null</c>.</exception> /// <exception cref="ArgumentOutOfRangeException"><see cref="GraphicsMemoryAllocatorCreateOptions.ByteLength" /> is <c>zero</c>.</exception> public static GraphicsMemoryAllocator CreateDefault(GraphicsDeviceObject deviceObject, in GraphicsMemoryAllocatorCreateOptions memoryAllocatorCreateOptions)
/// <summary>Initializes a new instance of the <see cref="GraphicsMemoryAllocator" /> class.</summary> /// <param name="deviceObject">The device object for which the allocator is managing memory.</param> /// <exception cref="ArgumentNullException"><paramref name="deviceObject" /> is <c>null</c>.</exception> protected GraphicsMemoryAllocator(GraphicsDeviceObject deviceObject) { ThrowIfNull(deviceObject); _deviceObject = deviceObject; }
public DefaultMemoryAllocator(GraphicsDeviceObject deviceObject, in GraphicsMemoryAllocatorCreateOptions createOptions) : base(deviceObject)