From cadc01f3affc633fb8f1ad8591ac44c93cb98887 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 23 Aug 2019 13:26:03 -0700 Subject: [PATCH] Updated D3DX12.H to latest version with a/analyze fix for VS 2019 --- DirectXTex/d3dx12.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DirectXTex/d3dx12.h b/DirectXTex/d3dx12.h index 8016989..62d5186 100644 --- a/DirectXTex/d3dx12.h +++ b/DirectXTex/d3dx12.h @@ -555,6 +555,7 @@ struct CD3DX12_CLEAR_VALUE : public D3D12_CLEAR_VALUE UINT8 stencil ) { Format = format; + memset( &Color, 0, sizeof( Color ) ); /* Use memcpy to preserve NAN values */ memcpy( &DepthStencil.Depth, &depth, sizeof( depth ) ); DepthStencil.Stencil = stencil; @@ -844,6 +845,7 @@ struct CD3DX12_TEXTURE_COPY_LOCATION : public D3D12_TEXTURE_COPY_LOCATION { pResource = pRes; Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX; + PlacedFootprint = {}; SubresourceIndex = Sub; } };