1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#![allow(non_camel_case_types)]
use common_version::enumerations::D3D_SRV_DIMENSION;
pub type D3D11_SRV_DIMENSION = D3D_SRV_DIMENSION;
#[repr(C)] pub enum D3D11_BIND_FLAG {
VERTEX_BUFFER = 0x1,
INDEX_BUFFER = 0x2,
CONSTANT_BUFFER = 0x4,
SHADER_RESOURCE = 0x8,
STREAM_OUTPUT = 0x10,
RENDER_TARGET = 0x20,
DEPTH_STENCIL = 0x40,
UNORDERED_ACCESS = 0x80,
DECODER = 0x200,
VIDEO_ENCODER = 0x400
}
pub enum D3D11_BUFFEREX_SRV_FLAG {
RAW = 0x1
}
#[repr(C)] pub enum D3D11_BUFFER_UAV_FLAG {
RAW = 0x1,
APPEND = 0x2,
COUNTER = 0x4
}
pub enum D3D11_CHECK_MULTISAMPLE_QUALITY_LEVELS_FLAG {
TILED_RESOURCE = 0x1
}
#[repr(C)] pub enum D3D11_CPU_ACCESS_FLAG {
WRITE = 0x10000,
READ = 0x20000
}
#[repr(C)] pub enum D3D11_DSV_DIMENSION {
UNKNOWN = 0,
TEXTURE1D = 1,
TEXTURE1DARRAY = 2,
TEXTURE2D = 3,
TEXTURE2DARRAY = 4,
TEXTURE2DMS = 5,
TEXTURE2DMSARRAY = 6
}
#[repr(C)] pub enum D3D11_DSV_FLAG {
DEPTH = 0x1,
STENCIL = 0x2
}
#[repr(C)] pub enum D3D11_MAP {
READ = 1,
WRITE = 2,
READ_WRITE = 3,
WRITE_DISCARD = 4,
WRITE_NO_OVERWRITE = 5
}
pub enum D3D11_MAP_FLAG {
DO_NOT_WAIT = 0x100000
}
#[repr(C)] pub enum D3D11_RESOURCE_DIMENSION {
UNKNOWN = 0,
BUFFER = 1,
TEXTURE1D = 2,
TEXTURE2D = 3,
TEXTURE3D = 4
}
#[repr(C)] pub enum D3D11_RESOURCE_MISC_FLAG {
GENERATE_MIPS = 0x1,
SHARED = 0x2,
TEXTURECUBE = 0x4,
DRAWINDIRECT_ARGS = 0x10,
BUFFER_ALLOW_RAW_VIEWS = 0x20,
BUFFER_STRUCTURED = 0x40,
RESOURCE_CLAMP = 0x80,
SHARED_KEYEDMUTEX = 0x100,
GDI_COMPATIBLE = 0x200,
SHARED_NTHANDLE = 0x800,
RESTRICTED_CONTENT = 0x1000,
RESTRICT_SHARED_RESOURCE = 0x2000,
RESTRICT_SHARED_RESOURCE_DRIVER = 0x4000,
GUARDED = 0x8000,
TILE_POOL = 0x20000,
TILED = 0x40000
}
#[repr(C)] pub enum D3D11_RTV_DIMENSION {
UNKNOWN = 0,
BUFFER = 1,
TEXTURE1D = 2,
TEXTURE1DARRAY = 3,
TEXTURE2D = 4,
TEXTURE2DARRAY = 5,
TEXTURE2DMS = 6,
TEXTURE2DMSARRAY = 7,
TEXTURE3D = 8
}
#[repr(C)] pub enum D3D11_STANDARD_MULTISAMPLE_QUALITY_LEVELS {
STANDARD_MULTISAMPLE_PATTERN = 0xffffffff,
CENTER_MULTISAMPLE_PATTERN = 0xfffffffe
}
#[repr(C)] pub enum D3D11_TILE_COPY_FLAG {
NO_OVERWRITE = 0x1,
LINEAR_BUFFER_TO_SWIZZLED_TILED_RESOURCE = 0x2,
SWIZZLED_TILED_RESOURCE_TO_LINEAR_BUFFER = 0x4
}
pub enum D3D11_TILE_MAPPING_FLAG {
NO_OVERWRITE = 0x1
}
#[repr(C)] pub enum D3D11_TILE_RANGE_FLAG {
NULL = 0x1,
SKIP = 0x2,
REUSE_SINGLE_TILE = 0x4
}
#[repr(C)] pub enum D3D11_UAV_DIMENSION {
UNKNOWN = 0,
BUFFER = 1,
TEXTURE1D = 2,
TEXTURE1DARRAY = 3,
TEXTURE2D = 4,
TEXTURE2DARRAY = 5,
TEXTURE3D = 8
}
#[repr(C)] pub enum D3D11_USAGE {
DEFAULT = 0,
IMMUTABLE = 1,
DYNAMIC = 2,
STAGING = 3
}