Refactored public Buffer<T> APIs
このコミットが含まれているのは:
1 親
ccec496316
コミット
0e2d604f47
4ファイル変更
+173
-124
検索条件に一致するファイルはありません
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using ComputeSharp.Core.Extensions;
|
||||
using ComputeSharp.Graphics;
|
||||
using ComputeSharp.Graphics.Commands;
|
||||
@@ -136,8 +137,9 @@ namespace ComputeSharp.Shaders
|
||||
|
||||
// Initialize the loop targets and the captured values
|
||||
ConstantBuffer<Int4> variablesBuffer = ShaderRunner.GetVariablesBuffer(device);
|
||||
ReadOnlySpan<Int4> variables = dispatchData.Variables;
|
||||
|
||||
variablesBuffer.SetData(dispatchData.Variables);
|
||||
variablesBuffer.SetData(ref MemoryMarshal.GetReference(variables), variables.Length, 0);
|
||||
|
||||
commandList.SetComputeRootDescriptorTable(0, variablesBuffer.D3D12GpuDescriptorHandle);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする