mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[dxvk] Add check whether graphics pipeline libraries can be used
This commit is contained in:
parent
d6afe36592
commit
6c756c2dbe
@ -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 {
|
DxvkFramebufferSize DxvkDevice::getDefaultFramebufferSize() const {
|
||||||
return DxvkFramebufferSize {
|
return DxvkFramebufferSize {
|
||||||
m_properties.core.properties.limits.maxFramebufferWidth,
|
m_properties.core.properties.limits.maxFramebufferWidth,
|
||||||
|
@ -197,6 +197,12 @@ namespace dxvk {
|
|||||||
*/
|
*/
|
||||||
bool isUnifiedMemoryArchitecture() const;
|
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
|
* \brief Queries default framebuffer size
|
||||||
* \returns Default framebuffer size
|
* \returns Default framebuffer size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user