ReactOS 0.4.17-dev-966-gf06eace
d3d9_private.h
Go to the documentation of this file.
1/*
2 * Direct3D 9 private include file
3 *
4 * Copyright 2002-2003 Jason Edmeades
5 * Copyright 2002-2003 Raphael Junqueira
6 * Copyright 2005 Oliver Stieber
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 */
22
23#ifndef __WINE_D3D9_PRIVATE_H
24#define __WINE_D3D9_PRIVATE_H
25
26#include <assert.h>
27#include <stdarg.h>
28
29#define COBJMACROS
30#include "windef.h"
31#include "winbase.h"
32#include "wingdi.h"
33#include "winuser.h"
34#include "wine/debug.h"
35
36#include "d3d9.h"
37#include "d3d9on12.h"
38#include "wine/wined3d.h"
39
40#define D3D9_MAX_VERTEX_SHADER_CONSTANTF 256
41#define D3D9_MAX_TEXTURE_UNITS 20
42#define D3D9_MAX_STREAMS 16
43
44#define D3DPRESENTFLAGS_MASK 0x00000fffu
45
46#define D3D9_TEXTURE_MIPMAP_DIRTY 0x1
47
48#define D3DFMT_RESZ MAKEFOURCC('R','E','S','Z')
49#define D3D9_RESZ_CODE 0x7fa05000
50
52
53HRESULT vdecl_convert_fvf(DWORD FVF, D3DVERTEXELEMENT9 **ppVertexElements);
57unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags, unsigned int usage);
59 const struct wined3d_swapchain_desc *swapchain_desc, DWORD presentation_interval);
60
61struct d3d9
62{
63 IDirect3D9Ex IDirect3D9Ex_iface;
70};
71
72void d3d9_caps_from_wined3dcaps(const struct d3d9 *d3d9, unsigned int adapter_ordinal,
73 D3DCAPS9 *caps, const struct wined3d_caps *wined3d_caps);
74BOOL d3d9_init(struct d3d9 *d3d9, BOOL extended, BOOL d3d9on12);
75
77{
80};
81
83{
87};
88
90{
97 unsigned int adapter_ordinal;
99
102
104
106
108 DWORD sysmem_vb : 16; /* D3D9_MAX_STREAMS */
113
114 DWORD auto_mipmaps; /* D3D9_MAX_TEXTURE_UNITS */
115
117
120
123};
124
128
130{
133};
134
138 void *data, DWORD *data_size);
141 const void *data, DWORD data_size, DWORD flags);
142
144{
145 IDirect3DVolume9 IDirect3DVolume9_iface;
148 unsigned int sub_resource_idx;
150};
151
153 unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops);
154
156{
157 IDirect3DSwapChain9Ex IDirect3DSwapChain9Ex_iface;
162 unsigned int swap_interval;
163};
164
166 unsigned int swap_interval, struct d3d9_swapchain **swapchain);
167
169{
173 unsigned int sub_resource_idx;
180};
181
184 unsigned int sub_resource_idx, IUnknown *container);
185struct d3d9_device *d3d9_surface_get_device(const struct d3d9_surface *surface);
187 struct wined3d_rendertarget_view *rtv);
189
191{
192 IDirect3DVertexBuffer9 IDirect3DVertexBuffer9_iface;
198};
199
202struct d3d9_vertexbuffer *unsafe_impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface);
203
205{
206 IDirect3DIndexBuffer9 IDirect3DIndexBuffer9_iface;
212 bool sysmem;
213};
214
217struct d3d9_indexbuffer *unsafe_impl_from_IDirect3DIndexBuffer9(IDirect3DIndexBuffer9 *iface);
218
220{
221 IDirect3DBaseTexture9 IDirect3DBaseTexture9_iface;
229};
230
232 unsigned int height, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool);
234 unsigned int height, unsigned int depth, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool);
236 unsigned int edge_length, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool);
237
239{
240 return texture->draw_texture ? texture->draw_texture : texture->wined3d_texture;
241}
242
243struct d3d9_texture *unsafe_impl_from_IDirect3DBaseTexture9(IDirect3DBaseTexture9 *iface);
246
248{
249 IDirect3DStateBlock9 IDirect3DStateBlock9_iface;
253};
254
255HRESULT stateblock_init(struct d3d9_stateblock *stateblock, struct d3d9_device *device,
257
259{
260 IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9_iface;
268};
269
273 IDirect3DVertexDeclaration9 *iface);
274
276{
277 IDirect3DVertexShader9 IDirect3DVertexShader9_iface;
281};
282
284 struct d3d9_device *device, const DWORD *byte_code);
285struct d3d9_vertexshader *unsafe_impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface);
286
288{
289 IDirect3DPixelShader9 IDirect3DPixelShader9_iface;
293};
294
296 struct d3d9_device *device, const DWORD *byte_code);
297struct d3d9_pixelshader *unsafe_impl_from_IDirect3DPixelShader9(IDirect3DPixelShader9 *iface);
298
300{
301 IDirect3DQuery9 IDirect3DQuery9_iface;
306};
307
309
311{
313}
314
315static inline DWORD d3dusage_from_wined3dusage(unsigned int wined3d_usage, unsigned int bind_flags)
316{
317 DWORD usage = wined3d_usage & WINED3DUSAGE_MASK;
318 if (bind_flags & WINED3D_BIND_RENDER_TARGET)
320 if (bind_flags & WINED3D_BIND_DEPTH_STENCIL)
322 return usage;
323}
324
325static inline D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
326{
328 return D3DPOOL_MANAGED;
329
331 {
332 default:
334 return D3DPOOL_DEFAULT;
337 return D3DPOOL_SCRATCH;
338 return D3DPOOL_SYSTEMMEM;
340 return D3DPOOL_MANAGED;
341 }
342}
343
345{
347}
348
350{
352}
353
354static inline unsigned int map_access_from_usage(unsigned int usage)
355{
359}
360
361static inline unsigned int wined3daccess_from_d3dpool(D3DPOOL pool, unsigned int usage)
362{
363 unsigned int access;
364
365 switch (pool)
366 {
367 case D3DPOOL_DEFAULT:
369 break;
370 case D3DPOOL_MANAGED:
372 break;
374 case D3DPOOL_SCRATCH:
376 break;
377 default:
378 access = 0;
379 }
382 return access;
383}
384
385static inline unsigned int wined3d_usage_from_d3d(D3DPOOL pool, DWORD usage)
386{
388 if (pool == D3DPOOL_SCRATCH)
390 else if (pool == D3DPOOL_MANAGED)
392 return usage;
393}
394
396{
397 unsigned int bind_flags = 0;
398
400 bind_flags |= WINED3D_BIND_RENDER_TARGET;
402 bind_flags |= WINED3D_BIND_DEPTH_STENCIL;
403
404 return bind_flags;
405}
406
408{
409 return (enum wined3d_multisample_type)type;
410}
411
413{
414 return (enum wined3d_device_type)type;
415}
416
418{
420}
421
422#endif /* __WINE_D3D9_PRIVATE_H */
Definition: list.h:39
enum _D3DDEVTYPE D3DDEVTYPE
#define D3DUSAGE_DYNAMIC
Definition: d3d8types.h:99
#define D3DUSAGE_WRITEONLY
Definition: d3d8types.h:93
enum _D3DPOOL D3DPOOL
#define D3DUSAGE_RENDERTARGET
Definition: d3d8types.h:91
@ D3DPOOL_SCRATCH
Definition: d3d8types.h:712
@ D3DPOOL_DEFAULT
Definition: d3d8types.h:709
@ D3DPOOL_SYSTEMMEM
Definition: d3d8types.h:711
@ D3DPOOL_MANAGED
Definition: d3d8types.h:710
enum _D3DFORMAT D3DFORMAT
#define D3DUSAGE_DEPTHSTENCIL
Definition: d3d8types.h:92
enum _D3DTEXTUREFILTERTYPE D3DTEXTUREFILTERTYPE
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
enum _D3DSTATEBLOCKTYPE D3DSTATEBLOCKTYPE
enum _D3DQUERYTYPE D3DQUERYTYPE
D3DSCANLINEORDERING
Definition: d3d9types.h:1564
#define D3D_MAX_SIMULTANEOUS_RENDERTARGETS
Definition: d3d9types.h:193
device_type
GUID guid
Definition: version.c:147
r parent
Definition: btrfs.c:3010
DWORD IDirect3DSurface9
Definition: dxva2api.idl:23
DWORD IDirect3DDevice9Ex
Definition: dxvahd.idl:22
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
return adapter
static enum @1153 ordering
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLint GLint GLsizei width
Definition: gl.h:1546
GLenum GLuint texture
Definition: glext.h:6295
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLuint shader
Definition: glext.h:6030
GLenum mode
Definition: glext.h:6217
GLbitfield flags
Definition: glext.h:7161
GLuint GLint GLboolean GLint GLenum access
Definition: glext.h:7866
GLsizeiptr const GLvoid GLenum usage
Definition: glext.h:5919
unsigned int UINT
Definition: sysinfo.c:13
D3D11_SHADER_VARIABLE_DESC desc
Definition: reflection.c:1683
static BYTE parameters[]
Definition: asn.c:558
long LONG
Definition: pedump.c:60
DWORD in_destruction
Definition: d3d9_private.h:110
DWORD sysmem_vb
Definition: d3d9_private.h:108
struct d3d9_surface * render_targets[D3D_MAX_SIMULTANEOUS_RENDERTARGETS]
Definition: d3d9_private.h:105
struct d3d9 * d3d_parent
Definition: d3d9_private.h:98
struct wined3d_stateblock * state
Definition: d3d9_private.h:121
struct fvf_declaration * fvf_decls
Definition: d3d9_private.h:100
unsigned int vs_uniform_count
Definition: d3d9_private.h:116
DWORD auto_mipmaps
Definition: d3d9_private.h:114
unsigned int max_user_clip_planes
Definition: d3d9_private.h:116
DWORD in_scene
Definition: d3d9_private.h:111
struct wined3d_streaming_buffer vertex_buffer index_buffer
Definition: d3d9_private.h:103
unsigned int adapter_ordinal
Definition: d3d9_private.h:97
UINT fvf_decl_count
Definition: d3d9_private.h:101
IDirect3DDevice9Ex IDirect3DDevice9Ex_iface
Definition: d3d9_private.h:91
LONG device_state
Definition: d3d9_private.h:107
UINT fvf_decl_size
Definition: d3d9_private.h:101
IDirect3DDevice9On12 IDirect3DDevice9On12_iface
Definition: d3d9_private.h:92
DWORD sysmem_ib
Definition: d3d9_private.h:109
struct wined3d_device_parent device_parent
Definition: d3d9_private.h:93
struct wined3d_swapchain ** implicit_swapchains
Definition: d3d9_private.h:119
struct wined3d_device_context * immediate_context
Definition: d3d9_private.h:96
struct wined3d_device * wined3d_device
Definition: d3d9_private.h:95
struct wined3d_stateblock * update_state
Definition: d3d9_private.h:121
const struct wined3d_stateblock_state * stateblock_state
Definition: d3d9_private.h:122
UINT implicit_swapchain_count
Definition: d3d9_private.h:118
struct wined3d_stateblock * recording
Definition: d3d9_private.h:121
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:209
enum wined3d_format_id format
Definition: d3d9_private.h:210
struct wined3d_buffer * wined3d_buffer
Definition: d3d9_private.h:208
IDirect3DIndexBuffer9 IDirect3DIndexBuffer9_iface
Definition: d3d9_private.h:206
struct wined3d_shader * wined3d_shader
Definition: d3d9_private.h:291
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:292
IDirect3DPixelShader9 IDirect3DPixelShader9_iface
Definition: d3d9_private.h:289
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:304
DWORD data_size
Definition: d3d9_private.h:305
IDirect3DQuery9 IDirect3DQuery9_iface
Definition: d3d9_private.h:301
struct wined3d_query * wined3d_query
Definition: d3d9_private.h:303
struct wined3d_private_store private_store
Definition: d3d9_private.h:132
struct wined3d_stateblock * wined3d_stateblock
Definition: d3d9_private.h:251
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:252
IDirect3DStateBlock9 IDirect3DStateBlock9_iface
Definition: d3d9_private.h:249
IUnknown * container
Definition: d3d9_private.h:177
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:176
struct wined3d_texture * wined3d_texture
Definition: d3d9_private.h:172
struct wined3d_swapchain * swapchain
Definition: d3d9_private.h:179
struct list rtv_entry
Definition: d3d9_private.h:174
IDirect3DSurface9 IDirect3DSurface9_iface
Definition: d3d9_private.h:170
struct wined3d_rendertarget_view * wined3d_rtv
Definition: d3d9_private.h:175
struct d3d9_texture * texture
Definition: d3d9_private.h:178
unsigned int sub_resource_idx
Definition: d3d9_private.h:173
IDirect3DSwapChain9Ex IDirect3DSwapChain9Ex_iface
Definition: d3d9_private.h:157
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:161
struct wined3d_swapchain * wined3d_swapchain
Definition: d3d9_private.h:159
unsigned int swap_interval
Definition: d3d9_private.h:162
struct wined3d_swapchain_state_parent state_parent
Definition: d3d9_private.h:160
struct wined3d_texture * draw_texture
Definition: d3d9_private.h:223
D3DTEXTUREFILTERTYPE autogen_filter_type
Definition: d3d9_private.h:228
struct wined3d_texture * wined3d_texture
Definition: d3d9_private.h:223
struct list rtv_list
Definition: d3d9_private.h:225
struct d3d9_device * parent_device
Definition: d3d9_private.h:224
IDirect3DBaseTexture9 IDirect3DBaseTexture9_iface
Definition: d3d9_private.h:221
IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9_iface
Definition: d3d9_private.h:260
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:267
D3DVERTEXELEMENT9 * elements
Definition: d3d9_private.h:262
struct wined3d_vertex_declaration * wined3d_declaration
Definition: d3d9_private.h:265
IDirect3DVertexBuffer9 IDirect3DVertexBuffer9_iface
Definition: d3d9_private.h:192
struct wined3d_buffer * draw_buffer
Definition: d3d9_private.h:196
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:195
struct wined3d_buffer * wined3d_buffer
Definition: d3d9_private.h:194
struct wined3d_shader * wined3d_shader
Definition: d3d9_private.h:279
IDirect3DDevice9Ex * parent_device
Definition: d3d9_private.h:280
IDirect3DVertexShader9 IDirect3DVertexShader9_iface
Definition: d3d9_private.h:277
IDirect3DVolume9 IDirect3DVolume9_iface
Definition: d3d9_private.h:145
unsigned int sub_resource_idx
Definition: d3d9_private.h:148
struct wined3d_texture * wined3d_texture
Definition: d3d9_private.h:147
struct d3d9_texture * texture
Definition: d3d9_private.h:149
struct wined3d * wined3d
Definition: d3d9_private.h:65
BOOL d3d9on12
Definition: d3d9_private.h:69
LONG refcount
Definition: d3d9_private.h:64
unsigned int wined3d_output_count
Definition: d3d9_private.h:67
BOOL extended
Definition: d3d9_private.h:68
struct wined3d_output ** wined3d_outputs
Definition: d3d9_private.h:66
IDirect3D9Ex IDirect3D9Ex_iface
Definition: d3d9_private.h:63
Definition: devices.h:37
struct wined3d_vertex_declaration * decl
Definition: d3d9_private.h:78
struct wined3d_vertex_declaration_element * elements
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
static DWORD d3dusage_from_wined3dusage(unsigned int wined3d_usage, unsigned int bind_flags)
Definition: d3d9_private.h:315
static struct wined3d_texture * d3d9_texture_get_draw_texture(struct d3d9_texture *texture)
Definition: d3d9_private.h:238
void d3d9_surface_release_rendertarget_view(struct d3d9_surface *surface, struct wined3d_rendertarget_view *rtv)
Definition: surface.c:443
static struct d3d9_device * impl_from_IDirect3DDevice9Ex(IDirect3DDevice9Ex *iface)
Definition: d3d9_private.h:310
HRESULT indexbuffer_init(struct d3d9_indexbuffer *buffer, struct d3d9_device *device, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool)
Definition: buffer.c:597
struct d3d9_device * d3d9_surface_get_device(const struct d3d9_surface *surface)
Definition: surface.c:410
HRESULT vertexshader_init(struct d3d9_vertexshader *shader, struct d3d9_device *device, const DWORD *byte_code)
Definition: shader.c:130
HRESULT query_init(struct d3d9_query *query, struct d3d9_device *device, D3DQUERYTYPE type)
Definition: query.c:182
HRESULT d3d9_texture_cube_init(struct d3d9_texture *texture, struct d3d9_device *device, unsigned int edge_length, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool)
Definition: texture.c:1380
void d3d9_resource_init(struct d3d9_resource *resource)
Definition: d3d9_main.c:345
static enum wined3d_multisample_type wined3d_multisample_type_from_d3d(D3DMULTISAMPLE_TYPE type)
Definition: d3d9_private.h:407
static unsigned int map_access_from_usage(unsigned int usage)
Definition: d3d9_private.h:354
struct d3d9_vertex_declaration * unsafe_impl_from_IDirect3DVertexDeclaration9(IDirect3DVertexDeclaration9 *iface)
HRESULT d3d9_swapchain_create(struct d3d9_device *device, struct wined3d_swapchain_desc *desc, unsigned int swap_interval, struct d3d9_swapchain **swapchain)
Definition: swapchain.c:399
struct d3d9_vertexshader * unsafe_impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface)
Definition: shader.c:157
struct d3d9_texture * unsafe_impl_from_IDirect3DBaseTexture9(IDirect3DBaseTexture9 *iface)
Definition: texture.c:1204
void d3d9_caps_from_wined3dcaps(const struct d3d9 *d3d9, unsigned int adapter_ordinal, D3DCAPS9 *caps, const struct wined3d_caps *wined3d_caps)
Definition: device.c:369
BOOL is_gdi_compat_wined3dformat(enum wined3d_format_id format)
Definition: device.c:1770
struct d3d9_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer9(IDirect3DIndexBuffer9 *iface)
Definition: buffer.c:654
void d3d9_texture_gen_auto_mipmap(struct d3d9_texture *texture)
Definition: texture.c:94
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format)
Definition: device.c:33
struct d3d9_surface * d3d9_surface_create(struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, IUnknown *container)
Definition: surface.c:356
HRESULT d3d9_texture_3d_init(struct d3d9_texture *texture, struct d3d9_device *device, unsigned int width, unsigned int height, unsigned int depth, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool)
Definition: texture.c:1404
HRESULT device_init(struct d3d9_device *device, struct d3d9 *parent, struct wined3d *wined3d, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters, D3DDISPLAYMODEEX *mode)
Definition: device.c:4714
static unsigned int wined3d_bind_flags_from_d3d9_usage(DWORD usage)
Definition: d3d9_private.h:395
static enum wined3d_device_type wined3d_device_type_from_d3d(D3DDEVTYPE type)
Definition: d3d9_private.h:412
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
Definition: device.c:29
void d3d9_texture_flag_auto_gen_mipmap(struct d3d9_texture *texture)
Definition: texture.c:106
HRESULT vdecl_convert_fvf(DWORD FVF, D3DVERTEXELEMENT9 **ppVertexElements)
static D3DMULTISAMPLE_TYPE d3dmultisample_type_from_wined3d(enum wined3d_multisample_type type)
Definition: d3d9_private.h:344
struct d3d9_pixelshader * unsafe_impl_from_IDirect3DPixelShader9(IDirect3DPixelShader9 *iface)
Definition: shader.c:300
static unsigned int wined3d_usage_from_d3d(D3DPOOL pool, DWORD usage)
Definition: d3d9_private.h:385
HRESULT d3d9_vertex_declaration_create(struct d3d9_device *device, const D3DVERTEXELEMENT9 *elements, struct d3d9_vertex_declaration **declaration)
struct wined3d_rendertarget_view * d3d9_surface_acquire_rendertarget_view(struct d3d9_surface *surface)
Definition: surface.c:417
struct d3d9_surface * unsafe_impl_from_IDirect3DSurface9(IDirect3DSurface9 *iface)
Definition: surface.c:450
void volume_init(struct d3d9_volume *volume, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops)
Definition: volume.c:204
HRESULT d3d9_resource_free_private_data(struct d3d9_resource *resource, const GUID *guid)
Definition: d3d9_main.c:289
HRESULT d3d9_resource_set_private_data(struct d3d9_resource *resource, const GUID *guid, const void *data, DWORD data_size, DWORD flags)
Definition: d3d9_main.c:351
HRESULT d3d9_texture_2d_init(struct d3d9_texture *texture, struct d3d9_device *device, unsigned int width, unsigned int height, unsigned int level_count, DWORD usage, D3DFORMAT format, D3DPOOL pool)
Definition: texture.c:1356
void present_parameters_from_wined3d_swapchain_desc(D3DPRESENT_PARAMETERS *present_parameters, const struct wined3d_swapchain_desc *swapchain_desc, DWORD presentation_interval)
Definition: device.c:242
void d3d9_resource_cleanup(struct d3d9_resource *resource)
Definition: d3d9_main.c:284
static enum wined3d_scanline_ordering wined3d_scanline_ordering_from_d3d(D3DSCANLINEORDERING ordering)
Definition: d3d9_private.h:417
HRESULT stateblock_init(struct d3d9_stateblock *stateblock, struct d3d9_device *device, D3DSTATEBLOCKTYPE type, struct wined3d_stateblock *wined3d_stateblock)
Definition: stateblock.c:175
static unsigned int wined3daccess_from_d3dpool(D3DPOOL pool, unsigned int usage)
Definition: d3d9_private.h:361
HRESULT pixelshader_init(struct d3d9_pixelshader *shader, struct d3d9_device *device, const DWORD *byte_code)
Definition: shader.c:273
HRESULT vertexbuffer_init(struct d3d9_vertexbuffer *buffer, struct d3d9_device *device, UINT size, UINT usage, DWORD fvf, D3DPOOL pool)
Definition: buffer.c:277
d3d9_device_state
Definition: d3d9_private.h:83
@ D3D9_DEVICE_STATE_OK
Definition: d3d9_private.h:84
@ D3D9_DEVICE_STATE_NOT_RESET
Definition: d3d9_private.h:86
@ D3D9_DEVICE_STATE_LOST
Definition: d3d9_private.h:85
BOOL d3d9_init(struct d3d9 *d3d9, BOOL extended, BOOL d3d9on12)
Definition: directx.c:686
struct d3d9_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface)
Definition: buffer.c:347
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags, unsigned int usage)
Definition: device.c:135
HRESULT d3d9_resource_get_private_data(struct d3d9_resource *resource, const GUID *guid, void *data, DWORD *data_size)
Definition: d3d9_main.c:307
static D3DSCANLINEORDERING d3dscanlineordering_from_wined3d(enum wined3d_scanline_ordering ordering)
Definition: d3d9_private.h:349
static D3DPOOL d3dpool_from_wined3daccess(unsigned int access, unsigned int usage)
Definition: d3d9_private.h:325
enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format)
Definition: device.c:84
wined3d_multisample_type
Definition: wined3d.h:572
#define WINED3D_RESOURCE_ACCESS_GPU
Definition: wined3d.h:51
#define WINED3D_RESOURCE_ACCESS_CPU
Definition: wined3d.h:52
#define WINED3DUSAGE_MASK
Definition: wined3d.h:930
wined3d_format_id
Definition: wined3d.h:126
#define WINED3D_BIND_DEPTH_STENCIL
Definition: wined3d.h:915
#define WINED3D_RESOURCE_ACCESS_MAP_R
Definition: wined3d.h:53
#define WINED3DUSAGE_MANAGED
Definition: wined3d.h:938
wined3d_scanline_ordering
Definition: wined3d.h:824
#define WINED3DUSAGE_SCRATCH
Definition: wined3d.h:932
#define WINED3D_BIND_RENDER_TARGET
Definition: wined3d.h:914
wined3d_device_type
Definition: wined3d.h:90
#define WINED3D_RESOURCE_ACCESS_MAP_W
Definition: wined3d.h:54