Fixed initialization of XYZ variables

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-17 10:06:36 +02:00
1 親 7cc729601a
コミット 6a34a86aa5
1ファイル変更
+1 -2
+1 -2
ファイルの表示
@@ -104,8 +104,7 @@ namespace ComputeSharp.Shaders
}
// Initialize the loop targets
Span<uint> xyzSpan = stackalloc uint[] { (uint)x, (uint)y, (uint)z };
ConstantBuffer<uint> xyzBuffer = device.AllocateConstantBuffer(xyzSpan);
var xyzBuffer = device.AllocateConstantBufferFromReflectedValues(new object[] { (uint)x, (uint)y, (uint)z });
commandList.SetComputeRootDescriptorTable(shaderLoader.RootParameters.Length - 1, xyzBuffer);
buffers.Add(xyzBuffer);