Added AllocationMode option to create resources

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-16 17:23:54 +01:00
1 親 97a2bbc69b
コミット 052e50a8d2
20ファイル変更
+140 -83

検索条件に一致するファイルはありません

+3 -2
ファイルの表示
@@ -35,8 +35,9 @@ namespace ComputeSharp
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
/// <param name="length">The number of items to store in the current buffer.</param>
internal ConstantBuffer(GraphicsDevice device, int length)
: base(device, length, (uint)GetPaddedSize(), ResourceType.Constant)
/// <param name="allocationMode">The allocation mode to use for the new resource.</param>
internal ConstantBuffer(GraphicsDevice device, int length, AllocationMode allocationMode)
: base(device, length, (uint)GetPaddedSize(), ResourceType.Constant, allocationMode)
{
}