Initial switch to root constants for cbuffer resource
このコミットが含まれているのは:
1 親
2f6bf05c1b
コミット
1ed6a49210
7ファイル変更
+28
-54
検索条件に一致するファイルはありません
@@ -154,6 +154,18 @@ namespace ComputeSharp.Graphics.Commands
|
||||
this.d3D12GraphicsCommandList.Get()->ResourceBarrier(1, &d3D12ResourceBarrier);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Binds an input constant buffer to the first root parameter.
|
||||
/// </summary>
|
||||
/// <param name="data">The input buffer with the constant data to bind.</param>
|
||||
public readonly unsafe void SetComputeRoot32BitConstants(ReadOnlySpan<uint> data)
|
||||
{
|
||||
fixed (uint* p = data)
|
||||
{
|
||||
this.d3D12GraphicsCommandList.Get()->SetComputeRoot32BitConstants(0, (uint)data.Length, p, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Binds an input <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value to a specified root parameter.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする