dolphin/Source/Core/VideoCommon
Lioncash 552c0d8404 Common: Move byte swapping utilities into their own header
This moves all the byte swapping utilities into a header named Swap.h.

A dedicated header is much more preferable here due to the size of the
code itself. In general usage throughout the codebase, CommonFuncs.h was
generally only included for these functions anyway. These being in their
own header avoids dumping the lesser used utilities into scope. As well
as providing a localized area for more utilities related to byte
swapping in the future (should they be needed). This also makes it nicer
to identify which files depend on the byte swapping utilities in
particular.

Since this is a completely new header, moving the code uncovered a few
indirect includes, as well as making some other inclusions unnecessary.
2017-03-03 17:18:18 -05:00
..
AsyncRequests.cpp VideoBackendBase: Convert EFBAccessType into an enum class 2017-01-23 03:53:38 -05:00
AsyncRequests.h specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
AVIDump.cpp Merge pull request #4958 from RisingFog/avidump_bitrate 2017-02-27 10:15:19 -08:00
AVIDump.h AVIDump: Rename CloseFile to CloseVideoFile 2017-01-29 22:05:12 -05:00
BoundingBox.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BoundingBox.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BPFunctions.cpp Remove unnecessary ConfigManager includes 2016-11-27 22:38:38 +01:00
BPFunctions.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BPMemory.cpp BPMemory: Eliminate union type punning 2017-01-23 16:05:32 -05:00
BPMemory.h BPMemory: Add const specifier to member functions where applicable 2017-01-23 16:07:03 -05:00
BPStructs.cpp RenderBase: Forward declare EFBAccessType 2017-01-23 12:41:26 -05:00
BPStructs.h VideoCommon: Header cleanup 2016-01-17 20:11:45 -05:00
CMakeLists.txt CMakeLists: Normalize whitespace 2017-03-01 14:53:23 -05:00
CommandProcessor.cpp CommandProcessor: Limit scope of ugly SCPFifoStruct. 2017-01-27 19:04:56 +01:00
CommandProcessor.h CommandProcessor: Limit scope of ugly SCPFifoStruct. 2017-01-27 19:04:56 +01:00
ConstantManager.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CPMemory.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
CPMemory.h specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
DataReader.h Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
Debugger.cpp Further fixes to the formatting change. WX sucks. 2016-06-24 12:16:10 +02:00
Debugger.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
DriverDetails.cpp DriverDetails: Set BUG_PRIMITIVE_RESTART for AMD drivers 2017-02-18 15:07:35 +10:00
DriverDetails.h DriverDetails: Make the bug identifiers humanly readable. 2016-10-31 15:02:08 +01:00
Fifo.cpp Remove special condition for auto dual core determinism 2017-02-01 15:43:47 +01:00
Fifo.h Remove Frameskip 2016-10-08 11:49:51 -05:00
FPSCounter.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FPSCounter.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FramebufferManagerBase.cpp FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
FramebufferManagerBase.h FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
GeometryShaderGen.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
GeometryShaderGen.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
GeometryShaderManager.cpp ShaderManagers: Use aggregate initialization for some variables. 2016-12-10 17:33:51 -05:00
GeometryShaderManager.h VideoBackends: Merge Initialize and Shutdown functions. 2016-06-26 12:34:59 +02:00
HiresTextures.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
HiresTextures.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
ImageWrite.cpp ImageWriter: Don't use inplace alpha truncation. 2016-10-08 12:02:49 +02:00
ImageWrite.h ImageWriter: Don't use inplace alpha truncation. 2016-10-08 12:02:49 +02:00
IndexGenerator.cpp OpcodeDecoding: Convert #defines into enum constants 2017-02-08 00:05:17 -05:00
IndexGenerator.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
LightingShaderGen.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
LightingShaderGen.h LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
LookUpTables.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
MainBase.cpp Merge pull request #4618 from Helios747/bounding_box_check 2017-02-06 21:58:19 +01:00
NativeVertexFormat.h Shader UID change: Only store the two bits of components we need. 2016-06-26 16:13:19 +12:00
OnScreenDisplay.cpp Revert "Merge pull request #4286 from shuffle2/Aestek-clean-osd" 2016-10-15 12:44:37 +02:00
OnScreenDisplay.h Revert "Merge pull request #4286 from shuffle2/Aestek-clean-osd" 2016-10-15 12:44:37 +02:00
OpcodeDecoding.cpp CommandProcessor: Limit scope of ugly SCPFifoStruct. 2017-01-27 19:04:56 +01:00
OpcodeDecoding.h OpcodeDecoding: Convert #defines into enum constants 2017-02-08 00:05:17 -05:00
PerfQueryBase.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
PerfQueryBase.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
PixelEngine.cpp PixelEngine: Use a DirectRead for the token. 2017-01-27 07:49:47 +01:00
PixelEngine.h PixelEngine: Move enum constants into the PixelEngine namespace 2017-02-28 07:01:50 -05:00
PixelShaderGen.cpp LightingShaderGen: Remove unnecessary includes 2017-02-01 01:06:00 -05:00
PixelShaderGen.h VideoCommon: Make dst_alpha state implicit. 2017-01-04 20:02:31 +01:00
PixelShaderManager.cpp ShaderManagers: Use aggregate initialization for some variables. 2016-12-10 17:33:51 -05:00
PixelShaderManager.h VideoBackends: Merge Initialize and Shutdown functions. 2016-06-26 12:34:59 +02:00
PostProcessing.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
PostProcessing.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
RenderBase.cpp FramebufferManagerBase: Return a std::pair from GetTargetSize 2017-02-03 15:27:53 -05:00
RenderBase.h Merge pull request #4739 from AdmiralCurtiss/auto-adjust-window-size-16-9 2017-01-28 13:02:54 +01:00
RenderState.cpp BlendState: Use masking as a fastpath for the logic op NO_OP. 2017-01-06 14:01:39 +01:00
RenderState.h VideoCommon: Assembly blending state in a shared state object. 2017-01-06 14:01:36 +01:00
SamplerCommon.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
sfont.inc Update license headers to GPLv2+ 2015-05-25 13:22:31 +02:00
ShaderGenCommon.h ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
Statistics.cpp VideoCommon: Make API_TYPE an enum class 2016-07-29 19:20:16 -04:00
Statistics.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
TextureCacheBase.cpp TextureCache: Add a dirty bit for partial updates on overlapping EFB copies. 2016-12-27 17:26:04 +01:00
TextureCacheBase.h TextureCache: Add a dirty bit for partial updates on overlapping EFB copies. 2016-12-27 17:26:04 +01:00
TextureConversionShader.cpp VideoCommon: Add APIType entry for Vulkan 2016-10-01 01:09:11 +10:00
TextureConversionShader.h VideoCommon: Make API_TYPE an enum class 2016-07-29 19:20:16 -04:00
TextureDecoder.h TextureDecoder: Deduplicate some utility code 2017-01-15 20:23:26 +11:00
TextureDecoder_Common.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
TextureDecoder_Generic.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
TextureDecoder_Util.h TextureDecoder: Deduplicate some utility code 2017-01-15 20:23:26 +11:00
TextureDecoder_x64.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader.cpp VertexLoaderJit: Fix out-of-bounds access for zfreeze. 2016-09-17 16:47:12 +02:00
VertexLoader.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexLoader_Color.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_Color.h VideoCommon: Header cleanup 2016-01-17 20:11:45 -05:00
VertexLoader_Normal.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_Normal.h Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_Position.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_Position.h Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_TextCoord.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoader_TextCoord.h Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
VertexLoaderARM64.cpp Merge pull request #4210 from degasus/arm 2016-09-27 18:45:14 +02:00
VertexLoaderARM64.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexLoaderBase.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexLoaderBase.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexLoaderManager.cpp VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr 2017-02-18 03:16:24 -05:00
VertexLoaderManager.h Remove Frameskip 2016-10-08 11:49:51 -05:00
VertexLoaderUtils.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexLoaderX64.cpp VertexLoaderX64: Avoid unchecked pointer cast. 2016-12-04 13:09:16 +01:00
VertexLoaderX64.h Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
VertexManagerBase.cpp OpcodeDecoding: Convert #defines into enum constants 2017-02-08 00:05:17 -05:00
VertexManagerBase.h VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr 2017-02-18 03:16:24 -05:00
VertexShaderGen.cpp ShaderGenCommon: Remove unnecessary includes 2017-02-01 12:19:55 -05:00
VertexShaderGen.h VertexShaderGen: Remove the need for an extra UID. 2017-01-13 14:01:17 +01:00
VertexShaderManager.cpp Widescreen Hack improvement 2017-02-26 12:55:57 -06:00
VertexShaderManager.h VideoBackends: Merge Initialize and Shutdown functions. 2016-06-26 12:34:59 +02:00
VideoBackendBase.cpp Don't build Vulkan video backend on macOS 2016-10-06 16:53:55 -07:00
VideoBackendBase.h CommandProcessor: Limit scope of ugly SCPFifoStruct. 2017-01-27 19:04:56 +01:00
VideoCommon.h VideoCommon: Add APIType entry for Vulkan 2016-10-01 01:09:11 +10:00
VideoCommon.vcxproj VideoCommon: Assembly blending state in a shared state object. 2017-01-06 14:01:36 +01:00
VideoCommon.vcxproj.filters TextureDecoder: Deduplicate some utility code 2017-01-15 20:23:26 +11:00
VideoConfig.cpp Merge pull request #4958 from RisingFog/avidump_bitrate 2017-02-27 10:15:19 -08:00
VideoConfig.h Merge pull request #4958 from RisingFog/avidump_bitrate 2017-02-27 10:15:19 -08:00
VideoState.cpp VertexManagerBase: Get rid of static behavior 2016-08-21 23:30:38 -04:00
VideoState.h VideoBackends: Merge Initialize and Shutdown functions. 2016-06-26 12:34:59 +02:00
XFMemory.cpp VideoCommon: Header cleanup 2016-01-17 20:11:45 -05:00
XFMemory.h specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
XFStructs.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
XFStructs.h Set copyright year to when a file was created 2015-05-25 13:22:31 +02:00