Adds makeSwapChain9/11 functions.

TRAC #22134 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1477 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 32fdf822
......@@ -316,4 +316,11 @@ ID3D11Texture2D *SwapChain11::getOffscreenTexture()
return mOffscreenTexture;
}
SwapChain11 *SwapChain11::makeSwapChain11(SwapChain *swapChain)
{
ASSERT(dynamic_cast<rx::SwapChain11*>(swapChain) != NULL);
return static_cast<rx::SwapChain11*>(swapChain);
}
}
......@@ -32,6 +32,8 @@ class SwapChain11 : public SwapChain
virtual ID3D11DepthStencilView *getDepthStencil();
virtual ID3D11Texture2D *getOffscreenTexture();
static SwapChain11 *makeSwapChain11(SwapChain *swapChain);
private:
DISALLOW_COPY_AND_ASSIGN(SwapChain11);
......
......@@ -395,4 +395,10 @@ IDirect3DTexture9 *SwapChain9::getOffscreenTexture()
return mOffscreenTexture;
}
SwapChain9 *SwapChain9::makeSwapChain9(SwapChain *swapChain)
{
ASSERT(dynamic_cast<rx::SwapChain9*>(swapChain) != NULL);
return static_cast<rx::SwapChain9*>(swapChain);
}
}
......@@ -32,6 +32,8 @@ class SwapChain9 : public SwapChain
virtual IDirect3DSurface9 *getDepthStencil();
virtual IDirect3DTexture9 *getOffscreenTexture();
static SwapChain9 *makeSwapChain9(SwapChain *swapChain);
private:
DISALLOW_COPY_AND_ASSIGN(SwapChain9);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment