dolphin/Source/Core/VideoBackends/D3D
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
..
BoundingBox.cpp
BoundingBox.h
CMakeLists.txt cmake: Build D3D and D3D12 video backends 2017-01-21 00:35:55 +01:00
D3D.vcxproj
D3D.vcxproj.filters
D3DBase.cpp D3DBase: Create the swapchain in fullscreen mode if enabled. 2016-11-11 20:36:10 +01:00
D3DBase.h D3DBase: Create the swapchain in fullscreen mode if enabled. 2016-11-11 20:36:10 +01:00
D3DBlob.cpp
D3DBlob.h
D3DShader.cpp Core: Remove double newlines at the end of *_LOG messages. 2016-11-02 02:09:33 +00:00
D3DShader.h
D3DState.cpp VideoBackends: Always enable dual-source blending if supported. 2016-10-10 17:32:51 +02:00
D3DState.h specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
D3DTexture.cpp
D3DTexture.h D3D: Add CommonTypes include to D3DTexture.h 2017-02-03 12:07:53 -05:00
D3DUtil.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
D3DUtil.h RenderBase: Forward declare EFBAccessType 2017-01-23 12:41:26 -05:00
FramebufferManager.cpp FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
FramebufferManager.h FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
GeometryShaderCache.cpp Common: Add alignment header 2016-12-06 20:33:53 +01:00
GeometryShaderCache.h
main.cpp VideoConfig: Add option for full-resolution frame dumping 2016-11-28 20:14:59 +10:00
NativeVertexFormat.cpp
PerfQuery.cpp Improve PerfQuery accuracy 2016-07-04 18:54:49 +10:00
PerfQuery.h
PixelShaderCache.cpp VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
PixelShaderCache.h VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
PSTextureEncoder.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
PSTextureEncoder.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
Render.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
Render.h RenderBase: Forward declare EFBAccessType 2017-01-23 12:41:26 -05:00
Television.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
Television.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
TextureCache.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
TextureCache.h TextureCache: Drop unused parameter in backend API. 2016-12-26 22:10:32 +01:00
TextureEncoder.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
VertexManager.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
VertexManager.h LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
VertexShaderCache.cpp Common: Add alignment header 2016-12-06 20:33:53 +01:00
VertexShaderCache.h
VideoBackend.h
XFBEncoder.cpp specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
XFBEncoder.h