mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-30 11:52:11 +01:00
[d3d11] Handle D3D11_FEATURE_SHADER_CACHE
This commit is contained in:
parent
9420391dce
commit
9b4e53cee2
@ -1729,6 +1729,18 @@ namespace dxvk {
|
||||
info->ExtendedNV12SharedTextureSupported = TRUE;
|
||||
} return S_OK;
|
||||
|
||||
case D3D11_FEATURE_SHADER_CACHE: {
|
||||
auto info = static_cast<D3D11_FEATURE_DATA_SHADER_CACHE*>(pFeatureSupportData);
|
||||
|
||||
if (FeatureSupportDataSize != sizeof(*info))
|
||||
return E_INVALIDARG;
|
||||
|
||||
// DXVK will keep all shaders in memory once created, and all Vulkan
|
||||
// drivers that we know of that can run DXVK have an on-disk cache.
|
||||
info->SupportFlags = D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE
|
||||
| D3D11_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE;
|
||||
} return S_OK;
|
||||
|
||||
default:
|
||||
Logger::err(str::format("D3D11Device: CheckFeatureSupport: Unknown feature: ", Feature));
|
||||
return E_INVALIDARG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user