From 192e674537bf62f0db79926f64097ee7278478b3 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Mon, 7 Feb 2022 13:18:10 -0800 Subject: [PATCH] Update D3DX12 for latest fixes --- DirectXTex/d3dx12.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/DirectXTex/d3dx12.h b/DirectXTex/d3dx12.h index 8a051b4..0b09386 100644 --- a/DirectXTex/d3dx12.h +++ b/DirectXTex/d3dx12.h @@ -1829,6 +1829,20 @@ struct CD3DX12_RESOURCE_DESC1 : public D3D12_RESOURCE_DESC1 explicit CD3DX12_RESOURCE_DESC1( const D3D12_RESOURCE_DESC1& o ) noexcept : D3D12_RESOURCE_DESC1( o ) {} + explicit CD3DX12_RESOURCE_DESC1( const D3D12_RESOURCE_DESC& o ) noexcept + { + Dimension = o.Dimension; + Alignment = o.Alignment; + Width = o.Width; + Height = o.Height; + DepthOrArraySize = o.DepthOrArraySize; + MipLevels = o.MipLevels; + Format = o.Format; + SampleDesc = o.SampleDesc; + Layout = o.Layout; + Flags = o.Flags; + SamplerFeedbackMipRegion = {}; + } CD3DX12_RESOURCE_DESC1( D3D12_RESOURCE_DIMENSION dimension, UINT64 alignment,