Minor code tweaks

このコミットが含まれているのは:
Sergio Pedri committed 2019-09-28 22:36:52 +02:00
1 親 0080c43c9f
コミット 9926ff416e
2ファイル変更
+5 -5

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

+4 -4
ファイルの表示
@@ -41,10 +41,10 @@ namespace ComputeSharp.Graphics
/// <summary>
/// Creates a new <see cref="DescriptorAllocator"/> instance with the specified parameters
/// </summary>
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use</param>
public DescriptorAllocator(GraphicsDevice device)
/// <param name="device">The <see cref="ID3D12Device"/> instance to use</param>
public DescriptorAllocator(ID3D12Device device)
{
DescriptorSize = device.NativeDevice.GetDescriptorHandleIncrementSize(DescriptorHeapType.ConstantBufferViewShaderResourceViewUnorderedAccessView);
DescriptorSize = device.GetDescriptorHandleIncrementSize(DescriptorHeapType.ConstantBufferViewShaderResourceViewUnorderedAccessView);
DescriptorHeapDescription descriptorHeapDescription = new DescriptorHeapDescription
{
@@ -53,7 +53,7 @@ namespace ComputeSharp.Graphics
Type = DescriptorHeapType.ConstantBufferViewShaderResourceViewUnorderedAccessView
};
DescriptorHeap = device.NativeDevice.CreateDescriptorHeap(descriptorHeapDescription);
DescriptorHeap = device.CreateDescriptorHeap(descriptorHeapDescription);
_RemainingHandles = DescriptorsPerHeap;
_CurrentCpuHandle = DescriptorHeap.GetCPUDescriptorHandleForHeapStart();
+1 -1
ファイルの表示
@@ -63,7 +63,7 @@ namespace ComputeSharp.Graphics
NativeCopyFence = NativeDevice.CreateFence(0);
NativeDirectFence = NativeDevice.CreateFence(0);
ShaderResourceViewAllocator = new DescriptorAllocator(this);
ShaderResourceViewAllocator = new DescriptorAllocator(NativeDevice);
}
/// <summary>