Test for valid back buffer and depth stencil formats.

TRAC #22056
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1411 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/renderer11_utils.h b/src/libGLESv2/renderer/renderer11_utils.h
new file mode 100644
index 0000000..9c03f74
--- /dev/null
+++ b/src/libGLESv2/renderer/renderer11_utils.h
@@ -0,0 +1,21 @@
+//

+// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.

+// Use of this source code is governed by a BSD-style license that can be

+// found in the LICENSE file.

+//

+

+// renderer11_utils.h: Conversion functions and other utility routines

+// specific to the D3D11 renderer.

+

+#define GL_APICALL
+#include <GLES2/gl2.h>
+#include <GLES2/gl2ext.h>
+#include <d3d11.h>

+

+namespace d3d11_gl

+{

+

+GLenum ConvertBackBufferFormat(DXGI_FORMAT format);

+GLenum ConvertDepthStencilFormat(DXGI_FORMAT format);

+

+}