libs/vkd3d: Copy single layer for array textures in d3d12_command_list_CopyTextureRegion().

This commit is contained in:
Józef Kucia
2017-08-31 09:42:50 +02:00
parent 660ee7b090
commit 0dca9909d9
3 changed files with 18 additions and 4 deletions

View File

@@ -1429,7 +1429,7 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
}
array_size = desc->Dimension == D3D12_RESOURCE_DIMENSION_TEXTURE3D ? 1 : desc->DepthOrArraySize;
base_depth = desc->Dimension != D3D12_RESOURCE_DIMENSION_TEXTURE3D ? 1 : desc->DepthOrArraySize;
base_depth = d3d12_resource_desc_get_depth(desc);
if (first_sub_resource >= desc->MipLevels * array_size
|| sub_resource_count > desc->MipLevels * array_size - first_sub_resource)