mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Fix CheckFeatureSupport return value
This commit is contained in:
parent
efcd5c6b4d
commit
08806070ca
@ -1410,8 +1410,10 @@ namespace dxvk {
|
|||||||
|
|
||||||
// TODO implement, most of these are required for FL 11.1
|
// TODO implement, most of these are required for FL 11.1
|
||||||
// https://msdn.microsoft.com/en-us/library/windows/desktop/hh404457(v=vs.85).aspx
|
// https://msdn.microsoft.com/en-us/library/windows/desktop/hh404457(v=vs.85).aspx
|
||||||
|
const VkPhysicalDeviceFeatures& features = m_dxvkDevice->features();
|
||||||
|
|
||||||
auto info = static_cast<D3D11_FEATURE_DATA_D3D11_OPTIONS*>(pFeatureSupportData);
|
auto info = static_cast<D3D11_FEATURE_DATA_D3D11_OPTIONS*>(pFeatureSupportData);
|
||||||
info->OutputMergerLogicOp = m_featureLevel >= D3D_FEATURE_LEVEL_10_0;
|
info->OutputMergerLogicOp = features.logicOp;
|
||||||
info->UAVOnlyRenderingForcedSampleCount = FALSE;
|
info->UAVOnlyRenderingForcedSampleCount = FALSE;
|
||||||
info->DiscardAPIsSeenByDriver = FALSE;
|
info->DiscardAPIsSeenByDriver = FALSE;
|
||||||
info->FlagsForUpdateAndCopySeenByDriver = FALSE;
|
info->FlagsForUpdateAndCopySeenByDriver = FALSE;
|
||||||
@ -1458,7 +1460,7 @@ namespace dxvk {
|
|||||||
Logger::err(str::format(
|
Logger::err(str::format(
|
||||||
"D3D11Device: CheckFeatureSupport: Unknown feature: ",
|
"D3D11Device: CheckFeatureSupport: Unknown feature: ",
|
||||||
Feature));
|
Feature));
|
||||||
return E_INVALIDARG;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user