13 std::vector<DX11TextureRT*>& rtTextures,
DX11TextureDS* dsTexture)
16 mRTTextures(rtTextures),
17 mDSTexture(dsTexture),
18 mRTViews(target->GetNumTargets()),
20 mSaveRTViews(target->GetNumTargets()),
24 for (
unsigned int i = 0; i < numTargets; ++i)
28 #if defined(GTE_GRAPHICS_USE_NAMED_OBJECTS) 36 #if defined(GTE_GRAPHICS_USE_NAMED_OBJECTS) 43 std::vector<GEObject*>& rtTextures,
GEObject* dsTexture)
45 std::vector<DX11TextureRT*> dxRTTextures(rtTextures.size());
46 for (
size_t i = 0; i < rtTextures.size(); ++i)
52 return std::make_shared<DX11DrawTarget>(
target, dxRTTextures, dxDSTexture);
57 UINT numViewports = 1;
63 D3D11_VIEWPORT viewport;
66 viewport.TopLeftX = 0.0f;
67 viewport.TopLeftY = 0.0f;
68 viewport.MinDepth = 0.0f;
69 viewport.MaxDepth = 1.0f;
70 context->RSSetViewports(1, &viewport);
81 for (
unsigned int i = 0; i < numTargets; ++i)
std::shared_ptr< TextureRT > const GetRTTexture(unsigned int i) const
unsigned int GetWidth() const
unsigned int GetHeight() const
std::vector< DX11TextureRT * > mRTTextures
std::shared_ptr< TextureDS > const GetDSTexture() const
std::vector< ID3D11RenderTargetView * > mRTViews
DX11DrawTarget(DrawTarget const *target, std::vector< DX11TextureRT * > &rtTextures, DX11TextureDS *dsTexture)
DX11TextureDS * mDSTexture
virtual void SetName(std::string const &name)
ID3D11DepthStencilView * mSaveDSView
static std::shared_ptr< GEDrawTarget > Create(DrawTarget const *target, std::vector< GEObject * > &rtTextures, GEObject *dsTexture)
unsigned int GetNumTargets() const
ULONG SafeRelease(T *&object)
ID3D11DepthStencilView * mDSView
void Disable(ID3D11DeviceContext *context)
typedef UINT(WINAPI *PFNWGLGETGPUIDSAMDPROC)(UINT maxCount
D3D11_VIEWPORT mSaveViewport
void Enable(ID3D11DeviceContext *context)
ID3D11DepthStencilView * GetDSView() const
std::vector< ID3D11RenderTargetView * > mSaveRTViews