RetroArch
dxgitype.h
Go to the documentation of this file.
1 //
2 // Copyright (C) Microsoft. All rights reserved.
3 //
4 #ifndef __dxgitype_h__
5 #define __dxgitype_h__
6 
7 #include "dxgicommon.h"
8 #include "dxgiformat.h"
9 
10 #define _FACDXGI 0x87a
11 #define MAKE_DXGI_HRESULT(code) MAKE_HRESULT(1, _FACDXGI, code)
12 #define MAKE_DXGI_STATUS(code) MAKE_HRESULT(0, _FACDXGI, code)
13 
14 #ifndef DXGI_STATUS_OCCLUDED
15 
16 #define DXGI_STATUS_OCCLUDED MAKE_DXGI_STATUS(1)
17 #define DXGI_STATUS_CLIPPED MAKE_DXGI_STATUS(2)
18 #define DXGI_STATUS_NO_REDIRECTION MAKE_DXGI_STATUS(4)
19 #define DXGI_STATUS_NO_DESKTOP_ACCESS MAKE_DXGI_STATUS(5)
20 #define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE MAKE_DXGI_STATUS(6)
21 #define DXGI_STATUS_MODE_CHANGED MAKE_DXGI_STATUS(7)
22 #define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS MAKE_DXGI_STATUS(8)
23 
24 #endif /*DXGI_STATUS_OCCLUDED*/
25 
26 #ifndef DXGI_ERROR_INVALID_CALL
27 
28 #define DXGI_ERROR_INVALID_CALL MAKE_DXGI_HRESULT(1)
29 #define DXGI_ERROR_NOT_FOUND MAKE_DXGI_HRESULT(2)
30 #define DXGI_ERROR_MORE_DATA MAKE_DXGI_HRESULT(3)
31 #define DXGI_ERROR_UNSUPPORTED MAKE_DXGI_HRESULT(4)
32 #define DXGI_ERROR_DEVICE_REMOVED MAKE_DXGI_HRESULT(5)
33 #define DXGI_ERROR_DEVICE_HUNG MAKE_DXGI_HRESULT(6)
34 #define DXGI_ERROR_DEVICE_RESET MAKE_DXGI_HRESULT(7)
35 #define DXGI_ERROR_WAS_STILL_DRAWING MAKE_DXGI_HRESULT(10)
36 #define DXGI_ERROR_FRAME_STATISTICS_DISJOINT MAKE_DXGI_HRESULT(11)
37 #define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE MAKE_DXGI_HRESULT(12)
38 #define DXGI_ERROR_DRIVER_INTERNAL_ERROR MAKE_DXGI_HRESULT(32)
39 #define DXGI_ERROR_NONEXCLUSIVE MAKE_DXGI_HRESULT(33)
40 #define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE MAKE_DXGI_HRESULT(34)
41 #define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED MAKE_DXGI_HRESULT(35)
42 #define DXGI_ERROR_REMOTE_OUTOFMEMORY MAKE_DXGI_HRESULT(36)
43 
44 #endif /*DXGI_ERROR_INVALID_CALL*/
45 
46 // DXGI error messages have moved to winerror.h
47 
48 #define DXGI_CPU_ACCESS_NONE ( 0 )
49 #define DXGI_CPU_ACCESS_DYNAMIC ( 1 )
50 #define DXGI_CPU_ACCESS_READ_WRITE ( 2 )
51 #define DXGI_CPU_ACCESS_SCRATCH ( 3 )
52 #define DXGI_CPU_ACCESS_FIELD 15
53 
54 
55 typedef struct DXGI_RGB
56 {
57  float Red;
58  float Green;
59  float Blue;
60 } DXGI_RGB;
61 
62 #ifndef D3DCOLORVALUE_DEFINED
63 typedef struct _D3DCOLORVALUE {
64  float r;
65  float g;
66  float b;
67  float a;
69 
70 #define D3DCOLORVALUE_DEFINED
71 #endif
72 
74 
75 typedef struct DXGI_GAMMA_CONTROL
76 {
81 
83 {
88  float ControlPointPositions[1025];
90 
92 {
98 
99 typedef enum DXGI_MODE_SCALING
100 {
105 
106 typedef enum DXGI_MODE_ROTATION
107 {
114 
115 typedef struct DXGI_MODE_DESC
116 {
124 
126 {
127  BYTE CodeCounts[12];
128  BYTE CodeValues[12];
130 
132 {
133  BYTE CodeCounts[16];
134  BYTE CodeValues[162];
136 
138 {
139  BYTE Elements[64];
141 
142 #endif // __dxgitype_h__
143 
float MinConvertedValue
Definition: dxgitype.h:86
Definition: dxgitype.h:102
struct DXGI_RGB DXGI_RGB
struct _D3DCOLORVALUE D3DCOLORVALUE
BYTE Elements[64]
Definition: dxgitype.h:139
float MaxConvertedValue
Definition: dxgitype.h:85
DXGI_RGB GammaCurve[1025]
Definition: dxgitype.h:79
float Red
Definition: dxgitype.h:57
BYTE CodeValues[12]
Definition: dxgitype.h:128
DXGI_FORMAT Format
Definition: dxgitype.h:120
UINT Height
Definition: dxgitype.h:118
float Blue
Definition: dxgitype.h:59
Definition: dxgitype.h:94
Definition: dxgitype.h:75
float r
Definition: d3d8types.h:58
float Green
Definition: dxgitype.h:58
Definition: dxgitype.h:110
BYTE CodeValues[162]
Definition: dxgitype.h:134
DXGI_RATIONAL RefreshRate
Definition: dxgitype.h:119
Definition: dxgitype.h:137
UINT NumGammaControlPoints
Definition: dxgitype.h:87
DXGI_MODE_SCALING Scaling
Definition: dxgitype.h:122
struct DXGI_GAMMA_CONTROL DXGI_GAMMA_CONTROL
DXGI_FORMAT
Definition: dxgiformat.h:10
struct DXGI_GAMMA_CONTROL_CAPABILITIES DXGI_GAMMA_CONTROL_CAPABILITIES
BYTE CodeCounts[16]
Definition: dxgitype.h:133
float ControlPointPositions[1025]
Definition: dxgitype.h:88
DXGI_MODE_SCANLINE_ORDER ScanlineOrdering
Definition: dxgitype.h:121
D3DCOLORVALUE DXGI_RGBA
Definition: dxgitype.h:73
Definition: dxgicommon.h:9
DXGI_MODE_SCANLINE_ORDER
Definition: dxgitype.h:91
Definition: dxgitype.h:115
Definition: dxgitype.h:112
Definition: dxgitype.h:55
float b
Definition: d3d8types.h:60
Definition: dxgitype.h:108
Definition: dxgitype.h:103
struct DXGI_JPEG_QUANTIZATION_TABLE DXGI_JPEG_QUANTIZATION_TABLE
UINT Width
Definition: dxgitype.h:117
Definition: dxgitype.h:131
DXGI_MODE_SCALING
Definition: dxgitype.h:99
DXGI_RGB Offset
Definition: dxgitype.h:78
Definition: dxgitype.h:82
Definition: dxgitype.h:101
Definition: dxgitype.h:111
float a
Definition: d3d8types.h:61
unsigned int BOOL
Definition: gctypes.h:51
BYTE CodeCounts[12]
Definition: dxgitype.h:127
Definition: dxgitype.h:93
struct DXGI_MODE_DESC DXGI_MODE_DESC
Definition: glslang_tab.cpp:136
Definition: dxgitype.h:125
DXGI_MODE_ROTATION
Definition: dxgitype.h:106
struct DXGI_JPEG_DC_HUFFMAN_TABLE DXGI_JPEG_DC_HUFFMAN_TABLE
float g
Definition: d3d8types.h:59
struct DXGI_JPEG_AC_HUFFMAN_TABLE DXGI_JPEG_AC_HUFFMAN_TABLE
BOOL ScaleAndOffsetSupported
Definition: dxgitype.h:84
The text renderer interface represents a set of application-defined callbacks that perform rendering ...
Definition: d3d8types.h:57
Definition: dxgitype.h:109
DXGI_RGB Scale
Definition: dxgitype.h:77