mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
552c0d8404
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.
19 lines
454 B
C++
19 lines
454 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "VideoCommon/VertexLoader.h"
|
|
|
|
class VertexLoader_Position
|
|
{
|
|
public:
|
|
// GetSize
|
|
static unsigned int GetSize(u64 _type, unsigned int _format, unsigned int _elements);
|
|
|
|
// GetFunction
|
|
static TPipelineFunction GetFunction(u64 _type, unsigned int _format, unsigned int _elements);
|
|
};
|