mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-03 08:07:45 +00:00
Add missing includes where headers depend on other headers having been included first.
This is good hygiene, and also happens to be required to build Dolphin using Clang modules. (Under this setup, each header file becomes a module, and each #include is automatically translated to a module import. Recursive includes still leak through (by default), but modules are compiled independently, and can't depend on defines or types having previously been set up. The main reason to retrofit it onto Dolphin is compilation performance - no more textual includes whatsoever, rather than putting a few blessed common headers into a PCH. Unfortunately, I found multiple Clang bugs while trying to build Dolphin this way, so it's not ready yet, but I can start with this prerequisite.)
This commit is contained in:
parent
78deebd732
commit
6e774f1b64
50 changed files with 90 additions and 7 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
// all constant buffer attributes must be 16 bytes aligned, so this are the only allowed components:
|
||||
typedef float float4[4];
|
||||
typedef u32 uint4[4];
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "VideoCommon/VertexManagerBase.h"
|
||||
|
||||
extern u8* g_video_buffer_read_ptr;
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <functional> // for hash
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/Hash.h"
|
||||
|
||||
// m_components
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace OSD
|
||||
{
|
||||
// On-screen message display
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
#define GX_NOP 0x00
|
||||
|
||||
#define GX_LOAD_BP_REG 0x61
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/Common.h"
|
||||
#include "Common/Hash.h"
|
||||
|
||||
enum
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "VideoCommon/NativeVertexFormat.h"
|
||||
|
||||
void LOADERDECL Color_ReadDirect_24b_888();
|
||||
void LOADERDECL Color_ReadDirect_32b_888x();
|
||||
void LOADERDECL Color_ReadDirect_16b_565();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "VideoCommon/NativeVertexFormat.h"
|
||||
|
||||
class VertexLoader_Normal
|
||||
{
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "VideoCommon/NativeVertexFormat.h"
|
||||
|
||||
class VertexLoader_Position {
|
||||
public:
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
class NativeVertexFormat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue