Files
dolphin/Source/Core/VideoCommon/PixelShaderManager.h
T

46 lines
1.2 KiB
C++
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
2008-12-08 04:46:09 +00:00
#pragma once
2008-12-08 04:46:09 +00:00
2014-02-17 05:18:15 -05:00
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/ConstantManager.h"
#include "VideoCommon/PixelShaderGen.h"
#include "VideoCommon/XFMemory.h"
2008-12-08 04:46:09 +00:00
class PointerWrap;
// The non-API dependent parts.
class PixelShaderManager
2008-12-08 04:46:09 +00:00
{
public:
static void Init();
2009-09-15 21:49:15 +00:00
static void Dirty();
static void Shutdown();
static void DoState(PointerWrap &p);
2008-12-08 04:46:09 +00:00
2014-01-15 16:58:36 +01:00
static void SetConstants(); // sets pixel shader constants
2008-12-08 04:46:09 +00:00
// constant management, should be called after memory is committed
static void SetColorChanged(int type, int index);
static void SetAlpha();
static void SetDestAlpha();
static void SetTexDims(int texmapid, u32 width, u32 height, u32 wraps, u32 wrapt);
static void SetZTextureBias();
static void SetViewportChanged();
static void SetIndMatrixChanged(int matrixidx);
static void SetTevKSelChanged(int id);
static void SetZTextureTypeChanged();
static void SetIndTexScaleChanged(bool high);
static void SetTexCoordChanged(u8 texmapid);
2009-09-15 21:49:15 +00:00
static void SetFogColorChanged();
static void SetFogParamChanged();
static void SetFogRangeAdjustChanged();
static PixelShaderConstants constants;
static bool dirty;
2008-12-08 04:46:09 +00:00
};