mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 03:22:30 +02:00
c85e0a2586
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. |
||
---|---|---|
.. | ||
BoundingBox.cpp | ||
BoundingBox.h | ||
CMakeLists.txt | ||
D3D.vcxproj | ||
D3D.vcxproj.filters | ||
D3DBase.cpp | ||
D3DBase.h | ||
D3DBlob.cpp | ||
D3DBlob.h | ||
D3DShader.cpp | ||
D3DShader.h | ||
D3DState.cpp | ||
D3DState.h | ||
D3DTexture.cpp | ||
D3DTexture.h | ||
D3DUtil.cpp | ||
D3DUtil.h | ||
FramebufferManager.cpp | ||
FramebufferManager.h | ||
GeometryShaderCache.cpp | ||
GeometryShaderCache.h | ||
main.cpp | ||
NativeVertexFormat.cpp | ||
PerfQuery.cpp | ||
PerfQuery.h | ||
PixelShaderCache.cpp | ||
PixelShaderCache.h | ||
PSTextureEncoder.cpp | ||
PSTextureEncoder.h | ||
Render.cpp | ||
Render.h | ||
Television.cpp | ||
Television.h | ||
TextureCache.cpp | ||
TextureCache.h | ||
TextureEncoder.h | ||
VertexManager.cpp | ||
VertexManager.h | ||
VertexShaderCache.cpp | ||
VertexShaderCache.h | ||
VideoBackend.h | ||
XFBEncoder.cpp | ||
XFBEncoder.h |