mirror of
https://github.com/rt64/rt64.git
synced 2025-03-14 13:21:24 +00:00
Only prefer devices based on VRAM in D3D12. Fixes #18.
This commit is contained in:
parent
1adcbea31a
commit
e4af592195
@ -2966,12 +2966,9 @@ namespace RT64 {
|
||||
|
||||
// Pick this adapter and device if it has better feature support than the current one.
|
||||
bool preferOverNothing = (adapter == nullptr) || (d3d == nullptr);
|
||||
bool preferShaderModel = (dataShaderModel.HighestShaderModel > shaderModel);
|
||||
bool preferRtSupport = rtSupportOption && !capabilities.raytracing;
|
||||
bool preferRtStateUpdateSupport = rtStateUpdateSupportOption && !capabilities.raytracingStateUpdate;
|
||||
bool preferVideoMemory = adapterDesc.DedicatedVideoMemory > dedicatedVideoMemory;
|
||||
bool preferUserChoice = false;//wcsstr(adapterDesc.Description, L"AMD") != nullptr;
|
||||
bool preferOption = preferOverNothing || preferShaderModel || preferRtSupport || preferRtStateUpdateSupport || preferVideoMemory || preferUserChoice;
|
||||
bool preferOption = preferOverNothing || preferVideoMemory || preferUserChoice;
|
||||
if (preferOption) {
|
||||
if (d3d != nullptr) {
|
||||
d3d->Release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user