dolphin/Source/Core/VideoBackends/Null
Lioncash c85e0a2586 FramebufferManagerBase: Return a std::pair from GetTargetSize
Keeps associated data together. It also eliminates the possibility of out
parameters not being initialized properly. For example, consider the
following example:

-- some FramebufferManager implementation --

void FBMgrImpl::GetTargetSize(u32* width, u32* height) override
{
  // Do nothing
}

-- somewhere else where the function is used --

u32 width, height;
framebuffer_manager_instance->GetTargetSize(&width, &height);

if (texture_width != width) <-- Uninitialized variable usage
{
  ...
}

It makes it much more obvious to spot any initialization issues, because
it requires something to be returned, as opposed to allowing an
implementation to just not do anything.
2017-02-03 15:27:53 -05:00
..
CMakeLists.txt
FramebufferManager.h FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
Null.vcxproj Null: Create Visual Studio project file. 2016-06-25 22:40:23 +02:00
NullBackend.cpp VideoConfig: Add option for full-resolution frame dumping 2016-11-28 20:14:59 +10:00
PerfQuery.h Add missing override 2016-06-26 00:49:50 -04:00
Render.cpp Core: Remove double newlines at the end of *_LOG messages. 2016-11-02 02:09:33 +00:00
Render.h AVIDump: Move CoreTiming into caller. 2016-10-10 12:03:18 +02:00
ShaderCache.cpp VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
ShaderCache.h VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
TextureCache.h TextureCache: Drop unused parameter in backend API. 2016-12-26 22:10:32 +01:00
VertexManager.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
VertexManager.h VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
VideoBackend.h VideoCommon: Drop GetConfigName. 2016-06-26 12:34:59 +02:00