Add GPUDevice.VideoOutputs with a list of attached monitors
This commit is contained in:
@@ -392,6 +392,8 @@ bool GPUDevice::Init()
|
||||
LOG(Info, "Total graphics memory: {0}", Utilities::BytesToText(TotalGraphicsMemory));
|
||||
if (!Limits.HasCompute)
|
||||
LOG(Warning, "Compute Shaders are not supported");
|
||||
for (const auto& videoOutput : VideoOutputs)
|
||||
LOG(Info, "Video output '{0}' {1}x{2} {3} Hz", videoOutput.Name, videoOutput.Width, videoOutput.Height, videoOutput.RefreshRate);
|
||||
Engine::RequestingExit.Bind<GPUDevice, &GPUDevice::OnRequestingExit>(this);
|
||||
return false;
|
||||
}
|
||||
@@ -725,6 +727,7 @@ void GPUDevice::Draw()
|
||||
void GPUDevice::Dispose()
|
||||
{
|
||||
RenderList::CleanupCache();
|
||||
VideoOutputs.Resize(0);
|
||||
VideoOutputModes.Resize(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user