blob: 117767d279b005d115cc4cfbc808435fcd468394 [file] [log] [blame]
daniel@transgaming.comfeae9b32012-11-28 19:34:56 +00001//
2// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// renderer11_utils.h: Conversion functions and other utility routines
8// specific to the D3D11 renderer.
9
daniel@transgaming.com65e65372012-11-28 19:33:50 +000010#define GL_APICALL
11#include <GLES2/gl2.h>
12#include <GLES2/gl2ext.h>
daniel@transgaming.comfeae9b32012-11-28 19:34:56 +000013#include <d3d11.h>
14
15namespace d3d11_gl
16{
17
18GLenum ConvertBackBufferFormat(DXGI_FORMAT format);
19GLenum ConvertDepthStencilFormat(DXGI_FORMAT format);
20GLenum ConvertRenderbufferFormat(DXGI_FORMAT format);
21GLenum ConvertTextureInternalFormat(DXGI_FORMAT format);
22}
23
24namespace gl_d3d11
25{
26DXGI_FORMAT ConvertRenderbufferFormat(GLenum format);
27DXGI_FORMAT ConvertTextureInternalFormat(GLenum internalformat);
28}