mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
86f8768268
These are only ever used with ShaderCode instances and nothing else. Given that, we can convert these helper functions to expect that type of object as an argument and remove the need for templates, improving compiler throughput a marginal amount, as the template instantiation process doesn't need to be performed. We can also move the definitions of these functions into the cpp file, which allows us to remove a few inclusions from the ShaderGenCommon header. This uncovered a few instances of indirect inclusions being relied upon in other source files. One other benefit is this allows changes to be made to the definitions of the functions without needing to recompile all translation units that make use of these functions, making change testing a little quicker. Moving the definitions into the cpp file also allows us to completely hide DefineOutputMember() from external view, given it's only ever used inside of GenerateVSOutputMembers(). |
||
---|---|---|
.. | ||
BoundingBox.cpp | ||
BoundingBox.h | ||
CMakeLists.txt | ||
D3D.vcxproj | ||
D3D.vcxproj.filters | ||
D3DBase.cpp | ||
D3DBase.h | ||
D3DState.cpp | ||
D3DState.h | ||
DXPipeline.cpp | ||
DXPipeline.h | ||
DXShader.cpp | ||
DXShader.h | ||
DXTexture.cpp | ||
DXTexture.h | ||
main.cpp | ||
NativeVertexFormat.cpp | ||
PerfQuery.cpp | ||
PerfQuery.h | ||
Render.cpp | ||
Render.h | ||
SwapChain.cpp | ||
SwapChain.h | ||
VertexManager.cpp | ||
VertexManager.h | ||
VideoBackend.h |