(MSVC 2017) Fix VS 2017 solution

This commit is contained in:
twinaphex 2018-02-05 00:04:41 +01:00
parent fa07570f76
commit 6982dd838f
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ bool d3d12_init_descriptors(d3d12_video_t* d3d12)
}, },
}; };
D3D12_ROOT_PARAMETER rootParameters[ROOT_ID_MAX] = {}; D3D12_ROOT_PARAMETER rootParameters[ROOT_ID_MAX];
rootParameters[ROOT_ID_TEXTURE_T].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE; rootParameters[ROOT_ID_TEXTURE_T].ParameterType = D3D12_ROOT_PARAMETER_TYPE_DESCRIPTOR_TABLE;
rootParameters[ROOT_ID_TEXTURE_T].DescriptorTable.NumDescriptorRanges = countof(srv_table); rootParameters[ROOT_ID_TEXTURE_T].DescriptorTable.NumDescriptorRanges = countof(srv_table);

View File

@ -1408,7 +1408,7 @@ static INLINE void d3d12_resource_transition(
D3D12_RESOURCE_STATES state_before, D3D12_RESOURCE_STATES state_before,
D3D12_RESOURCE_STATES state_after) D3D12_RESOURCE_STATES state_after)
{ {
D3D12_RESOURCE_BARRIER barrier = {}; D3D12_RESOURCE_BARRIER barrier;
barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION; barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE; barrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE;
barrier.Transition.pResource = resource; barrier.Transition.pResource = resource;