2013-11-06 22:52:00 +01:00
|
|
|
#include "Core.h"
|
2013-11-29 10:25:27 +01:00
|
|
|
#include <vld.h>
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
using namespace Oyster::Graphics;
|
2013-11-06 22:52:00 +01:00
|
|
|
using std::string;
|
|
|
|
|
|
|
|
//GPU
|
2013-11-20 10:22:01 +01:00
|
|
|
ID3D11Device *Core::device = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
|
|
|
//API
|
2013-11-20 10:22:01 +01:00
|
|
|
ID3D11DeviceContext *Core::deviceContext = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
|
|
|
//SwapChain
|
2013-11-20 10:22:01 +01:00
|
|
|
IDXGISwapChain* Core::swapChain = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
std::stringstream Core::log;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2014-02-04 16:06:59 +01:00
|
|
|
Oyster::Resource::ResourceManager Core::loader;
|
|
|
|
|
|
|
|
std::wstring Core::modelPath;
|
|
|
|
std::wstring Core::texturePath;
|
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
ID3D11RenderTargetView* Core::backBufferRTV = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
ID3D11UnorderedAccessView* Core::backBufferUAV = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
ID3D11DepthStencilView* Core::depthStencil = NULL;
|
2013-12-18 20:28:06 +01:00
|
|
|
ID3D11ShaderResourceView* Core::depthStencilUAV = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-11-20 10:22:01 +01:00
|
|
|
D3D11_VIEWPORT* Core::viewPort = NULL;
|
2013-11-06 22:52:00 +01:00
|
|
|
|
2013-12-18 20:28:06 +01:00
|
|
|
Oyster::Math::Float2 Core::resolution = Oyster::Math::Float2::null;
|
|
|
|
|
|
|
|
ID3D11ShaderResourceView* Core::srvNULL[16] = {0};
|
|
|
|
ID3D11RenderTargetView* Core::rtvNULL[8] = {0};
|
|
|
|
ID3D11UnorderedAccessView* Core::uavNULL[8] = {0};
|