[dxvk] Add check whether graphics pipeline libraries can be used

This commit is contained in:
Philip Rebohle 2022-07-05 00:01:07 +02:00
parent d6afe36592
commit 6c756c2dbe
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 15 additions and 0 deletions

View File

@ -41,6 +41,15 @@ namespace dxvk {
}
bool DxvkDevice::canUseGraphicsPipelineLibrary() const {
// Without graphicsPipelineLibraryIndependentInterpolationDecoration, we
// cannot use this effectively in many games since no client API provides
// interpoation qualifiers in vertex shaders.
return m_features.extGraphicsPipelineLibrary.graphicsPipelineLibrary
&& m_properties.extGraphicsPipelineLibrary.graphicsPipelineLibraryIndependentInterpolationDecoration;
}
DxvkFramebufferSize DxvkDevice::getDefaultFramebufferSize() const {
return DxvkFramebufferSize {
m_properties.core.properties.limits.maxFramebufferWidth,

View File

@ -197,6 +197,12 @@ namespace dxvk {
*/
bool isUnifiedMemoryArchitecture() const;
/**
* \brief Checks whether graphics pipeline libraries can be used
* \returns \c true if all required features are supported.
*/
bool canUseGraphicsPipelineLibrary() const;
/**
* \brief Queries default framebuffer size
* \returns Default framebuffer size