This commit is contained in:
Wojtek Figat
2021-06-11 16:49:30 +02:00
parent 8f78ccf414
commit 7c9e170a40
2 changed files with 13 additions and 9 deletions

View File

@@ -298,6 +298,11 @@ bool GPUDevice::LoadContent()
return false;
}
bool GPUDevice::CanDraw()
{
return true;
}
void GPUDevice::preDispose()
{
RenderTargetPool::Flush();
@@ -449,6 +454,11 @@ void GPUDevice::Dispose()
VideoOutputModes.Resize(0);
}
uint64 GPUDevice::GetMemoryUsage() const
{
return Resources.GetMemoryUsage();
}
MaterialBase* GPUDevice::GetDefaultMaterial() const
{
return _res->DefaultMaterial;