Fixed -Wshadow-field warning in d3dx12.h

This commit is contained in:
Chuck Walbourn 2022-09-17 19:04:30 -07:00
parent e51730e6fc
commit 9668a8d6b6

View File

@ -4113,20 +4113,20 @@ public:
D3D12_BARRIER_SUBRESOURCE_RANGE{ Subresource, 0, 0, 0, 0, 0 } D3D12_BARRIER_SUBRESOURCE_RANGE{ Subresource, 0, 0, 0, 0, 0 }
{} {}
CD3DX12_BARRIER_SUBRESOURCE_RANGE( CD3DX12_BARRIER_SUBRESOURCE_RANGE(
UINT FirstMipLevel, UINT firstMipLevel,
UINT NumMips, UINT numMips,
UINT FirstArraySlice, UINT firstArraySlice,
UINT NumArraySlices, UINT numArraySlices,
UINT FirstPlane = 0, UINT firstPlane = 0,
UINT NumPlanes = 1) noexcept : UINT numPlanes = 1) noexcept :
D3D12_BARRIER_SUBRESOURCE_RANGE D3D12_BARRIER_SUBRESOURCE_RANGE
{ {
FirstMipLevel, firstMipLevel,
NumMips, numMips,
FirstArraySlice, firstArraySlice,
NumArraySlices, numArraySlices,
FirstPlane, firstPlane,
NumPlanes numPlanes
} }
{} {}
}; };