mirror of
https://github.com/microsoft/DirectX-Headers.git
synced 2024-11-23 01:46:44 +08:00
Update d3dx12_resource_helpers.h for /analyze warning (#143)
This commit is contained in:
parent
e692c14946
commit
b5801059e1
@ -460,7 +460,7 @@ inline bool D3DX12GetCopyableFootprints(
|
||||
UINT32 MinPlanePitchWidth, PlaneWidth, PlaneHeight;
|
||||
D3D12_PROPERTY_LAYOUT_FORMAT_TABLE::GetPlaneSubsampledSizeAndFormatForCopyableLayout(PlaneSlice, Format, (UINT)Width, Height, /*_Out_*/ PlaneFormat, /*_Out_*/ MinPlanePitchWidth, /* _Out_ */ PlaneWidth, /*_Out_*/ PlaneHeight);
|
||||
|
||||
D3D12_SUBRESOURCE_FOOTPRINT LocalPlacement;
|
||||
D3D12_SUBRESOURCE_FOOTPRINT LocalPlacement = {};
|
||||
auto& Placement = pLayouts ? pLayouts[uSubRes].Footprint : LocalPlacement;
|
||||
Placement.Format = PlaneFormat;
|
||||
Placement.Width = PlaneWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user