Added AllocationMode option to create resources
このコミットが含まれているのは:
1 親
97a2bbc69b
コミット
052e50a8d2
20ファイル変更
+140
-83
検索条件に一致するファイルはありません
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする