2016-09-21 03:57:24 -07:00
|
|
|
/*
|
|
|
|
* Copyright 2016 Józef Kucia for CodeWeavers
|
|
|
|
*
|
2017-06-16 12:05:54 -07:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2016-09-21 03:57:24 -07:00
|
|
|
*
|
2017-06-16 12:05:54 -07:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2016-09-21 03:57:24 -07:00
|
|
|
*
|
2017-06-16 12:05:54 -07:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2016-09-21 03:57:24 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DXGI_BASE_H
|
|
|
|
#define __DXGI_BASE_H
|
|
|
|
|
2016-10-17 05:24:22 -07:00
|
|
|
#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001)
|
|
|
|
#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005)
|
|
|
|
|
2016-09-21 03:57:24 -07:00
|
|
|
typedef struct DXGI_SAMPLE_DESC
|
|
|
|
{
|
|
|
|
UINT Count;
|
|
|
|
UINT Quality;
|
|
|
|
} DXGI_SAMPLE_DESC;
|
|
|
|
|
|
|
|
typedef enum DXGI_FORMAT
|
|
|
|
{
|
2016-10-22 07:25:16 -07:00
|
|
|
DXGI_FORMAT_UNKNOWN = 0x00,
|
|
|
|
DXGI_FORMAT_R32G32B32A32_TYPELESS = 0x01,
|
|
|
|
DXGI_FORMAT_R32G32B32A32_FLOAT = 0x02,
|
|
|
|
DXGI_FORMAT_R32G32B32A32_UINT = 0x03,
|
|
|
|
DXGI_FORMAT_R32G32B32A32_SINT = 0x04,
|
|
|
|
DXGI_FORMAT_R32G32B32_TYPELESS = 0x05,
|
|
|
|
DXGI_FORMAT_R32G32B32_FLOAT = 0x06,
|
2016-09-21 03:57:24 -07:00
|
|
|
|
2017-06-14 14:27:06 -07:00
|
|
|
DXGI_FORMAT_R16G16B16A16_FLOAT = 0x0a,
|
|
|
|
|
2017-06-13 05:54:49 -07:00
|
|
|
DXGI_FORMAT_R32G32_FLOAT = 0x10,
|
|
|
|
|
2017-06-14 04:38:10 -07:00
|
|
|
DXGI_FORMAT_R10G10B10A2_UNORM = 0x18,
|
|
|
|
|
2017-06-14 14:24:16 -07:00
|
|
|
DXGI_FORMAT_R11G11B10_FLOAT = 0x1a,
|
2016-10-22 07:25:16 -07:00
|
|
|
DXGI_FORMAT_R8G8B8A8_TYPELESS = 0x1b,
|
|
|
|
DXGI_FORMAT_R8G8B8A8_UNORM = 0x1c,
|
2016-09-21 03:57:24 -07:00
|
|
|
|
2016-11-02 12:57:23 -07:00
|
|
|
DXGI_FORMAT_D32_FLOAT = 0x28,
|
2016-10-22 07:25:16 -07:00
|
|
|
DXGI_FORMAT_R32_FLOAT = 0x29,
|
2016-11-02 11:18:30 -07:00
|
|
|
DXGI_FORMAT_R32_UINT = 0x2a,
|
|
|
|
|
2017-06-15 04:31:29 -07:00
|
|
|
DXGI_FORMAT_R16_UNORM = 0x38,
|
2016-11-02 11:18:30 -07:00
|
|
|
DXGI_FORMAT_R16_UINT = 0x39,
|
2016-09-21 03:57:24 -07:00
|
|
|
|
2017-06-15 04:33:32 -07:00
|
|
|
DXGI_FORMAT_R8_UNORM = 0x3d,
|
|
|
|
|
2016-10-22 07:25:16 -07:00
|
|
|
DXGI_FORMAT_B8G8R8A8_UNORM = 0x57,
|
|
|
|
DXGI_FORMAT_B8G8R8X8_UNORM = 0x58,
|
2016-09-21 03:57:24 -07:00
|
|
|
|
2016-10-22 11:49:25 -07:00
|
|
|
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 0x5b,
|
|
|
|
|
2016-10-22 07:25:16 -07:00
|
|
|
DXGI_FORMAT_FORCE_DWORD = 0xffffffff,
|
2016-09-21 03:57:24 -07:00
|
|
|
} DXGI_FORMAT;
|
|
|
|
|
|
|
|
#endif /* __DXGI_BASE_H */
|