Minimise include polution from RenderState
This commit is contained in:
parent
2a2014af09
commit
8f5b196019
|
@ -60,7 +60,9 @@
|
|||
|
||||
std::unique_ptr<Renderer> g_renderer;
|
||||
|
||||
Renderer::Renderer() : m_last_xfb_width{MAX_XFB_WIDTH}, m_last_xfb_height{MAX_XFB_HEIGHT}
|
||||
Renderer::Renderer()
|
||||
: m_prev_efb_format{PixelFormat::INVALID_FMT},
|
||||
m_last_xfb_width{MAX_XFB_WIDTH}, m_last_xfb_height{MAX_XFB_HEIGHT}
|
||||
{
|
||||
UpdateActiveConfig();
|
||||
FreeLook::UpdateActiveConfig();
|
||||
|
|
|
@ -143,7 +143,7 @@ protected:
|
|||
int m_frame_count = 0;
|
||||
|
||||
private:
|
||||
PixelFormat m_prev_efb_format = PixelFormat::INVALID_FMT;
|
||||
PixelFormat m_prev_efb_format;
|
||||
unsigned int m_efb_scale = 1;
|
||||
|
||||
u64 m_last_xfb_ticks = 0;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include <algorithm>
|
||||
#include <array>
|
||||
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/TextureConfig.h"
|
||||
|
||||
void RasterizationState::Generate(const BPMemory& bp, PrimitiveType primitive_type)
|
||||
|
|
|
@ -4,12 +4,22 @@
|
|||
#pragma once
|
||||
|
||||
#include "Common/BitField.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
struct BPMemory;
|
||||
|
||||
enum class AbstractTextureFormat : u32;
|
||||
|
||||
enum class CompareMode : u32;
|
||||
enum class CullMode : u32;
|
||||
enum class DstBlendFactor : u32;
|
||||
enum class FilterMode : u32;
|
||||
enum class LODType : u32;
|
||||
enum class LogicOp : u32;
|
||||
enum class PixelFormat : u32;
|
||||
enum class SrcBlendFactor : u32;
|
||||
enum class WrapMode : u32;
|
||||
|
||||
enum class PrimitiveType : u32
|
||||
{
|
||||
Points,
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include "Common/ChunkFile.h"
|
||||
#include "Core/System.h"
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
#include "VideoCommon/CPMemory.h"
|
||||
#include "VideoCommon/CommandProcessor.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
|
|
Loading…
Reference in New Issue