Danbias/Code/OysterGraphics/Core/Core.cpp

36 lines
858 B
C++
Raw Normal View History

#include "Core.h"
#include <vld.h>
2013-11-20 10:22:01 +01:00
using namespace Oyster::Graphics;
using std::string;
//GPU
2013-11-20 10:22:01 +01:00
ID3D11Device *Core::device = NULL;
//API
2013-11-20 10:22:01 +01:00
ID3D11DeviceContext *Core::deviceContext = NULL;
//SwapChain
2013-11-20 10:22:01 +01:00
IDXGISwapChain* Core::swapChain = NULL;
2013-11-20 10:22:01 +01:00
std::stringstream Core::log;
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-20 10:22:01 +01:00
ID3D11UnorderedAccessView* Core::backBufferUAV = NULL;
2013-11-20 10:22:01 +01:00
ID3D11DepthStencilView* Core::depthStencil = NULL;
ID3D11ShaderResourceView* Core::depthStencilUAV = NULL;
2013-11-20 10:22:01 +01:00
D3D11_VIEWPORT* Core::viewPort = NULL;
Oyster::Math::Float2 Core::resolution = Oyster::Math::Float2::null;
ID3D11ShaderResourceView* Core::srvNULL[16] = {0};
ID3D11RenderTargetView* Core::rtvNULL[8] = {0};
ID3D11UnorderedAccessView* Core::uavNULL[8] = {0};