mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d9] Add an config option to disable non seamless cube maps.
This commit is contained in:
parent
cd8e2360f4
commit
913129d3b6
10
dxvk.conf
10
dxvk.conf
@ -548,6 +548,16 @@
|
|||||||
|
|
||||||
# d3d9.apitraceMode = False
|
# d3d9.apitraceMode = False
|
||||||
|
|
||||||
|
# Seamless Cubes
|
||||||
|
#
|
||||||
|
# Don't use non seamless cube maps even if they are supported.
|
||||||
|
# Non seamless cubes are correct d3d9 behavior, but can produce worse looking edges.
|
||||||
|
#
|
||||||
|
# Supported values:
|
||||||
|
# - True/False
|
||||||
|
|
||||||
|
# d3d9.seamlessCubes = False
|
||||||
|
|
||||||
# Debug Utils
|
# Debug Utils
|
||||||
#
|
#
|
||||||
# Enables debug utils as this is off by default, this enables user annotations like BeginEvent()/EndEvent().
|
# Enables debug utils as this is off by default, this enables user annotations like BeginEvent()/EndEvent().
|
||||||
|
@ -5963,7 +5963,7 @@ namespace dxvk {
|
|||||||
info.mipmapLodMin = mipFilter.MipsEnabled ? float(cKey.MaxMipLevel) : 0;
|
info.mipmapLodMin = mipFilter.MipsEnabled ? float(cKey.MaxMipLevel) : 0;
|
||||||
info.mipmapLodMax = mipFilter.MipsEnabled ? FLT_MAX : 0;
|
info.mipmapLodMax = mipFilter.MipsEnabled ? FLT_MAX : 0;
|
||||||
info.usePixelCoord = VK_FALSE;
|
info.usePixelCoord = VK_FALSE;
|
||||||
info.nonSeamless = m_dxvkDevice->features().extNonSeamlessCubeMap.nonSeamlessCubeMap;
|
info.nonSeamless = m_dxvkDevice->features().extNonSeamlessCubeMap.nonSeamlessCubeMap && !m_d3d9Options.seamlessCubes;
|
||||||
|
|
||||||
DecodeD3DCOLOR(cKey.BorderColor, info.borderColor.float32);
|
DecodeD3DCOLOR(cKey.BorderColor, info.borderColor.float32);
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@ namespace dxvk {
|
|||||||
this->apitraceMode = config.getOption<bool> ("d3d9.apitraceMode", false);
|
this->apitraceMode = config.getOption<bool> ("d3d9.apitraceMode", false);
|
||||||
this->deviceLocalConstantBuffers = config.getOption<bool> ("d3d9.deviceLocalConstantBuffers", false);
|
this->deviceLocalConstantBuffers = config.getOption<bool> ("d3d9.deviceLocalConstantBuffers", false);
|
||||||
this->allowDirectBufferMapping = config.getOption<bool> ("d3d9.allowDirectBufferMapping", true);
|
this->allowDirectBufferMapping = config.getOption<bool> ("d3d9.allowDirectBufferMapping", true);
|
||||||
|
this->seamlessCubes = config.getOption<bool> ("d3d9.seamlessCubes", false);
|
||||||
|
|
||||||
// If we are not Nvidia, enable general hazards.
|
// If we are not Nvidia, enable general hazards.
|
||||||
this->generalHazards = adapter != nullptr
|
this->generalHazards = adapter != nullptr
|
||||||
|
@ -157,6 +157,9 @@ namespace dxvk {
|
|||||||
|
|
||||||
/// Disable direct buffer mapping
|
/// Disable direct buffer mapping
|
||||||
bool allowDirectBufferMapping;
|
bool allowDirectBufferMapping;
|
||||||
|
|
||||||
|
/// Don't use non seamless cube maps
|
||||||
|
bool seamlessCubes;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user