mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-12 15:46:14 +01:00
Updated D3DX12.H to latest version with a/analyze fix for VS 2019
This commit is contained in:
@@ -555,6 +555,7 @@ struct CD3DX12_CLEAR_VALUE : public D3D12_CLEAR_VALUE
|
|||||||
UINT8 stencil )
|
UINT8 stencil )
|
||||||
{
|
{
|
||||||
Format = format;
|
Format = format;
|
||||||
|
memset( &Color, 0, sizeof( Color ) );
|
||||||
/* Use memcpy to preserve NAN values */
|
/* Use memcpy to preserve NAN values */
|
||||||
memcpy( &DepthStencil.Depth, &depth, sizeof( depth ) );
|
memcpy( &DepthStencil.Depth, &depth, sizeof( depth ) );
|
||||||
DepthStencil.Stencil = stencil;
|
DepthStencil.Stencil = stencil;
|
||||||
@@ -844,6 +845,7 @@ struct CD3DX12_TEXTURE_COPY_LOCATION : public D3D12_TEXTURE_COPY_LOCATION
|
|||||||
{
|
{
|
||||||
pResource = pRes;
|
pResource = pRes;
|
||||||
Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
|
Type = D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX;
|
||||||
|
PlacedFootprint = {};
|
||||||
SubresourceIndex = Sub;
|
SubresourceIndex = Sub;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user