Fixed resource descriptor handles allocation over 4096

このコミットが含まれているのは:
Sergio Pedri committed 2020-12-07 20:00:12 +01:00
1 親 8dd72da729
コミット b8a991b89d
6ファイル変更
+166 -50

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

+10 -2
ファイルの表示
@@ -126,11 +126,19 @@ namespace ComputeSharp.Graphics
internal ID3D12Device* D3D12Device => this.d3D12Device;
/// <inheritdoc cref="ID3D12DescriptorHandleAllocator.Allocate"/>
internal void AllocateShaderResourceViewDescriptorHandles(
internal void RentShaderResourceViewDescriptorHandles(
out D3D12_CPU_DESCRIPTOR_HANDLE d3D12CpuDescriptorHandle,
out D3D12_GPU_DESCRIPTOR_HANDLE d3D12GpuDescriptorHandle)
{
this.shaderResourceViewDescriptorAllocator.Allocate(out d3D12CpuDescriptorHandle, out d3D12GpuDescriptorHandle);
this.shaderResourceViewDescriptorAllocator.Rent(out d3D12CpuDescriptorHandle, out d3D12GpuDescriptorHandle);
}
/// <inheritdoc cref="ID3D12DescriptorHandleAllocator.Return"/>
internal void ReturnShaderResourceViewDescriptorHandles(
D3D12_CPU_DESCRIPTOR_HANDLE d3D12CpuDescriptorHandle,
D3D12_GPU_DESCRIPTOR_HANDLE d3D12GpuDescriptorHandle)
{
this.shaderResourceViewDescriptorAllocator.Return(d3D12CpuDescriptorHandle, d3D12GpuDescriptorHandle);
}
/// <inheritdoc cref="ID3D12CommandAllocatorPool.GetCommandAllocator"/>