ReactOS 0.4.17-dev-934-g091855f
d3d11_private.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2009 Henri Verbeet for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __WINE_D3D11_PRIVATE_H
20#define __WINE_D3D11_PRIVATE_H
21
22#include "wine/debug.h"
23
24#include <assert.h>
25
26#define COBJMACROS
27#include "winbase.h"
28#include "wingdi.h"
29#include "winuser.h"
30#include "objbase.h"
31
32#include "dxgi1_6.h"
33#include "d3d11_4.h"
34#ifdef D3D11_INIT_GUID
35#include "initguid.h"
36#endif
37#include "wine/wined3d.h"
38#include "wine/winedxgi.h"
39#include "wine/rbtree.h"
40
41struct d3d_device;
42
43/* TRACE helper functions */
46const char *debug_float4(const float *values);
47
51 unsigned int patch_vertex_count, D3D11_PRIMITIVE_TOPOLOGY *topology);
53 enum wined3d_primitive_type *type, unsigned int *patch_vertex_count);
54unsigned int wined3d_getdata_flags_from_d3d11_async_getdata_flags(unsigned int d3d11_flags);
55DWORD wined3d_usage_from_d3d11(enum D3D11_USAGE usage);
61unsigned int wined3d_access_from_d3d11(D3D11_USAGE usage, UINT cpu_access);
63 IUnknown *outer, BOOL needs_surface, IUnknown **dxgi_resource);
64
73
74BOOL validate_d3d11_resource_access_flags(D3D11_RESOURCE_DIMENSION resource_dimension,
75 D3D11_USAGE usage, UINT bind_flags, UINT cpu_access_flags,
76 D3D_FEATURE_LEVEL feature_level);
77
79 REFGUID guid, UINT *data_size, void *data);
81 REFGUID guid, UINT data_size, const void *data);
83 REFGUID guid, const IUnknown *object);
84
85static inline unsigned int wined3d_bind_flags_from_d3d11(UINT bind_flags, UINT misc_flags)
86{
87 unsigned int wined3d_flags = bind_flags & (D3D11_BIND_VERTEX_BUFFER
88 | D3D11_BIND_INDEX_BUFFER
89 | D3D11_BIND_CONSTANT_BUFFER
90 | D3D11_BIND_SHADER_RESOURCE
91 | D3D11_BIND_STREAM_OUTPUT
92 | D3D11_BIND_RENDER_TARGET
93 | D3D11_BIND_DEPTH_STENCIL
94 | D3D11_BIND_UNORDERED_ACCESS);
95
97 wined3d_flags |= WINED3D_BIND_INDIRECT_BUFFER;
98
99 return wined3d_flags;
100}
101
103{
112}
113
114/* ID3D11Texture1D, ID3D10Texture1D */
116{
117 ID3D11Texture1D ID3D11Texture1D_iface;
120
123 D3D11_TEXTURE1D_DESC desc;
125};
126
127HRESULT d3d_texture1d_create(struct d3d_device *device, const D3D11_TEXTURE1D_DESC *desc,
128 const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture1d **texture);
129struct d3d_texture1d *unsafe_impl_from_ID3D11Texture1D(ID3D11Texture1D *iface);
131
132/* ID3D11Texture2D, ID3D10Texture2D */
134{
135 ID3D11Texture2D ID3D11Texture2D_iface;
138
142 D3D11_TEXTURE2D_DESC desc;
144};
145
146static inline struct d3d_texture2d *impl_from_ID3D11Texture2D(ID3D11Texture2D *iface)
147{
149}
150
151HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DESC *desc,
153 const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture2d **out);
154struct d3d_texture2d *unsafe_impl_from_ID3D11Texture2D(ID3D11Texture2D *iface);
156
157/* ID3D11Texture3D, ID3D10Texture3D */
159{
160 ID3D11Texture3D ID3D11Texture3D_iface;
163
166 D3D11_TEXTURE3D_DESC desc;
168};
169
170HRESULT d3d_texture3d_create(struct d3d_device *device, const D3D11_TEXTURE3D_DESC *desc,
171 const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture3d **texture);
172struct d3d_texture3d *unsafe_impl_from_ID3D11Texture3D(ID3D11Texture3D *iface);
174
175/* ID3D11Buffer, ID3D10Buffer */
177{
178 ID3D11Buffer ID3D11Buffer_iface;
181
184 D3D11_BUFFER_DESC desc;
186};
187
188HRESULT d3d_buffer_create(struct d3d_device *device, const D3D11_BUFFER_DESC *desc,
189 const D3D11_SUBRESOURCE_DATA *data, struct d3d_buffer **buffer);
190struct d3d_buffer *unsafe_impl_from_ID3D11Buffer(ID3D11Buffer *iface);
192
193/* ID3D11DepthStencilView, ID3D10DepthStencilView */
195{
196 ID3D11DepthStencilView ID3D11DepthStencilView_iface;
199
202 D3D11_DEPTH_STENCIL_VIEW_DESC desc;
203 ID3D11Resource *resource;
205};
206
208 const D3D11_DEPTH_STENCIL_VIEW_DESC *desc, struct d3d_depthstencil_view **view);
209struct d3d_depthstencil_view *unsafe_impl_from_ID3D11DepthStencilView(ID3D11DepthStencilView *iface);
211
212/* ID3D11RenderTargetView, ID3D10RenderTargetView */
214{
215 ID3D11RenderTargetView ID3D11RenderTargetView_iface;
218
221 D3D11_RENDER_TARGET_VIEW_DESC desc;
222 ID3D11Resource *resource;
224};
225
227 const D3D11_RENDER_TARGET_VIEW_DESC *desc, struct d3d_rendertarget_view **view);
228struct d3d_rendertarget_view *unsafe_impl_from_ID3D11RenderTargetView(ID3D11RenderTargetView *iface);
230
231/* ID3D11ShaderResourceView, ID3D10ShaderResourceView1 */
233{
234 ID3D11ShaderResourceView ID3D11ShaderResourceView_iface;
237
240 D3D11_SHADER_RESOURCE_VIEW_DESC desc;
241 ID3D11Resource *resource;
243};
244
246 const D3D11_SHADER_RESOURCE_VIEW_DESC *desc, struct d3d_shader_resource_view **view);
248 ID3D11ShaderResourceView *iface);
251
252/* ID3D11UnorderedAccessView */
254{
255 ID3D11UnorderedAccessView ID3D11UnorderedAccessView_iface;
257
260 D3D11_UNORDERED_ACCESS_VIEW_DESC desc;
261 ID3D11Resource *resource;
263};
264
266 const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, struct d3d11_unordered_access_view **view);
268 ID3D11UnorderedAccessView *iface);
269
271{
272 ID3D11VideoDecoderOutputView ID3D11VideoDecoderOutputView_iface;
274
276 D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC desc;
277 ID3D11Resource *resource;
279};
280
282 const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *desc, struct d3d_video_decoder_output_view **view);
283
284/* ID3D11InputLayout, ID3D10InputLayout */
286{
287 ID3D11InputLayout ID3D11InputLayout_iface;
290
294};
295
297 const D3D11_INPUT_ELEMENT_DESC *element_descs, UINT element_count,
298 const void *shader_byte_code, SIZE_T shader_byte_code_length,
299 struct d3d_input_layout **layout);
300struct d3d_input_layout *unsafe_impl_from_ID3D11InputLayout(ID3D11InputLayout *iface);
302
303/* ID3D11VertexShader, ID3D10VertexShader */
305{
306 ID3D11VertexShader ID3D11VertexShader_iface;
309
313};
314
315HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
316 struct d3d_vertex_shader **shader);
317struct d3d_vertex_shader *unsafe_impl_from_ID3D11VertexShader(ID3D11VertexShader *iface);
319
320/* ID3D11HullShader */
322{
323 ID3D11HullShader ID3D11HullShader_iface;
325
329};
330
331HRESULT d3d11_hull_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
332 struct d3d11_hull_shader **shader);
333struct d3d11_hull_shader *unsafe_impl_from_ID3D11HullShader(ID3D11HullShader *iface);
334
335/* ID3D11DomainShader */
337{
338 ID3D11DomainShader ID3D11DomainShader_iface;
340
344};
345
346HRESULT d3d11_domain_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
347 struct d3d11_domain_shader **shader);
348struct d3d11_domain_shader *unsafe_impl_from_ID3D11DomainShader(ID3D11DomainShader *iface);
349
350/* ID3D11GeometryShader, ID3D10GeometryShader */
352{
353 ID3D11GeometryShader ID3D11GeometryShader_iface;
356
360};
361
362HRESULT d3d_geometry_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
363 const D3D11_SO_DECLARATION_ENTRY *so_entries, unsigned int so_entry_count,
364 const unsigned int *buffer_strides, unsigned int buffer_stride_count, unsigned int rasterizer_stream,
365 struct d3d_geometry_shader **shader);
366struct d3d_geometry_shader *unsafe_impl_from_ID3D11GeometryShader(ID3D11GeometryShader *iface);
368
369/* ID3D11PixelShader, ID3D10PixelShader */
371{
372 ID3D11PixelShader ID3D11PixelShader_iface;
375
379};
380
381HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
382 struct d3d_pixel_shader **shader);
383struct d3d_pixel_shader *unsafe_impl_from_ID3D11PixelShader(ID3D11PixelShader *iface);
385
386/* ID3D11ComputeShader */
388{
389 ID3D11ComputeShader ID3D11ComputeShader_iface;
391
395};
396
397HRESULT d3d11_compute_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
399struct d3d11_compute_shader *unsafe_impl_from_ID3D11ComputeShader(ID3D11ComputeShader *iface);
400
401/* ID3D11ClassLinkage */
403{
404 ID3D11ClassLinkage ID3D11ClassLinkage_iface;
406
409};
410
412 struct d3d11_class_linkage **class_linkage);
413
414/* ID3D11BlendState1, ID3D10BlendState1 */
416{
418 ID3D10BlendState1 ID3D10BlendState1_iface;
420
426};
427
429{
431}
432
434 struct d3d_blend_state **state);
435struct d3d_blend_state *unsafe_impl_from_ID3D11BlendState(ID3D11BlendState *iface);
437
438/* ID3D11DepthStencilState, ID3D10DepthStencilState */
440{
441 ID3D11DepthStencilState ID3D11DepthStencilState_iface;
444
447 D3D11_DEPTH_STENCIL_DESC desc;
450};
451
452static inline struct d3d_depthstencil_state *impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
453{
455}
456
457HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEPTH_STENCIL_DESC *desc,
460 ID3D11DepthStencilState *iface);
463
464/* ID3D11RasterizerState, ID3D10RasterizerState */
466{
470
476};
477
479 struct d3d_rasterizer_state **state);
480struct d3d_rasterizer_state *unsafe_impl_from_ID3D11RasterizerState(ID3D11RasterizerState *iface);
482
483/* ID3D11SamplerState, ID3D10SamplerState */
485{
486 ID3D11SamplerState ID3D11SamplerState_iface;
489
492 D3D11_SAMPLER_DESC desc;
495};
496
497HRESULT d3d_sampler_state_create(struct d3d_device *device, const D3D11_SAMPLER_DESC *desc,
498 struct d3d_sampler_state **state);
499struct d3d_sampler_state *unsafe_impl_from_ID3D11SamplerState(ID3D11SamplerState *iface);
501
502/* ID3D11Query, ID3D10Query */
504{
505 ID3D11Query ID3D11Query_iface;
508
514};
515
517 struct d3d_query **query);
518struct d3d_query *unsafe_impl_from_ID3D11Query(ID3D11Query *iface);
520struct d3d_query *unsafe_impl_from_ID3D11Asynchronous(ID3D11Asynchronous *iface);
521
523{
526};
527
528/* ID3DDeviceContextState */
530{
533
537
541
544};
545
546/* ID3D11DeviceContext */
548{
551 ID3D11VideoContext ID3D11VideoContext_iface;
554
558
560};
561
562/* ID3D11Device, ID3D10Device1 */
564{
573
575
578
581
586
590};
591
593{
594 ID3D11CommandList ID3D11CommandList_iface;
596
600};
601
602static inline struct d3d_device *impl_from_ID3D11Device(ID3D11Device *iface)
603{
605}
606
608{
609 return CONTAINING_RECORD(iface, struct d3d_device, ID3D11Device2_iface);
610}
611
613{
614 return CONTAINING_RECORD(iface, struct d3d_device, ID3D10Device1_iface);
615}
616
618
620{
621 ID3D11VideoDecoder ID3D11VideoDecoder_iface;
623
626};
627
628HRESULT d3d_video_decoder_create(struct d3d_device *device, const D3D11_VIDEO_DECODER_DESC *desc,
629 const D3D11_VIDEO_DECODER_CONFIG *config, struct d3d_video_decoder **decoder);
630
631/* Layered device */
633{
639};
640
642{
652};
653
655{
661};
662
664 unsigned int flags, const D3D_FEATURE_LEVEL *feature_levels, unsigned int level_count, void **device);
665HRESULT WINAPI DXGID3D10RegisterLayers(const struct dxgi_device_layer *layers, UINT layer_count);
666
667#endif /* __WINE_D3D11_PRIVATE_H */
static int state
Definition: maze.c:121
D3D10_USAGE
Definition: d3d10.idl:460
D3D10_MAP
Definition: d3d10.idl:503
D3D11_DEVICE_CONTEXT_TYPE
Definition: d3d11.idl:643
@ D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS
Definition: d3d11.idl:1037
D3D11_MAP
Definition: d3d11.idl:971
HRESULT d3d_blend_state_create(struct d3d_device *device, const D3D11_BLEND_DESC1 *desc, struct d3d_blend_state **state)
Definition: state.c:346
UINT d3d11_bind_flags_from_d3d10_bind_flags(UINT bind_flags)
Definition: utils.c:485
struct wined3d_resource * wined3d_resource_from_d3d11_resource(ID3D11Resource *resource)
Definition: utils.c:680
HRESULT d3d11_domain_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_domain_shader **shader)
Definition: shader.c:671
struct d3d11_unordered_access_view * unsafe_impl_from_ID3D11UnorderedAccessView(ID3D11UnorderedAccessView *iface)
Definition: view.c:2575
static struct d3d_depthstencil_state * impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
struct d3d_rendertarget_view * unsafe_impl_from_ID3D11RenderTargetView(ID3D11RenderTargetView *iface)
Definition: view.c:1778
struct d3d_vertex_shader * unsafe_impl_from_ID3D10VertexShader(ID3D10VertexShader *iface)
Definition: shader.c:318
HRESULT d3d_geometry_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, const D3D11_SO_DECLARATION_ENTRY *so_entries, unsigned int so_entry_count, const unsigned int *buffer_strides, unsigned int buffer_stride_count, unsigned int rasterizer_stream, struct d3d_geometry_shader **shader)
Definition: shader.c:1156
struct d3d_query * unsafe_impl_from_ID3D11Query(ID3D11Query *iface)
Definition: async.c:191
const char * debug_dxgi_format(DXGI_FORMAT format)
Definition: utils.c:46
struct d3d11_compute_shader * unsafe_impl_from_ID3D11ComputeShader(ID3D11ComputeShader *iface)
Definition: shader.c:1676
const char * debug_float4(const float *values)
Definition: utils.c:161
enum wined3d_format_id wined3dformat_from_dxgi_format(DXGI_FORMAT format)
Definition: utils.c:323
struct d3d_rasterizer_state * unsafe_impl_from_ID3D11RasterizerState(ID3D11RasterizerState *iface)
Definition: state.c:1269
HRESULT d3d_video_decoder_create(struct d3d_device *device, const D3D11_VIDEO_DECODER_DESC *desc, const D3D11_VIDEO_DECODER_CONFIG *config, struct d3d_video_decoder **decoder)
Definition: decoder.c:142
struct d3d_sampler_state * unsafe_impl_from_ID3D11SamplerState(ID3D11SamplerState *iface)
Definition: state.c:1682
UINT d3d10_bind_flags_from_d3d11_bind_flags(UINT bind_flags)
Definition: utils.c:502
struct d3d_texture2d * unsafe_impl_from_ID3D10Texture2D(ID3D10Texture2D *iface)
Definition: texture.c:907
static unsigned int wined3d_bind_flags_from_d3d11(UINT bind_flags, UINT misc_flags)
Definition: d3d11_private.h:85
BOOL validate_d3d11_resource_access_flags(D3D11_RESOURCE_DIMENSION resource_dimension, D3D11_USAGE usage, UINT bind_flags, UINT cpu_access_flags, D3D_FEATURE_LEVEL feature_level)
Definition: utils.c:601
struct d3d_query * unsafe_impl_from_ID3D10Query(ID3D10Query *iface)
Definition: async.c:398
UINT d3d11_cpu_access_flags_from_d3d10_cpu_access_flags(UINT cpu_access_flags)
Definition: utils.c:522
struct d3d11_domain_shader * unsafe_impl_from_ID3D11DomainShader(ID3D11DomainShader *iface)
Definition: shader.c:692
enum D3D10_USAGE d3d10_usage_from_d3d11_usage(enum D3D11_USAGE usage)
Definition: utils.c:471
struct d3d11_hull_shader * unsafe_impl_from_ID3D11HullShader(ID3D11HullShader *iface)
Definition: shader.c:505
HRESULT d3d_input_layout_create(struct d3d_device *device, const D3D11_INPUT_ELEMENT_DESC *element_descs, UINT element_count, const void *shader_byte_code, SIZE_T shader_byte_code_length, struct d3d_input_layout **layout)
Definition: inputlayout.c:385
struct d3d_vertex_shader * unsafe_impl_from_ID3D11VertexShader(ID3D11VertexShader *iface)
Definition: shader.c:309
HRESULT WINAPI DXGID3D10RegisterLayers(const struct dxgi_device_layer *layers, UINT layer_count)
Definition: dxgi_main.c:209
UINT d3d10_cpu_access_flags_from_d3d11_cpu_access_flags(UINT cpu_access_flags)
Definition: utils.c:534
HRESULT d3d_get_private_data(struct wined3d_private_store *store, REFGUID guid, UINT *data_size, void *data)
Definition: utils.c:803
struct d3d_texture2d * unsafe_impl_from_ID3D11Texture2D(ID3D11Texture2D *iface)
Definition: texture.c:718
struct d3d_depthstencil_view * unsafe_impl_from_ID3D11DepthStencilView(ID3D11DepthStencilView *iface)
Definition: view.c:1337
dxgi_device_layer_id
@ DXGI_DEVICE_LAYER_THREAD_SAFE
@ DXGI_DEVICE_LAYER_D3D10_DEVICE
@ DXGI_DEVICE_LAYER_DEBUG1
@ DXGI_DEVICE_LAYER_SWITCH_TO_REF
@ DXGI_DEVICE_LAYER_DEBUG2
static struct d3d_blend_state * impl_from_ID3D11BlendState1(ID3D11BlendState1 *iface)
static struct d3d_device * impl_from_ID3D10Device(ID3D10Device1 *iface)
struct d3d_depthstencil_view * unsafe_impl_from_ID3D10DepthStencilView(ID3D10DepthStencilView *iface)
Definition: view.c:1346
struct d3d_texture3d * unsafe_impl_from_ID3D11Texture3D(ID3D11Texture3D *iface)
Definition: texture.c:1432
struct d3d_buffer * unsafe_impl_from_ID3D10Buffer(ID3D10Buffer *iface)
Definition: buffer.c:386
HRESULT d3d_texture2d_create(struct d3d_device *device, const D3D11_TEXTURE2D_DESC *desc, struct wined3d_texture *wined3d_texture, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture2d **out)
Definition: texture.c:964
HRESULT d3d_rasterizer_state_create(struct d3d_device *device, const D3D11_RASTERIZER_DESC1 *desc, struct d3d_rasterizer_state **state)
Definition: state.c:1228
void d3d11_primitive_topology_from_wined3d_primitive_type(enum wined3d_primitive_type primitive_type, unsigned int patch_vertex_count, D3D11_PRIMITIVE_TOPOLOGY *topology)
Definition: utils.c:169
struct d3d_pixel_shader * unsafe_impl_from_ID3D11PixelShader(ID3D11PixelShader *iface)
Definition: shader.c:1482
struct d3d_blend_state * unsafe_impl_from_ID3D11BlendState(ID3D11BlendState *iface)
Definition: state.c:469
struct d3d_geometry_shader * unsafe_impl_from_ID3D10GeometryShader(ID3D10GeometryShader *iface)
Definition: shader.c:1190
DWORD wined3d_usage_from_d3d11(enum D3D11_USAGE usage)
Definition: utils.c:447
HRESULT d3d_texture1d_create(struct d3d_device *device, const D3D11_TEXTURE1D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture1d **texture)
Definition: texture.c:440
struct d3d_rasterizer_state * unsafe_impl_from_ID3D10RasterizerState(ID3D10RasterizerState *iface)
Definition: state.c:1278
DWORD wined3d_map_flags_from_d3d11_map_type(D3D11_MAP map_type)
Definition: utils.c:740
struct d3d_texture1d * unsafe_impl_from_ID3D11Texture1D(ID3D11Texture1D *iface)
Definition: texture.c:216
static struct d3d_device * impl_from_ID3D11Device2(ID3D11Device2 *iface)
void d3d_device_init(struct d3d_device *device, void *outer_unknown)
Definition: device.c:7756
void wined3d_primitive_type_from_d3d11_primitive_topology(D3D11_PRIMITIVE_TOPOLOGY topology, enum wined3d_primitive_type *type, unsigned int *patch_vertex_count)
Definition: utils.c:187
struct wined3d_resource * wined3d_resource_from_d3d10_resource(ID3D10Resource *resource)
Definition: utils.c:710
HRESULT d3d_shader_resource_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_SHADER_RESOURCE_VIEW_DESC *desc, struct d3d_shader_resource_view **view)
Definition: view.c:2250
struct d3d_input_layout * unsafe_impl_from_ID3D10InputLayout(ID3D10InputLayout *iface)
Definition: inputlayout.c:421
UINT d3d10_resource_misc_flags_from_d3d11_resource_misc_flags(UINT resource_misc_flags)
Definition: utils.c:567
HRESULT d3d11_class_linkage_create(struct d3d_device *device, struct d3d11_class_linkage **class_linkage)
Definition: shader.c:1818
HRESULT d3d_video_decoder_output_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC *desc, struct d3d_video_decoder_output_view **view)
Definition: view.c:2729
HRESULT d3d_texture3d_create(struct d3d_device *device, const D3D11_TEXTURE3D_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_texture3d **texture)
Definition: texture.c:1514
unsigned int wined3d_getdata_flags_from_d3d11_async_getdata_flags(unsigned int d3d11_flags)
Definition: utils.c:436
struct d3d_buffer * unsafe_impl_from_ID3D11Buffer(ID3D11Buffer *iface)
Definition: buffer.c:214
HRESULT d3d_vertex_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d_vertex_shader **shader)
Definition: shader.c:287
struct d3d_geometry_shader * unsafe_impl_from_ID3D11GeometryShader(ID3D11GeometryShader *iface)
Definition: shader.c:1181
HRESULT d3d_buffer_create(struct d3d_device *device, const D3D11_BUFFER_DESC *desc, const D3D11_SUBRESOURCE_DATA *data, struct d3d_buffer **buffer)
Definition: buffer.c:504
struct d3d_rendertarget_view * unsafe_impl_from_ID3D10RenderTargetView(ID3D10RenderTargetView *iface)
Definition: view.c:1787
static struct d3d_texture2d * impl_from_ID3D11Texture2D(ID3D11Texture2D *iface)
struct d3d_texture3d * unsafe_impl_from_ID3D10Texture3D(ID3D10Texture3D *iface)
Definition: texture.c:1424
enum D3D11_USAGE d3d11_usage_from_d3d10_usage(enum D3D10_USAGE usage)
Definition: utils.c:457
DWORD wined3d_clear_flags_from_d3d11_clear_flags(UINT clear_flags)
Definition: utils.c:770
struct d3d_depthstencil_state * unsafe_impl_from_ID3D11DepthStencilState(ID3D11DepthStencilState *iface)
Definition: state.c:870
struct d3d_shader_resource_view * unsafe_impl_from_ID3D10ShaderResourceView(ID3D10ShaderResourceView *iface)
Definition: view.c:2280
struct d3d_depthstencil_state * unsafe_impl_from_ID3D10DepthStencilState(ID3D10DepthStencilState *iface)
Definition: state.c:879
HRESULT d3d_sampler_state_create(struct d3d_device *device, const D3D11_SAMPLER_DESC *desc, struct d3d_sampler_state **state)
Definition: state.c:1627
HRESULT d3d_set_private_data_interface(struct wined3d_private_store *store, REFGUID guid, const IUnknown *object)
Definition: utils.c:867
HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d_pixel_shader **shader)
Definition: shader.c:1460
struct d3d_input_layout * unsafe_impl_from_ID3D11InputLayout(ID3D11InputLayout *iface)
Definition: inputlayout.c:412
HRESULT d3d11_unordered_access_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, struct d3d11_unordered_access_view **view)
Definition: view.c:2553
HRESULT d3d_device_create_dxgi_resource(IUnknown *device, struct wined3d_resource *wined3d_resource, IUnknown *outer, BOOL needs_surface, IUnknown **dxgi_resource)
Definition: texture.c:416
HRESULT d3d_depthstencil_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_DEPTH_STENCIL_VIEW_DESC *desc, struct d3d_depthstencil_view **view)
Definition: view.c:1315
HRESULT d3d11_hull_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_hull_shader **shader)
Definition: shader.c:484
HRESULT d3d_query_create(struct d3d_device *device, const D3D11_QUERY_DESC *desc, BOOL predicate, struct d3d_query **query)
Definition: async.c:465
HRESULT d3d_rendertarget_view_create(struct d3d_device *device, ID3D11Resource *resource, const D3D11_RENDER_TARGET_VIEW_DESC *desc, struct d3d_rendertarget_view **view)
Definition: view.c:1756
struct d3d_texture1d * unsafe_impl_from_ID3D10Texture1D(ID3D10Texture1D *iface)
Definition: texture.c:403
unsigned int wined3d_access_from_d3d11(D3D11_USAGE usage, UINT cpu_access)
Definition: utils.c:788
HRESULT WINAPI DXGID3D10CreateDevice(HMODULE d3d10core, IDXGIFactory *factory, IDXGIAdapter *adapter, unsigned int flags, const D3D_FEATURE_LEVEL *feature_levels, unsigned int level_count, void **device)
Definition: dxgi_main.c:135
static UINT d3d11_bind_flags_from_wined3d(unsigned int bind_flags)
struct d3d_blend_state * unsafe_impl_from_ID3D10BlendState(ID3D10BlendState *iface)
Definition: state.c:478
UINT d3d11_resource_misc_flags_from_d3d10_resource_misc_flags(UINT resource_misc_flags)
Definition: utils.c:546
HRESULT d3d_set_private_data(struct wined3d_private_store *store, REFGUID guid, UINT data_size, const void *data)
Definition: utils.c:841
struct d3d_pixel_shader * unsafe_impl_from_ID3D10PixelShader(ID3D10PixelShader *iface)
Definition: shader.c:1491
struct d3d_query * unsafe_impl_from_ID3D11Asynchronous(ID3D11Asynchronous *iface)
Definition: async.c:199
static struct d3d_device * impl_from_ID3D11Device(ID3D11Device *iface)
HRESULT d3d11_compute_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length, struct d3d11_compute_shader **shader)
Definition: shader.c:1655
struct d3d_sampler_state * unsafe_impl_from_ID3D10SamplerState(ID3D10SamplerState *iface)
Definition: state.c:1691
HRESULT d3d_depthstencil_state_create(struct d3d_device *device, const D3D11_DEPTH_STENCIL_DESC *desc, struct d3d_depthstencil_state **state)
Definition: state.c:751
struct d3d_shader_resource_view * unsafe_impl_from_ID3D11ShaderResourceView(ID3D11ShaderResourceView *iface)
Definition: view.c:2272
DXGI_FORMAT dxgi_format_from_wined3dformat(enum wined3d_format_id format)
Definition: utils.c:210
DWORD wined3d_map_flags_from_d3d10_map_type(D3D10_MAP map_type)
Definition: utils.c:765
const char * debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology)
Definition: utils.c:26
D3D_FEATURE_LEVEL
Definition: d3dcommon.idl:102
D3D_PRIMITIVE_TOPOLOGY
Definition: d3dcommon.idl:384
GUID guid
Definition: version.c:147
dxgi_device_layer_id
Definition: dxgi_private.h:49
DXGI_FORMAT
Definition: dxgiformat.idl:22
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
return adapter
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum GLuint texture
Definition: glext.h:6295
GLuint buffer
Definition: glext.h:5915
GLuint shader
Definition: glext.h:6030
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:5666
GLbitfield flags
Definition: glext.h:7161
GLsizeiptr const GLvoid GLenum usage
Definition: glext.h:5919
unsigned int UINT
Definition: sysinfo.c:13
static D3D_DRIVER_TYPE HMODULE UINT const D3D_FEATURE_LEVEL * feature_levels
Definition: hlsl_d3d11.c:28
static VARTYPE map_type(struct string_t *str)
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683
static const struct access_res create[16]
Definition: package.c:7546
static ULONG ** element_count
Definition: exception.c:124
static IUnknown * outer
Definition: compobj.c:82
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
#define wine_rb_entry
Definition: rbtree.h:404
#define wine_rb_tree
Definition: rbtree.h:405
#define UINT
Definition: utils.c:29
Definition: scsiwmi.h:51
ID3D11ClassLinkage ID3D11ClassLinkage_iface
struct wined3d_private_store private_store
ID3D11Device2 * device
ID3D11CommandList ID3D11CommandList_iface
struct wined3d_command_list * wined3d_list
ID3D11Device2 * device
struct wined3d_private_store private_store
ID3D11ComputeShader ID3D11ComputeShader_iface
struct wined3d_private_store private_store
ID3D11Device2 * device
struct wined3d_shader * wined3d_shader
struct wined3d_private_store private_store
ID3DUserDefinedAnnotation ID3DUserDefinedAnnotation_iface
ID3D11VideoContext ID3D11VideoContext_iface
struct wined3d_device_context * wined3d_context
D3D11_DEVICE_CONTEXT_TYPE type
ID3D11DeviceContext1 ID3D11DeviceContext1_iface
struct d3d_device * device
ID3D11Multithread ID3D11Multithread_iface
struct wined3d_shader * wined3d_shader
ID3D11Device2 * device
ID3D11DomainShader ID3D11DomainShader_iface
struct wined3d_private_store private_store
struct wined3d_shader * wined3d_shader
ID3D11Device2 * device
struct wined3d_private_store private_store
ID3D11HullShader ID3D11HullShader_iface
D3D11_UNORDERED_ACCESS_VIEW_DESC desc
ID3D11UnorderedAccessView ID3D11UnorderedAccessView_iface
struct wined3d_private_store private_store
struct wined3d_unordered_access_view * wined3d_view
D3D11_BLEND_DESC1 desc
struct wine_rb_entry entry
ID3D11Device2 * device
struct wined3d_blend_state * wined3d_state
struct wined3d_private_store private_store
ID3D10BlendState1 ID3D10BlendState1_iface
ID3D11BlendState1 ID3D11BlendState1_iface
D3D11_BUFFER_DESC desc
ID3D10Buffer ID3D10Buffer_iface
struct wined3d_buffer * wined3d_buffer
ID3D11Device2 * device
ID3D11Buffer ID3D11Buffer_iface
IUnknown * dxgi_resource
ID3D11Device2 * device
struct wine_rb_entry entry
struct wined3d_depth_stencil_state * wined3d_state
D3D11_DEPTH_STENCIL_DESC desc
ID3D10DepthStencilState ID3D10DepthStencilState_iface
ID3D11DepthStencilState ID3D11DepthStencilState_iface
struct wined3d_private_store private_store
struct wined3d_rendertarget_view * wined3d_view
D3D11_DEPTH_STENCIL_VIEW_DESC desc
ID3D11Resource * resource
ID3D11DepthStencilView ID3D11DepthStencilView_iface
ID3D11Device2 * device
struct wined3d_private_store private_store
ID3D10DepthStencilView ID3D10DepthStencilView_iface
struct wined3d_state * wined3d_state
struct d3d_device * device
ID3DDeviceContextState ID3DDeviceContextState_iface
struct wined3d_device * wined3d_device
ID3D11Device2 * device
struct wined3d_private_store private_store
struct d3d_device_context_state_entry * entries
D3D_FEATURE_LEVEL feature_level
struct wined3d_device_parent device_parent
struct d3d11_device_context immediate_context
IWineDXGIDeviceParent IWineDXGIDeviceParent_iface
struct d3d_device_context_state * state
IUnknown * outer_unknown
D3DPRIMITIVETYPE primitive_type
struct wine_rb_tree rasterizer_states
struct wine_rb_tree blend_states
struct wine_rb_tree sampler_states
SIZE_T context_states_size
IUnknown * outer_unk
ID3D10Device1 ID3D10Device1_iface
struct wine_rb_tree depthstencil_states
IUnknown IUnknown_inner
SIZE_T context_state_count
struct wined3d_device * wined3d_device
struct d3d_device_context_state ** context_states
ID3D10Multithread ID3D10Multithread_iface
ID3D11Device2 ID3D11Device2_iface
ID3D11VideoDevice1 ID3D11VideoDevice1_iface
ID3D11GeometryShader ID3D11GeometryShader_iface
struct wined3d_private_store private_store
ID3D10GeometryShader ID3D10GeometryShader_iface
ID3D11Device2 * device
struct wined3d_shader * wined3d_shader
struct wined3d_private_store private_store
struct wined3d_vertex_declaration * wined3d_decl
ID3D10InputLayout ID3D10InputLayout_iface
ID3D11InputLayout ID3D11InputLayout_iface
ID3D11Device2 * device
ID3D11Device2 * device
struct wined3d_shader * wined3d_shader
ID3D10PixelShader ID3D10PixelShader_iface
ID3D11PixelShader ID3D11PixelShader_iface
struct wined3d_private_store private_store
ID3D10Query ID3D10Query_iface
struct wined3d_query * wined3d_query
struct wined3d_private_store private_store
ID3D11Query ID3D11Query_iface
BOOL predicate
D3D11_QUERY_DESC desc
ID3D11Device2 * device
ID3D10RasterizerState ID3D10RasterizerState_iface
ID3D11Device2 * device
D3D11_RASTERIZER_DESC1 desc
struct wined3d_rasterizer_state * wined3d_state
struct wine_rb_entry entry
ID3D11RasterizerState1 ID3D11RasterizerState1_iface
struct wined3d_private_store private_store
ID3D11Resource * resource
D3D11_RENDER_TARGET_VIEW_DESC desc
struct wined3d_rendertarget_view * wined3d_view
ID3D11Device2 * device
ID3D10RenderTargetView ID3D10RenderTargetView_iface
ID3D11RenderTargetView ID3D11RenderTargetView_iface
struct wined3d_private_store private_store
D3D11_SAMPLER_DESC desc
ID3D10SamplerState ID3D10SamplerState_iface
struct wined3d_sampler * wined3d_sampler
ID3D11Device2 * device
ID3D11SamplerState ID3D11SamplerState_iface
struct wine_rb_entry entry
struct wined3d_private_store private_store
ID3D11Resource * resource
ID3D11Device2 * device
ID3D10ShaderResourceView1 ID3D10ShaderResourceView1_iface
struct wined3d_shader_resource_view * wined3d_view
struct wined3d_private_store private_store
D3D11_SHADER_RESOURCE_VIEW_DESC desc
ID3D11ShaderResourceView ID3D11ShaderResourceView_iface
struct wined3d_texture * wined3d_texture
ID3D11Texture1D ID3D11Texture1D_iface
ID3D10Texture1D ID3D10Texture1D_iface
ID3D11Device2 * device
IUnknown * dxgi_resource
D3D11_TEXTURE1D_DESC desc
D3D11_TEXTURE2D_DESC desc
struct wined3d_texture * wined3d_texture
struct wined3d_swapchain * swapchain
ID3D10Texture2D ID3D10Texture2D_iface
IUnknown * dxgi_resource
ID3D11Texture2D ID3D11Texture2D_iface
ID3D11Device2 * device
IUnknown * dxgi_resource
struct wined3d_texture * wined3d_texture
D3D11_TEXTURE3D_DESC desc
ID3D11Texture3D ID3D11Texture3D_iface
ID3D10Texture3D ID3D10Texture3D_iface
ID3D11Device2 * device
ID3D11VertexShader ID3D11VertexShader_iface
ID3D11Device2 * device
struct wined3d_private_store private_store
ID3D10VertexShader ID3D10VertexShader_iface
struct wined3d_shader * wined3d_shader
ID3D11VideoDecoderOutputView ID3D11VideoDecoderOutputView_iface
struct wined3d_private_store private_store
D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC desc
struct d3d_device * device
struct d3d_device * device
ID3D11VideoDecoder ID3D11VideoDecoder_iface
struct wined3d_private_store private_store
Definition: devices.h:37
HRESULT(WINAPI *create)(enum dxgi_device_layer_id id
struct layer_get_size_args DWORD unknown0
DWORD DWORD * values
void DWORD void REFIID void ** device_layer
struct layer_get_size_args * args
void DWORD void REFIID riid
enum dxgi_device_layer_id id
void DWORD void * device_object
Definition: main.c:439
IDXGIAdapter * adapter
unsigned int bind_flags
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383
#define HRESULT
Definition: msvc.h:7
#define WINAPI
Definition: msvc.h:6
wined3d_primitive_type
Definition: wined3d.h:74
#define WINED3D_BIND_VERTEX_BUFFER
Definition: wined3d.h:909
#define WINED3D_BIND_UNORDERED_ACCESS
Definition: wined3d.h:916
#define WINED3D_BIND_SHADER_RESOURCE
Definition: wined3d.h:912
wined3d_format_id
Definition: wined3d.h:126
#define WINED3D_BIND_INDIRECT_BUFFER
Definition: wined3d.h:917
#define WINED3D_BIND_DEPTH_STENCIL
Definition: wined3d.h:915
#define WINED3D_BIND_RENDER_TARGET
Definition: wined3d.h:914
#define WINED3D_BIND_CONSTANT_BUFFER
Definition: wined3d.h:911
#define WINED3D_BIND_STREAM_OUTPUT
Definition: wined3d.h:913
#define WINED3D_BIND_INDEX_BUFFER
Definition: wined3d.h:910
static int init
Definition: wintirpc.c:33