Minor code tweaks
このコミットが含まれているのは:
1 親
d131707cd1
コミット
5ccd88d05a
3ファイル変更
+6
-12
検索条件に一致するファイルはありません
@@ -139,7 +139,6 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
GraphicsDevice.D3D12Device->GetCopyableFootprint(
|
||||
&d3D12ResourceDescription,
|
||||
out D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint,
|
||||
out _,
|
||||
out ulong rowSizeInBytes,
|
||||
out ulong totalSizeInBytes);
|
||||
|
||||
@@ -212,7 +211,6 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
GraphicsDevice.D3D12Device->GetCopyableFootprint(
|
||||
&d3D12ResourceDescription,
|
||||
out D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint,
|
||||
out _,
|
||||
out ulong rowSizeInBytes,
|
||||
out ulong totalSizeInBytes);
|
||||
|
||||
|
||||
@@ -153,7 +153,6 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
GraphicsDevice.D3D12Device->GetCopyableFootprint(
|
||||
&d3D12ResourceDescription,
|
||||
out D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint,
|
||||
out _,
|
||||
out ulong rowSizeInBytes,
|
||||
out ulong totalSizeInBytes);
|
||||
|
||||
@@ -233,7 +232,6 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
GraphicsDevice.D3D12Device->GetCopyableFootprint(
|
||||
&d3D12ResourceDescription,
|
||||
out D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint,
|
||||
out _,
|
||||
out ulong rowSizeInBytes,
|
||||
out ulong totalSizeInBytes);
|
||||
|
||||
|
||||
@@ -409,28 +409,26 @@ namespace ComputeSharp.Graphics.Extensions
|
||||
/// <param name="d3D12Device">The target <see cref="ID3D12Device"/> to use to get the layout info.</param>
|
||||
/// <param name="d3D12ResourceDesc">The <see cref="D3D12_RESOURCE_DESC"/> value for the target resource.</param>
|
||||
/// <param name="d3D12PlacedSubresourceFootprint">The resulting layout info for the resource.</param>
|
||||
/// <param name="numRows">The number of rows in the resource.</param>
|
||||
/// <param name="rowSizeInBytes">The size in bytes of each row in the resource.</param>
|
||||
/// <param name="totalSizeInBytes">The total number of bytes for the resource.</param>
|
||||
public static void GetCopyableFootprint(
|
||||
this ref ID3D12Device d3D12Device,
|
||||
D3D12_RESOURCE_DESC* d3D12ResourceDesc,
|
||||
out D3D12_PLACED_SUBRESOURCE_FOOTPRINT d3D12PlacedSubresourceFootprint,
|
||||
out uint numRows,
|
||||
out ulong rowSizeInBytes,
|
||||
out ulong totalSizeInBytes)
|
||||
{
|
||||
uint a;
|
||||
ulong b, c;
|
||||
ulong a, b;
|
||||
|
||||
fixed (D3D12_PLACED_SUBRESOURCE_FOOTPRINT* p = &d3D12PlacedSubresourceFootprint)
|
||||
{
|
||||
d3D12Device.GetCopyableFootprints(d3D12ResourceDesc, 0, 1, 0, p, &a, &b, &c);
|
||||
uint _;
|
||||
|
||||
d3D12Device.GetCopyableFootprints(d3D12ResourceDesc, 0, 1, 0, p, &_, &a, &b);
|
||||
}
|
||||
|
||||
numRows = a;
|
||||
rowSizeInBytes = b;
|
||||
totalSizeInBytes = c;
|
||||
rowSizeInBytes = a;
|
||||
totalSizeInBytes = b;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする