170 unsigned int wined3d_flags;
172 wined3d_flags =
flags & handled;
184 return wined3d_flags;
189 switch (primitive_type)
192 return primitive_count;
195 return primitive_count * 2;
198 return primitive_count + 1;
201 return primitive_count * 3;
205 return primitive_count + 2;
208 FIXME(
"Unhandled primitive type %#x.\n", primitive_type);
228 FIXME(
"Unhandled swap effect %#x.\n", effect);
268 FIXME(
"Unhandled swap effect %#x.\n", effect);
277 UINT highest_bb_count = extended ? 30 : 3;
281 WARN(
"Invalid swap effect %u passed.\n", present_parameters->
SwapEffect);
305 swapchain_desc->
flags
319 static const DWORD ps_minor_version[] = {0, 4, 0, 0};
320 static const DWORD vs_minor_version[] = {0, 1, 0, 0};
321 static const DWORD texture_filter_caps =
497 if (!
device->d3d_parent->extended)
499 WARN(
"IDirect3D9 instance wasn't created with CreateDirect3D9Ex, returning E_NOINTERFACE.\n");
530 if (
device->in_destruction)
543 for (
i = 0;
i <
device->fvf_decl_count; ++
i)
549 if (
device->vertex_buffer)
573 TRACE(
"iface %p.\n", iface);
575 TRACE(
"device state: %#x.\n",
device->device_state);
577 if (
device->d3d_parent->extended)
580 switch (
device->device_state)
597 TRACE(
"iface %p.\n", iface);
610 TRACE(
"iface %p.\n", iface);
623 TRACE(
"iface %p, d3d9 %p.\n", iface,
d3d9);
637 TRACE(
"iface %p, caps %p.\n", iface, caps);
642 memset(caps, 0,
sizeof(*caps));
659 TRACE(
"iface %p, swapchain %u, mode %p.\n", iface, swapchain,
mode);
681 TRACE(
"iface %p, parameters %p.\n", iface, parameters);
698 TRACE(
"iface %p, hotspot_x %u, hotspot_y %u, bitmap %p.\n",
699 iface, hotspot_x, hotspot_y,
bitmap);
703 WARN(
"No cursor bitmap, returning D3DERR_INVALIDCALL.\n");
719 TRACE(
"iface %p, x %u, y %u, flags %#x.\n", iface,
x,
y,
flags);
731 TRACE(
"iface %p, show %#x.\n", iface, show);
749 TRACE(
"iface %p, present_parameters %p, swapchain %p.\n",
750 iface, present_parameters, swapchain);
754 WARN(
"Trying to create an additional fullscreen swapchain, returning D3DERR_INVALIDCALL.\n");
770 WARN(
"Trying to create an additional swapchain in fullscreen mode, returning D3DERR_INVALIDCALL.\n");
777 device->d3d_parent->extended))
780 *swapchain = (IDirect3DSwapChain9 *)&
object->IDirect3DSwapChain9Ex_iface;
787 UINT swapchain_idx, IDirect3DSwapChain9 **swapchain)
792 TRACE(
"iface %p, swapchain_idx %u, swapchain %p.\n", iface, swapchain_idx, swapchain);
797 *swapchain = (IDirect3DSwapChain9 *)&
device->implicit_swapchains[swapchain_idx]->IDirect3DSwapChain9Ex_iface;
816 TRACE(
"iface %p.\n", iface);
828 IDirect3DBaseTexture9 *
texture;
838 WARN(
"Resource %p in pool D3DPOOL_DEFAULT blocks the Reset call.\n",
resource);
846 WARN(
"Texture %p (resource %p) in pool D3DPOOL_DEFAULT blocks the Reset call.\n",
texture,
resource);
854 WARN(
"Surface %p in pool D3DPOOL_DEFAULT blocks the Reset call.\n", surface);
863 if (!(
device->implicit_swapchains =
heap_alloc(new_swapchain_count *
sizeof(*
device->implicit_swapchains))))
866 for (
i = 0;
i < new_swapchain_count; ++
i)
871 device->implicit_swapchain_count = new_swapchain_count;
888 WARN(
"App not active, returning D3DERR_DEVICELOST.\n");
906 if (
device->vertex_buffer)
910 device->vertex_buffer_size = 0;
917 device->index_buffer_size = 0;
946 if (!
device->d3d_parent->extended)
970 TRACE(
"iface %p, present_parameters %p.\n", iface, present_parameters);
976 const RECT *src_rect,
const RECT *dst_rect,
HWND dst_window_override,
const RGNDATA *dirty_region)
982 TRACE(
"iface %p, src_rect %p, dst_rect %p, dst_window_override %p, dirty_region %p.\n",
983 iface, src_rect, dst_rect, dst_window_override, dirty_region);
989 FIXME(
"Ignoring dirty_region %p.\n", dirty_region);
992 for (
i = 0;
i <
device->implicit_swapchain_count; ++
i)
995 src_rect, dst_rect, dst_window_override, 0, 0)))
1012 TRACE(
"iface %p, swapchain %u, backbuffer_idx %u, backbuffer_type %#x, backbuffer %p.\n",
1013 iface, swapchain, backbuffer_idx, backbuffer_type, backbuffer);
1021 if (swapchain >=
device->implicit_swapchain_count)
1024 WARN(
"Swapchain index %u is out of range, returning D3DERR_INVALIDCALL.\n", swapchain);
1029 backbuffer_idx, backbuffer_type, backbuffer);
1041 TRACE(
"iface %p, swapchain %u, raster_status %p.\n", iface, swapchain, raster_status);
1070 TRACE(
"iface %p, swapchain %u, flags %#x, ramp %p.\n", iface, swapchain,
flags,
ramp);
1082 TRACE(
"iface %p, swapchain %u, ramp %p.\n", iface, swapchain,
ramp);
1099 TRACE(
"iface %p, width %u, height %u, levels %u, usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.\n",
1105 if (!
device->d3d_parent->extended)
1107 WARN(
"Trying to create a shared or user memory texture on a non-ex device.\n");
1121 WARN(
"Trying to create a shared texture in pool %#x.\n",
pool);
1124 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1128 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1134 WARN(
"Failed to initialize texture, hr %#x.\n",
hr);
1144 TRACE(
"Created texture %p.\n",
object);
1145 *
texture = (IDirect3DTexture9 *)&
object->IDirect3DBaseTexture9_iface;
1158 TRACE(
"iface %p, width %u, height %u, depth %u, levels %u, "
1159 "usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.\n",
1166 if (!
device->d3d_parent->extended)
1168 WARN(
"Trying to create a shared volume texture on a non-ex device.\n");
1174 WARN(
"Trying to create a shared volume texture in pool %#x.\n",
pool);
1177 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1180 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1186 WARN(
"Failed to initialize volume texture, hr %#x.\n",
hr);
1191 TRACE(
"Created volume texture %p.\n",
object);
1192 *
texture = (IDirect3DVolumeTexture9 *)&
object->IDirect3DBaseTexture9_iface;
1205 TRACE(
"iface %p, edge_length %u, levels %u, usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.\n",
1211 if (!
device->d3d_parent->extended)
1213 WARN(
"Trying to create a shared cube texture on a non-ex device.\n");
1219 WARN(
"Trying to create a shared cube texture in pool %#x.\n",
pool);
1222 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1225 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1231 WARN(
"Failed to initialize cube texture, hr %#x.\n",
hr);
1236 TRACE(
"Created cube texture %p.\n",
object);
1237 *
texture = (IDirect3DCubeTexture9 *)&
object->IDirect3DBaseTexture9_iface;
1250 TRACE(
"iface %p, size %u, usage %#x, fvf %#x, pool %#x, buffer %p, shared_handle %p.\n",
1255 if (!
device->d3d_parent->extended)
1257 WARN(
"Trying to create a shared vertex buffer on a non-ex device.\n");
1263 WARN(
"Trying to create a shared vertex buffer in pool %#x.\n",
pool);
1266 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1269 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1275 WARN(
"Failed to initialize vertex buffer, hr %#x.\n",
hr);
1280 TRACE(
"Created vertex buffer %p.\n",
object);
1281 *
buffer = &
object->IDirect3DVertexBuffer9_iface;
1294 TRACE(
"iface %p, size %u, usage %#x, format %#x, pool %#x, buffer %p, shared_handle %p.\n",
1299 if (!
device->d3d_parent->extended)
1301 WARN(
"Trying to create a shared index buffer on a non-ex device.\n");
1307 WARN(
"Trying to create a shared index buffer in pool %#x.\n",
pool);
1310 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1313 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
1319 WARN(
"Failed to initialize index buffer, hr %#x.\n",
hr);
1324 TRACE(
"Created index buffer %p.\n",
object);
1325 *
buffer = &
object->IDirect3DIndexBuffer9_iface;
1339 TRACE(
"device %p, width %u, height %u, format %#x, flags %#x, surface %p.\n"
1340 "usage %#x, pool %#x, multisample_type %#x, multisample_quality %u.\n",
1342 multisample_type, multisample_quality);
1346 desc.multisample_type = multisample_type;
1347 desc.multisample_quality = multisample_quality;
1367 WARN(
"Failed to create texture, hr %#x.\n",
hr);
1380 desc.format, multisample_type, multisample_quality, user_mem, 0);
1407 BOOL lockable, IDirect3DSurface9 **surface,
HANDLE *shared_handle)
1412 TRACE(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u.\n"
1413 "lockable %#x, surface %p, shared_handle %p.\n",
1415 lockable, surface, shared_handle);
1420 if (!
device->d3d_parent->extended)
1422 WARN(
"Trying to create a shared render target on a non-ex device.\n");
1426 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1438 BOOL discard, IDirect3DSurface9 **surface,
HANDLE *shared_handle)
1443 TRACE(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u.\n"
1444 "discard %#x, surface %p, shared_handle %p.\n",
1446 discard, surface, shared_handle);
1451 if (!
device->d3d_parent->extended)
1453 WARN(
"Trying to create a shared depth stencil on a non-ex device.\n");
1457 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1469 IDirect3DSurface9 *src_surface,
const RECT *src_rect,
1470 IDirect3DSurface9 *dst_surface,
const POINT *dst_point)
1479 TRACE(
"iface %p, src_surface %p, src_rect %p, dst_surface %p, dst_point %p.\n",
1480 iface, src_surface, src_rect, dst_surface, dst_point);
1489 WARN(
"Surface formats (%#x/%#x) don't match.\n",
1503 src->sub_resource_idx, &src_box);
1516 IDirect3DBaseTexture9 *src_texture, IDirect3DBaseTexture9 *dst_texture)
1522 TRACE(
"iface %p, src_texture %p, dst_texture %p.\n", iface, src_texture, dst_texture);
1538 IDirect3DSurface9 *render_target, IDirect3DSurface9 *dst_surface)
1543 RECT dst_rect, src_rect;
1546 TRACE(
"iface %p, render_target %p, dst_surface %p.\n", iface, render_target, dst_surface);
1548 if (!render_target || !dst_surface)
1570 UINT swapchain, IDirect3DSurface9 *dst_surface)
1576 TRACE(
"iface %p, swapchain %u, dst_surface %p.\n", iface, swapchain, dst_surface);
1579 if (swapchain < device->implicit_swapchain_count)
1597 TRACE(
"iface %p, src_surface %p, src_rect %p, dst_surface %p, dst_rect %p, filter %#x.\n",
1598 iface, src_surface, src_rect, dst_surface, dst_rect,
filter);
1617 WARN(
"Destination resource is not in DEFAULT pool.\n");
1622 WARN(
"Source resource is not in DEFAULT pool.\n");
1628 WARN(
"Destination is a regular texture.\n");
1636 WARN(
"Rejecting depth / stencil blit while in scene.\n");
1643 WARN(
"Rejecting depth / stencil blit with invalid source rect %s.\n",
1651 WARN(
"Rejecting depth / stencil blit with invalid destination rect %s.\n",
1658 WARN(
"Rejecting depth / stencil blit with mismatched surface sizes.\n");
1680 ((
color >> 16) & 0xff) / 255.0f,
1681 ((
color >> 8) & 0xff) / 255.0f,
1682 (
color & 0xff) / 255.0f,
1683 ((
color >> 24) & 0xff) / 255.0f,
1691 TRACE(
"iface %p, surface %p, rect %p, color 0x%08x.\n", iface, surface,
rect,
color);
1705 WARN(
"Colour fills are not allowed on surfaces with resource access %#x.\n",
desc.access);
1711 WARN(
"Colorfill is not allowed on non-RT textures, returning D3DERR_INVALIDCALL.\n");
1717 WARN(
"Colorfill is not allowed on depth stencil surfaces, returning D3DERR_INVALIDCALL.\n");
1738 void *user_mem =
NULL;
1740 TRACE(
"iface %p, width %u, height %u, format %#x, pool %#x, surface %p, shared_handle %p.\n",
1746 WARN(
"Attempting to create a managed offscreen plain surface.\n");
1752 if (!
device->d3d_parent->extended)
1754 WARN(
"Trying to create a shared or user memory surface on a non-ex device.\n");
1759 user_mem = *shared_handle;
1764 WARN(
"Trying to create a shared surface in pool %#x.\n",
pool);
1767 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
1785 TRACE(
"iface %p, idx %u, surface %p.\n", iface,
idx, surface);
1789 WARN(
"Invalid index %u specified.\n",
idx);
1793 if (!
idx && !surface_impl)
1795 WARN(
"Trying to set render target 0 to NULL.\n");
1801 WARN(
"Render target surface does not match device.\n");
1810 device->render_targets[
idx] = surface_impl;
1823 TRACE(
"iface %p, idx %u, surface %p.\n", iface,
idx, surface);
1830 WARN(
"Invalid index %u specified.\n",
idx);
1859 TRACE(
"iface %p, depth_stencil %p.\n", iface, depth_stencil);
1877 TRACE(
"iface %p, depth_stencil %p.\n", iface, depth_stencil);
1894 *depth_stencil =
NULL;
1906 TRACE(
"iface %p.\n", iface);
1921 TRACE(
"iface %p.\n", iface);
1939 if (surface && surface->
texture)
1949 ((
color >> 16) & 0xff) / 255.0f,
1950 ((
color >> 8) & 0xff) / 255.0f,
1951 (
color & 0xff) / 255.0f,
1952 ((
color >> 24) & 0xff) / 255.0f,
1957 TRACE(
"iface %p, rect_count %u, rects %p, flags %#x, color 0x%08x, z %.8e, stencil %u.\n",
1960 if (rect_count && !rects)
1962 WARN(
"count %u with NULL rects.\n", rect_count);
2025 TRACE(
"iface %p, viewport %p.\n", iface, viewport);
2046 TRACE(
"iface %p, viewport %p.\n", iface, viewport);
2066 TRACE(
"iface %p, material %p.\n", iface, material);
2080 TRACE(
"iface %p, material %p.\n", iface, material);
2215 TRACE(
"iface %p, type %#x, stateblock %p.\n", iface,
type, stateblock);
2219 WARN(
"Unexpected stateblock type, returning D3DERR_INVALIDCALL.\n");
2223 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
2229 WARN(
"Failed to initialize stateblock, hr %#x.\n",
hr);
2234 TRACE(
"Created stateblock %p.\n",
object);
2235 *stateblock = &
object->IDirect3DStateBlock9_iface;
2245 TRACE(
"iface %p.\n", iface);
2261 TRACE(
"iface %p, stateblock %p.\n", iface, stateblock);
2268 WARN(
"Failed to end the state block, hr %#x.\n",
hr);
2272 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
2283 WARN(
"Failed to initialize stateblock, hr %#x.\n",
hr);
2291 TRACE(
"Created stateblock %p.\n",
object);
2292 *stateblock = &
object->IDirect3DStateBlock9_iface;
2302 TRACE(
"iface %p, clip_status %p.\n", iface, clip_status);
2316 TRACE(
"iface %p, clip_status %p.\n", iface, clip_status);
2331 TRACE(
"iface %p, stage %u, texture %p.\n", iface, stage,
texture);
2358 TRACE(
"iface %p, stage %u, texture %p.\n", iface, stage,
texture);
2370 device->textures[
i] = texture_impl;
2419 TRACE(
"iface %p, stage %u, state %#x, value %p.\n", iface, stage,
state,
value);
2423 WARN(
"Invalid state %#x passed.\n",
state);
2439 TRACE(
"iface %p, stage %u, state %#x, value %#x.\n", iface, stage,
state,
value);
2443 WARN(
"Invalid state %#x passed.\n",
state);
2487 TRACE(
"iface %p, pass_count %p.\n", iface, pass_count);
2499 WARN(
"iface %p, palette_idx %u, entries %p unimplemented.\n", iface, palette_idx, entries);
2512 FIXME(
"iface %p, palette_idx %u, entries %p unimplemented.\n", iface, palette_idx, entries);
2519 WARN(
"iface %p, palette_idx %u unimplemented.\n", iface, palette_idx);
2526 FIXME(
"iface %p, palette_idx %p.\n", iface, palette_idx);
2535 TRACE(
"iface %p, rect %p.\n", iface,
rect);
2548 TRACE(
"iface %p, rect %p.\n", iface,
rect);
2561 TRACE(
"iface %p, software %#x.\n", iface, software);
2575 TRACE(
"iface %p.\n", iface);
2589 TRACE(
"iface %p, segment_count %.8e.\n", iface, segment_count);
2603 TRACE(
"iface %p.\n", iface);
2628 TRACE(
"iface %p, primitive_type %#x, start_vertex %u, primitive_count %u.\n",
2629 iface, primitive_type, start_vertex, primitive_count);
2632 if (!
device->has_vertex_declaration)
2635 WARN(
"Called without a valid vertex declaration set.\n");
2656 TRACE(
"iface %p, primitive_type %#x, base_vertex_idx %u, min_vertex_idx %u, "
2657 "vertex_count %u, start_idx %u, primitive_count %u.\n",
2658 iface, primitive_type, base_vertex_idx, min_vertex_idx,
2662 if (!
device->has_vertex_declaration)
2665 WARN(
"Called without a valid vertex declaration set.\n");
2685 if (
device->vertex_buffer_size < min_size || !
device->vertex_buffer)
2691 TRACE(
"Growing vertex buffer to %u bytes.\n",
size);
2697 desc.misc_flags = 0;
2698 desc.structure_byte_stride = 0;
2703 ERR(
"Failed to create vertex buffer, hr %#x.\n",
hr);
2707 if (
device->vertex_buffer)
2712 device->vertex_buffer_pos = 0;
2729 TRACE(
"iface %p, primitive_type %#x, primitive_count %u, data %p, stride %u.\n",
2730 iface, primitive_type, primitive_count,
data,
stride);
2732 if (!primitive_count)
2734 WARN(
"primitive_count is 0, returning D3D_OK\n");
2740 if (!
device->has_vertex_declaration)
2743 WARN(
"Called without a valid vertex declaration set.\n");
2751 vb_pos =
device->vertex_buffer_pos;
2790 if (
device->index_buffer_size < min_size || !
device->index_buffer)
2796 TRACE(
"Growing index buffer to %u bytes.\n",
size);
2802 desc.misc_flags = 0;
2803 desc.structure_byte_stride = 0;
2808 ERR(
"Failed to create index buffer, hr %#x.\n",
hr);
2812 if (
device->index_buffer)
2817 device->index_buffer_pos = 0;
2825 const void *vertex_data,
UINT vertex_stride)
2831 UINT idx_size = idx_count * idx_fmt_size;
2838 TRACE(
"iface %p, primitive_type %#x, min_vertex_idx %u, vertex_count %u, primitive_count %u, "
2839 "index_data %p, index_format %#x, vertex_data %p, vertex_stride %u.\n",
2840 iface, primitive_type, min_vertex_idx,
vertex_count, primitive_count,
2841 index_data, index_format, vertex_data, vertex_stride);
2843 if (!primitive_count)
2845 WARN(
"primitive_count is 0, returning D3D_OK.\n");
2851 if (!
device->has_vertex_declaration)
2854 WARN(
"Called without a valid vertex declaration set.\n");
2862 vb_pos =
device->vertex_buffer_pos;
2863 align = vb_pos % vertex_stride;
2865 if (vb_pos + vtx_size +
align >
device->vertex_buffer_size)
2878 device->vertex_buffer_pos = vb_pos + vtx_size;
2884 ib_pos =
device->index_buffer_pos;
2885 align = ib_pos % idx_fmt_size;
2887 if (ib_pos + idx_size +
align >
device->index_buffer_size)
2900 device->index_buffer_pos = ib_pos + idx_size;
2935 TRACE(
"iface %p, src_start_idx %u, dst_idx %u, vertex_count %u, dst_buffer %p, declaration %p, flags %#x.\n",
2958 WARN(
"Caller passed a NULL declaration, returning D3DERR_INVALIDCALL.\n");
2963 *
declaration = &
object->IDirect3DVertexDeclaration9_iface;
2979 device->has_vertex_declaration = !!decl_impl;
3022 TRACE(
"Searching for declaration for fvf %08x... ",
fvf);
3025 high =
device->fvf_decl_count - 1;
3028 p = (low + high) >> 1;
3033 TRACE(
"found %p.\n", fvf_decls[
p].decl);
3034 return fvf_decls[
p].
decl;
3042 TRACE(
"not found. Creating and inserting at position %d.\n", low);
3056 if (!(fvf_decls =
heap_realloc(fvf_decls,
sizeof(*fvf_decls) * (
device->fvf_decl_size + grow))))
3061 device->fvf_decls = fvf_decls;
3062 device->fvf_decl_size += grow;
3065 d3d9_declaration->
fvf =
fvf;
3070 memmove(fvf_decls + low + 1, fvf_decls + low,
sizeof(*fvf_decls) * (
device->fvf_decl_count - low));
3072 fvf_decls[low].
fvf =
fvf;
3073 ++
device->fvf_decl_count;
3085 TRACE(
"iface %p, fvf %#x.\n", iface, fvf);
3089 WARN(
"%#x is not a valid FVF.\n", fvf);
3097 ERR(
"Failed to create a vertex declaration for fvf %#x.\n", fvf);
3114 TRACE(
"iface %p, fvf %p.\n", iface,
fvf);
3120 *
fvf = d3d9_declaration->
fvf;
3128 TRACE(
"Returning FVF %#x.\n", *
fvf);
3134 const DWORD *byte_code, IDirect3DVertexShader9 **
shader)
3140 TRACE(
"iface %p, byte_code %p, shader %p.\n", iface, byte_code,
shader);
3142 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
3148 WARN(
"Failed to initialize vertex shader, hr %#x.\n",
hr);
3153 TRACE(
"Created vertex shader %p.\n",
object);
3154 *
shader = &
object->IDirect3DVertexShader9_iface;
3206 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3210 WARN(
"Trying to access %u constants, but d3d9 only supports %u\n",
3229 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3233 WARN(
"Trying to access %u constants, but d3d9 only supports %u\n",
3252 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3268 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3284 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3299 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3315 TRACE(
"iface %p, stream_idx %u, buffer %p, offset %u, stride %u.\n",
3334 TRACE(
"iface %p, stream_idx %u, buffer %p, offset %p, stride %p.\n",
3364 TRACE(
"iface %p, stream_idx %u, freq %u.\n", iface, stream_idx, freq);
3378 TRACE(
"iface %p, stream_idx %u, freq %p.\n", iface, stream_idx, freq);
3431 const DWORD *byte_code, IDirect3DPixelShader9 **
shader)
3437 TRACE(
"iface %p, byte_code %p, shader %p.\n", iface, byte_code,
shader);
3439 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
3441 FIXME(
"Failed to allocate pixel shader memory.\n");
3448 WARN(
"Failed to initialize pixel shader, hr %#x.\n",
hr);
3453 TRACE(
"Created pixel shader %p.\n",
object);
3454 *
shader = &
object->IDirect3DPixelShader9_iface;
3508 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3524 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3540 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3556 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3572 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3587 TRACE(
"iface %p, reg_idx %u, data %p, count %u.\n", iface, reg_idx,
data,
count);
3599 FIXME(
"iface %p, handle %#x, segment_count %p, patch_info %p unimplemented.\n",
3600 iface,
handle, segment_count, patch_info);
3607 FIXME(
"iface %p, handle %#x, segment_count %p, patch_info %p unimplemented.\n",
3608 iface,
handle, segment_count, patch_info);
3614 FIXME(
"iface %p, handle %#x unimplemented.\n", iface,
handle);
3626 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
3632 WARN(
"Failed to initialize query, hr %#x.\n",
hr);
3637 TRACE(
"Created query %p.\n",
object);
3638 if (
query) *
query = &
object->IDirect3DQuery9_iface;
3647 FIXME(
"iface %p, width %u, height %u, rows %p, columns %p stub!\n",
3654 IDirect3DSurface9 *src_surface, IDirect3DSurface9 *dst_surface, IDirect3DVertexBuffer9 *src_descs,
3657 FIXME(
"iface %p, src_surface %p, dst_surface %p, src_descs %p, rect_count %u, "
3658 "dst_descs %p, operation %#x, offset_x %u, offset_y %u stub!\n",
3659 iface, src_surface, dst_surface, src_descs, rect_count,
3660 dst_descs,
operation, offset_x, offset_y);
3666 const RECT *src_rect,
const RECT *dst_rect,
HWND dst_window_override,
3673 TRACE(
"iface %p, src_rect %s, dst_rect %s, dst_window_override %p, dirty_region %p, flags %#x.\n",
3675 dst_window_override, dirty_region,
flags);
3681 FIXME(
"Ignoring dirty_region %p.\n", dirty_region);
3684 for (
i = 0;
i <
device->implicit_swapchain_count; ++
i)
3687 src_rect, dst_rect, dst_window_override, 0,
flags)))
3714 FIXME(
"iface %p, swapchain_idx %u stub!\n", iface, swapchain_idx);
3722 FIXME(
"iface %p, resources %p, resource_count %u stub!\n",
3730 TRACE(
"iface %p, max_latency %u.\n", iface, max_latency);
3733 FIXME(
"Ignoring max_latency %u.\n", max_latency);
3740 FIXME(
"iface %p, max_latency %p stub!\n", iface, max_latency);
3752 TRACE(
"iface %p, dst_window %p.\n", iface, dst_window);
3773 FIXME(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u, "
3774 "lockable %#x, surface %p, shared_handle %p, usage %#x stub!\n",
3776 lockable, surface, shared_handle,
usage);
3780 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
3789 FIXME(
"iface %p, width %u, height %u, format %#x, pool %#x, surface %p, shared_handle %p, usage %#x stub!\n",
3802 TRACE(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, multisample_quality %u, "
3803 "discard %#x, surface %p, shared_handle %p, usage %#x.\n",
3805 discard, surface, shared_handle,
usage);
3814 FIXME(
"Resource sharing not implemented, *shared_handle %p.\n", *shared_handle);
3829 TRACE(
"iface %p, present_parameters %p, mode %p.\n", iface, present_parameters,
mode);
3833 WARN(
"Mode can be passed if and only if Windowed is FALSE.\n");
3840 WARN(
"Mode and back buffer mismatch (mode %ux%u, backbuffer %ux%u).\n",
3856 TRACE(
"iface %p, swapchain_idx %u, mode %p, rotation %p.\n",
3857 iface, swapchain_idx,
mode, rotation);
4047 else if (
device->d3d_parent->extended)
4059 TRACE(
"device_parent %p, wined3d_texture %p, sub_resource_idx %u, parent %p, parent_ops %p.\n",
4062 if (!(d3d_surface = heap_alloc_zero(
sizeof(*d3d_surface))))
4067 TRACE(
"Created surface %p.\n", d3d_surface);
4078 TRACE(
"device_parent %p, texture %p, sub_resource_idx %u, parent %p, parent_ops %p.\n",
4081 if (!(d3d_volume = heap_alloc_zero(
sizeof(*d3d_volume))))
4086 TRACE(
"Created volume %p.\n", d3d_volume);
4099 TRACE(
"device_parent %p, container_parent %p, desc %p, texture flags %#x, texture %p.\n",
4100 device_parent, container_parent,
desc, texture_flags,
texture);
4102 if (container_parent == device_parent)
4103 container_parent = &
device->IDirect3DDevice9Ex_iface;
4112 WARN(
"Failed to create texture, hr %#x.\n",
hr);
4129 TRACE(
"device_parent %p, desc %p, swapchain %p\n", device_parent,
desc, swapchain);
4134 WARN(
"Failed to create swapchain, hr %#x.\n",
hr);
4159#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
4161 __asm__ volatile (
"fnstcw %0" :
"=m" (cw));
4162 cw = (cw & ~0xf3f) | 0x3f;
4163 __asm__ volatile (
"fldcw %0" : :
"m" (cw));
4164#elif defined(__i386__) && defined(_MSC_VER)
4167 cw = (cw & ~0xf3f) | 0x3f;
4170 FIXME(
"FPU setup not implemented for this platform.\n");
4184 FIXME(
"Ignoring display mode.\n");
4196 WARN(
"Failed to create wined3d device, hr %#x.\n",
hr);
4215 ERR(
"Failed to acquire focus window, hr %#x.\n",
hr);
4234 ERR(
"Failed to allocate wined3d parameters.\n");
4256 WARN(
"Failed to initialize 3D, hr %#x.\n",
hr);
4289 ERR(
"Failed to allocate FVF vertex declaration map memory.\n");
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
static void * heap_realloc(void *mem, size_t len)
#define InterlockedIncrement
#define InterlockedDecrement
static const char * wine_dbgstr_rect(const RECT *prc)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define STDMETHODCALLTYPE
HRESULT volumetexture_init(struct d3d8_texture *texture, struct d3d8_device *device, UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN
void surface_init(struct d3d8_surface *surface, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops) DECLSPEC_HIDDEN
#define D3DPRESENTFLAGS_MASK
HRESULT cubetexture_init(struct d3d8_texture *texture, struct d3d8_device *device, UINT edge_length, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN
HRESULT texture_init(struct d3d8_texture *texture, struct d3d8_device *device, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool) DECLSPEC_HIDDEN
static unsigned int wined3daccess_from_d3dpool(D3DPOOL pool, unsigned int usage)
void volume_init(struct d3d8_volume *volume, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, const struct wined3d_parent_ops **parent_ops) DECLSPEC_HIDDEN
#define D3DCAPS2_RESERVED
#define D3DDEVCAPS_EXECUTESYSTEMMEMORY
#define D3DPTEXTURECAPS_CUBEMAP_POW2
#define D3DDEVCAPS_CANRENDERAFTERFLIP
#define D3DVTXPCAPS_LOCALVIEWER
#define D3DPTEXTURECAPS_PROJECTED
#define D3DPRASTERCAPS_WBUFFER
#define D3DDEVCAPS_HWTRANSFORMANDLIGHT
#define D3DPTFILTERCAPS_MIPFLINEAR
#define D3DDEVCAPS_TEXTUREVIDEOMEMORY
#define D3DDEVCAPS_DRAWPRIMITIVES2
#define D3DDEVCAPS_TEXTURESYSTEMMEMORY
#define D3DPTFILTERCAPS_MINFANISOTROPIC
#define D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE
#define D3DDEVCAPS_QUINTICRTPATCHES
#define D3DVTXPCAPS_MATERIALSOURCE7
#define D3DPTFILTERCAPS_MINFLINEAR
#define D3DPTEXTURECAPS_SQUAREONLY
#define D3DDEVCAPS_DRAWPRIMITIVES2EX
#define D3DPTFILTERCAPS_MAGFANISOTROPIC
#define D3DPTEXTURECAPS_ALPHAPALETTE
#define D3DPSHADECAPS_COLORGOURAUDRGB
#define D3DPRASTERCAPS_ZBUFFERLESSHSR
#define D3DDEVCAPS_EXECUTEVIDEOMEMORY
#define D3DPRASTERCAPS_WFOG
#define D3DPSHADECAPS_FOGGOURAUD
#define D3DPTEXTURECAPS_ALPHA
#define D3DDEVCAPS_SEPARATETEXTUREMEMORIES
#define D3DPSHADECAPS_SPECULARGOURAUDRGB
#define D3DPTEXTURECAPS_VOLUMEMAP
#define D3DPTEXTURECAPS_VOLUMEMAP_POW2
#define D3DDEVCAPS_DRAWPRIMTLVERTEX
#define D3DPRASTERCAPS_ANISOTROPY
#define D3DVTXPCAPS_DIRECTIONALLIGHTS
#define D3DDEVCAPS_TLVERTEXSYSTEMMEMORY
#define D3DPRASTERCAPS_COLORPERSPECTIVE
#define D3DDEVCAPS_RTPATCHES
#define D3DCAPS2_CANCALIBRATEGAMMA
#define D3DDEVCAPS_NPATCHES
#define D3DPRASTERCAPS_ZFOG
#define D3DDEVCAPS_RTPATCHHANDLEZERO
#define D3DPTEXTURECAPS_NONPOW2CONDITIONAL
#define D3DPRASTERCAPS_FOGRANGE
#define D3DPSHADECAPS_ALPHAGOURAUDBLEND
#define D3DPTEXTURECAPS_PERSPECTIVE
#define D3DDEVCAPS_HWRASTERIZATION
#define D3DVTXPCAPS_TWEENING
#define D3DPRASTERCAPS_FOGVERTEX
#define D3DPTFILTERCAPS_MAGFLINEAR
#define D3DPTFILTERCAPS_MINFPOINT
#define D3DPTEXTURECAPS_CUBEMAP
#define D3DDEVCAPS_TEXTURENONLOCALVIDMEM
#define D3DVTXPCAPS_TEXGEN
#define D3DCAPS2_DYNAMICTEXTURES
#define D3DDEVCAPS_CANBLTSYSTONONLOCAL
#define D3DPRASTERCAPS_FOGTABLE
#define D3DCAPS2_CANMANAGERESOURCE
#define D3DPTEXTURECAPS_MIPCUBEMAP
#define D3DPTFILTERCAPS_MIPFPOINT
#define D3DDEVCAPS_TLVERTEXVIDEOMEMORY
#define D3DPRASTERCAPS_ZTEST
#define D3DVTXPCAPS_POSITIONALLIGHTS
#define D3DDEVCAPS_PUREDEVICE
#define D3DCAPS2_FULLSCREENGAMMA
#define D3DPTEXTURECAPS_MIPMAP
#define D3DPTEXTURECAPS_POW2
#define D3DPTFILTERCAPS_MAGFPOINT
#define D3DPRASTERCAPS_MIPMAPLODBIAS
#define D3DPTEXTURECAPS_MIPVOLUMEMAP
#define D3DPRASTERCAPS_DITHER
enum _D3DTEXTURESTAGESTATETYPE D3DTEXTURESTAGESTATETYPE
enum _D3DBACKBUFFER_TYPE D3DBACKBUFFER_TYPE
#define D3DPS_VERSION(major, minor)
enum _D3DDEVTYPE D3DDEVTYPE
enum _D3DSWAPEFFECT D3DSWAPEFFECT
#define D3DLOCK_NO_DIRTY_UPDATE
#define D3DLOCK_NOOVERWRITE
enum _D3DTRANSFORMSTATETYPE D3DTRANSFORMSTATETYPE
#define D3DLOCK_NOSYSLOCK
#define D3DVS_VERSION(major, minor)
#define D3DUSAGE_RENDERTARGET
enum _D3DFORMAT D3DFORMAT
#define D3DUSAGE_DEPTHSTENCIL
enum _D3DTEXTUREFILTERTYPE D3DTEXTUREFILTERTYPE
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
enum _D3DSTATEBLOCKTYPE D3DSTATEBLOCKTYPE
#define IDirect3DSwapChain9Ex_Release(p)
#define IDirect3D9Ex_QueryInterface(p, a, b)
#define IDirect3DQuery9_Release(p)
#define IDirect3DSwapChain9Ex_GetBackBuffer(p, a, b, c)
#define IDirect3DIndexBuffer9_AddRef(p)
#define IDirect3DSwapChain9Ex_AddRef(p)
#define IDirect3D9Ex_Release(p)
#define IDirect3DVertexShader9_AddRef(p)
#define S_PRESENT_OCCLUDED
#define D3DCREATE_ADAPTERGROUP_DEVICE
#define IDirect3DVertexDeclaration9_AddRef(p)
#define IDirect3DVertexDeclaration9_Release(p)
#define IDirect3DVertexBuffer9_AddRef(p)
#define IDirect3DSurface9_AddRef(p)
#define IDirect3DDevice9Ex_AddRef(p)
#define IDirect3DBaseTexture9_Release(p)
#define IDirect3DBaseTexture9_AddRef(p)
#define IDirect3D9Ex_AddRef(p)
#define IDirect3DPixelShader9_AddRef(p)
#define D3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER
#define D3DDEVCAPS2_ADAPTIVETESSNPATCH
#define D3DDEVCAPS2_ADAPTIVETESSRTPATCH
#define D3DPRASTERCAPS_SLOPESCALEDEPTHBIAS
#define D3DPTEXTURECAPS_NOPROJECTEDBUMPENV
#define D3DDEVCAPS2_DMAPNPATCH
#define D3DPRASTERCAPS_SCISSORTEST
#define D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES
#define D3DPRASTERCAPS_DEPTHBIAS
#define D3DDEVCAPS2_STREAMOFFSET
#define D3DDEVCAPS2_PRESAMPLEDDMAPNPATCH
#define D3DPTFILTERCAPS_MINFGAUSSIANQUAD
#define D3DPTFILTERCAPS_MINFPYRAMIDALQUAD
#define D3DCAPS2_CANAUTOGENMIPMAP
#define D3DPRASTERCAPS_MULTISAMPLE_TOGGLE
#define D3DPTFILTERCAPS_MAGFGAUSSIANQUAD
#define D3DVTXPCAPS_TEXGEN_SPHEREMAP
#define D3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET
#define D3DPTFILTERCAPS_MAGFPYRAMIDALQUAD
enum _D3DQUERYTYPE D3DQUERYTYPE
#define D3D_MAX_SIMULTANEOUS_RENDERTARGETS
enum _D3DSAMPLERSTATETYPE D3DSAMPLERSTATETYPE
enum _D3DCOMPOSERECTSOP D3DCOMPOSERECTSOP
#define D3DVERTEXTEXTURESAMPLER0
#define D3DLOCK_DONOTWAIT
#define D3DERR_INVALIDCALL
HRESULT indexbuffer_init(struct d3d8_indexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool)
HRESULT vertexbuffer_init(struct d3d8_vertexbuffer *buffer, struct d3d8_device *device, UINT size, DWORD usage, DWORD fvf, D3DPOOL pool)
static D3DSWAPEFFECT d3dswapeffect_from_wined3dswapeffect(enum wined3d_swap_effect effect)
static void CDECL device_parent_mode_changed(struct wined3d_device_parent *device_parent)
static struct d3d8_device * device_from_device_parent(struct wined3d_device_parent *device_parent)
static HRESULT CDECL reset_enum_callback(struct wined3d_resource *resource)
static void present_parameters_from_wined3d_swapchain_desc(D3DPRESENT_PARAMETERS *present_parameters, const struct wined3d_swapchain_desc *swapchain_desc)
static BOOL wined3d_swapchain_desc_from_present_parameters(struct wined3d_swapchain_desc *swapchain_desc, const D3DPRESENT_PARAMETERS *present_parameters)
static UINT vertex_count_from_primitive_count(D3DPRIMITIVETYPE primitive_type, UINT primitive_count)
HRESULT device_init(struct d3d8_device *device, struct d3d8 *parent, struct wined3d *wined3d, UINT adapter, D3DDEVTYPE device_type, HWND focus_window, DWORD flags, D3DPRESENT_PARAMETERS *parameters)
D3DFORMAT d3dformat_from_wined3dformat(enum wined3d_format_id format)
static void CDECL device_parent_activate(struct wined3d_device_parent *device_parent, BOOL activate)
static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent *device_parent, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, void **parent, const struct wined3d_parent_ops **parent_ops)
static HRESULT CDECL device_parent_volume_created(struct wined3d_device_parent *device_parent, struct wined3d_texture *wined3d_texture, unsigned int sub_resource_idx, void **parent, const struct wined3d_parent_ops **parent_ops)
static void setup_fpu(void)
unsigned int wined3dmapflags_from_d3dmapflags(unsigned int flags)
static HRESULT CDECL device_parent_create_swapchain(struct wined3d_device_parent *device_parent, struct wined3d_swapchain_desc *desc, struct wined3d_swapchain **swapchain)
static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_device_parent *device_parent, void *container_parent, const struct wined3d_resource_desc *desc, DWORD texture_flags, struct wined3d_texture **texture)
static void CDECL device_parent_wined3d_device_created(struct wined3d_device_parent *device_parent, struct wined3d_device *device)
static enum wined3d_swap_effect wined3dswapeffect_from_d3dswapeffect(D3DSWAPEFFECT effect)
void d3dcaps_from_wined3dcaps(D3DCAPS8 *caps, const WINED3DCAPS *wined3d_caps)
enum wined3d_format_id wined3dformat_from_d3dformat(D3DFORMAT format)
struct d3d9_indexbuffer * unsafe_impl_from_IDirect3DIndexBuffer9(IDirect3DIndexBuffer9 *iface)
struct d3d9_vertexbuffer * unsafe_impl_from_IDirect3DVertexBuffer9(IDirect3DVertexBuffer9 *iface)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_PresentEx(IDirect3DDevice9Ex *iface, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region, DWORD flags)
static HRESULT WINAPI d3d9_device_SetMaximumFrameLatency(IDirect3DDevice9Ex *iface, UINT max_latency)
static HRESULT WINAPI d3d9_device_SetScissorRect(IDirect3DDevice9Ex *iface, const RECT *rect)
static HRESULT WINAPI d3d9_device_SetGPUThreadPriority(IDirect3DDevice9Ex *iface, INT priority)
static HRESULT WINAPI d3d9_device_SetDepthStencilSurface(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *depth_stencil)
static HRESULT WINAPI d3d9_device_GetDeviceCaps(IDirect3DDevice9Ex *iface, D3DCAPS9 *caps)
static HRESULT WINAPI d3d9_device_SetTransform(IDirect3DDevice9Ex *iface, D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix)
static HRESULT WINAPI d3d9_device_GetLight(IDirect3DDevice9Ex *iface, DWORD index, D3DLIGHT9 *light)
static HRESULT WINAPI d3d9_device_StretchRect(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *src_surface, const RECT *src_rect, IDirect3DSurface9 *dst_surface, const RECT *dst_rect, D3DTEXTUREFILTERTYPE filter)
static HRESULT WINAPI d3d9_device_GetClipStatus(IDirect3DDevice9Ex *iface, D3DCLIPSTATUS9 *clip_status)
static HRESULT WINAPI d3d9_device_DrawIndexedPrimitive(IDirect3DDevice9Ex *iface, D3DPRIMITIVETYPE primitive_type, INT base_vertex_idx, UINT min_vertex_idx, UINT vertex_count, UINT start_idx, UINT primitive_count)
static float WINAPI d3d9_device_GetNPatchMode(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_DeletePatch(IDirect3DDevice9Ex *iface, UINT handle)
static HRESULT WINAPI d3d9_device_SetVertexDeclaration(IDirect3DDevice9Ex *iface, IDirect3DVertexDeclaration9 *declaration)
static HRESULT WINAPI d3d9_device_GetLightEnable(IDirect3DDevice9Ex *iface, DWORD index, BOOL *enable)
static HRESULT WINAPI d3d9_device_SetPixelShader(IDirect3DDevice9Ex *iface, IDirect3DPixelShader9 *shader)
static HRESULT WINAPI d3d9_device_SetVertexShaderConstantI(IDirect3DDevice9Ex *iface, UINT reg_idx, const int *data, UINT count)
static HRESULT WINAPI d3d9_device_GetClipPlane(IDirect3DDevice9Ex *iface, DWORD index, float *plane)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_Reset(IDirect3DDevice9Ex *iface, D3DPRESENT_PARAMETERS *present_parameters)
static HRESULT WINAPI d3d9_device_SetStreamSourceFreq(IDirect3DDevice9Ex *iface, UINT stream_idx, UINT freq)
static HRESULT WINAPI d3d9_device_GetVertexShader(IDirect3DDevice9Ex *iface, IDirect3DVertexShader9 **shader)
static HRESULT WINAPI d3d9_device_SetNPatchMode(IDirect3DDevice9Ex *iface, float segment_count)
static HRESULT WINAPI d3d9_device_CreateVolumeTexture(IDirect3DDevice9Ex *iface, UINT width, UINT height, UINT depth, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DVolumeTexture9 **texture, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_CreateVertexShader(IDirect3DDevice9Ex *iface, const DWORD *byte_code, IDirect3DVertexShader9 **shader)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_ResetEx(IDirect3DDevice9Ex *iface, D3DPRESENT_PARAMETERS *present_parameters, D3DDISPLAYMODEEX *mode)
static const struct IDirect3DDevice9ExVtbl d3d9_device_vtbl
static HRESULT WINAPI d3d9_device_GetStreamSourceFreq(IDirect3DDevice9Ex *iface, UINT stream_idx, UINT *freq)
static HRESULT WINAPI d3d9_device_GetFVF(IDirect3DDevice9Ex *iface, DWORD *fvf)
static HRESULT WINAPI d3d9_device_SetViewport(IDirect3DDevice9Ex *iface, const D3DVIEWPORT9 *viewport)
static HRESULT WINAPI d3d9_device_BeginScene(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_GetPixelShaderConstantB(IDirect3DDevice9Ex *iface, UINT reg_idx, BOOL *data, UINT count)
static HRESULT WINAPI d3d9_device_GetGPUThreadPriority(IDirect3DDevice9Ex *iface, INT *priority)
static HRESULT WINAPI d3d9_device_CreateVertexDeclaration(IDirect3DDevice9Ex *iface, const D3DVERTEXELEMENT9 *elements, IDirect3DVertexDeclaration9 **declaration)
static HRESULT WINAPI d3d9_device_GetViewport(IDirect3DDevice9Ex *iface, D3DVIEWPORT9 *viewport)
static HRESULT WINAPI d3d9_device_CreateOffscreenPlainSurfaceEx(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, IDirect3DSurface9 **surface, HANDLE *shared_handle, DWORD usage)
static HRESULT WINAPI d3d9_device_GetPixelShaderConstantF(IDirect3DDevice9Ex *iface, UINT reg_idx, float *data, UINT count)
static HRESULT WINAPI d3d9_device_GetRasterStatus(IDirect3DDevice9Ex *iface, UINT swapchain, D3DRASTER_STATUS *raster_status)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetSamplerState(IDirect3DDevice9Ex *iface, DWORD sampler, D3DSAMPLERSTATETYPE state, DWORD value)
static HRESULT WINAPI d3d9_device_TestCooperativeLevel(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_GetMaterial(IDirect3DDevice9Ex *iface, D3DMATERIAL9 *material)
static HRESULT WINAPI d3d9_device_GetDisplayModeEx(IDirect3DDevice9Ex *iface, UINT swapchain_idx, D3DDISPLAYMODEEX *mode, D3DDISPLAYROTATION *rotation)
static UINT WINAPI d3d9_device_GetNumberOfSwapChains(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_CreateStateBlock(IDirect3DDevice9Ex *iface, D3DSTATEBLOCKTYPE type, IDirect3DStateBlock9 **stateblock)
static HRESULT WINAPI d3d9_device_SetClipStatus(IDirect3DDevice9Ex *iface, const D3DCLIPSTATUS9 *clip_status)
static HRESULT WINAPI d3d9_device_GetVertexShaderConstantB(IDirect3DDevice9Ex *iface, UINT reg_idx, BOOL *data, UINT count)
static HRESULT WINAPI d3d9_device_SetPixelShaderConstantB(IDirect3DDevice9Ex *iface, UINT reg_idx, const BOOL *data, UINT count)
static HRESULT WINAPI d3d9_device_GetFrontBufferData(IDirect3DDevice9Ex *iface, UINT swapchain, IDirect3DSurface9 *dst_surface)
static HRESULT WINAPI d3d9_device_DrawIndexedPrimitiveUP(IDirect3DDevice9Ex *iface, D3DPRIMITIVETYPE primitive_type, UINT min_vertex_idx, UINT vertex_count, UINT primitive_count, const void *index_data, D3DFORMAT index_format, const void *vertex_data, UINT vertex_stride)
static HRESULT WINAPI d3d9_device_CreateQuery(IDirect3DDevice9Ex *iface, D3DQUERYTYPE type, IDirect3DQuery9 **query)
static HRESULT WINAPI d3d9_device_GetDirect3D(IDirect3DDevice9Ex *iface, IDirect3D9 **d3d9)
static HRESULT WINAPI d3d9_device_GetCurrentTexturePalette(IDirect3DDevice9Ex *iface, UINT *palette_idx)
static HRESULT WINAPI d3d9_device_SetPaletteEntries(IDirect3DDevice9Ex *iface, UINT palette_idx, const PALETTEENTRY *entries)
static HRESULT WINAPI d3d9_device_SetMaterial(IDirect3DDevice9Ex *iface, const D3DMATERIAL9 *material)
static HRESULT WINAPI d3d9_device_UpdateTexture(IDirect3DDevice9Ex *iface, IDirect3DBaseTexture9 *src_texture, IDirect3DBaseTexture9 *dst_texture)
static HRESULT d3d9_device_prepare_index_buffer(struct d3d9_device *device, UINT min_size)
BOOL is_gdi_compat_wined3dformat(enum wined3d_format_id format)
static HRESULT WINAPI d3d9_device_GetBackBuffer(IDirect3DDevice9Ex *iface, UINT swapchain, UINT backbuffer_idx, D3DBACKBUFFER_TYPE backbuffer_type, IDirect3DSurface9 **backbuffer)
static HRESULT WINAPI d3d9_device_CheckDeviceState(IDirect3DDevice9Ex *iface, HWND dst_window)
static void WINAPI d3d9_device_SetCursorPosition(IDirect3DDevice9Ex *iface, int x, int y, DWORD flags)
static HRESULT WINAPI d3d9_device_MultiplyTransform(IDirect3DDevice9Ex *iface, D3DTRANSFORMSTATETYPE state, const D3DMATRIX *matrix)
static HRESULT WINAPI d3d9_device_GetDisplayMode(IDirect3DDevice9Ex *iface, UINT swapchain, D3DDISPLAYMODE *mode)
static HRESULT WINAPI d3d9_device_GetScissorRect(IDirect3DDevice9Ex *iface, RECT *rect)
static HRESULT WINAPI d3d9_device_DrawPrimitive(IDirect3DDevice9Ex *iface, D3DPRIMITIVETYPE primitive_type, UINT start_vertex, UINT primitive_count)
static BOOL WINAPI d3d9_device_GetSoftwareVertexProcessing(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_SetDialogBoxMode(IDirect3DDevice9Ex *iface, BOOL enable)
static HRESULT WINAPI d3d9_device_GetRenderState(IDirect3DDevice9Ex *iface, D3DRENDERSTATETYPE state, DWORD *value)
static HRESULT WINAPI d3d9_device_CreateRenderTargetEx(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable, IDirect3DSurface9 **surface, HANDLE *shared_handle, DWORD usage)
static void d3d9_generate_auto_mipmaps(struct d3d9_device *device)
static HRESULT WINAPI d3d9_device_ComposeRects(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *src_surface, IDirect3DSurface9 *dst_surface, IDirect3DVertexBuffer9 *src_descs, UINT rect_count, IDirect3DVertexBuffer9 *dst_descs, D3DCOMPOSERECTSOP operation, INT offset_x, INT offset_y)
static HRESULT WINAPI d3d9_device_SetVertexShaderConstantB(IDirect3DDevice9Ex *iface, UINT reg_idx, const BOOL *data, UINT count)
const struct wined3d_parent_ops d3d9_null_wined3d_parent_ops
static HRESULT WINAPI d3d9_device_DrawPrimitiveUP(IDirect3DDevice9Ex *iface, D3DPRIMITIVETYPE primitive_type, UINT primitive_count, const void *data, UINT stride)
static HRESULT WINAPI d3d9_device_SetIndices(IDirect3DDevice9Ex *iface, IDirect3DIndexBuffer9 *buffer)
static HRESULT WINAPI d3d9_device_GetPixelShaderConstantI(IDirect3DDevice9Ex *iface, UINT reg_idx, int *data, UINT count)
static const struct wined3d_device_parent_ops d3d9_wined3d_device_parent_ops
static HRESULT d3d9_device_prepare_vertex_buffer(struct d3d9_device *device, UINT min_size)
static HRESULT d3d9_device_reset(struct d3d9_device *device, D3DPRESENT_PARAMETERS *present_parameters, D3DDISPLAYMODEEX *mode)
static HRESULT WINAPI d3d9_device_SetTexture(IDirect3DDevice9Ex *iface, DWORD stage, IDirect3DBaseTexture9 *texture)
static BOOL WINAPI d3d9_device_ShowCursor(IDirect3DDevice9Ex *iface, BOOL show)
static HRESULT WINAPI d3d9_device_SetCurrentTexturePalette(IDirect3DDevice9Ex *iface, UINT palette_idx)
static HRESULT WINAPI d3d9_device_Clear(IDirect3DDevice9Ex *iface, DWORD rect_count, const D3DRECT *rects, DWORD flags, D3DCOLOR color, float z, DWORD stencil)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_GetSwapChain(IDirect3DDevice9Ex *iface, UINT swapchain_idx, IDirect3DSwapChain9 **swapchain)
static HRESULT WINAPI d3d9_device_GetTexture(IDirect3DDevice9Ex *iface, DWORD stage, IDirect3DBaseTexture9 **texture)
static void d3d9_rts_flag_auto_gen_mipmap(struct d3d9_device *device)
static HRESULT WINAPI d3d9_device_CreateDepthStencilSurfaceEx(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL discard, IDirect3DSurface9 **surface, HANDLE *shared_handle, DWORD usage)
static HRESULT WINAPI d3d9_device_GetCreationParameters(IDirect3DDevice9Ex *iface, D3DDEVICE_CREATION_PARAMETERS *parameters)
static HRESULT WINAPI d3d9_device_CreateVertexBuffer(IDirect3DDevice9Ex *iface, UINT size, DWORD usage, DWORD fvf, D3DPOOL pool, IDirect3DVertexBuffer9 **buffer, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_SetTextureStageState(IDirect3DDevice9Ex *iface, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD value)
static HRESULT WINAPI d3d9_device_UpdateSurface(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *src_surface, const RECT *src_rect, IDirect3DSurface9 *dst_surface, const POINT *dst_point)
static HRESULT WINAPI d3d9_device_BeginStateBlock(IDirect3DDevice9Ex *iface)
static ULONG WINAPI DECLSPEC_HOTPATCH d3d9_device_Release(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_CreateCubeTexture(IDirect3DDevice9Ex *iface, UINT edge_length, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DCubeTexture9 **texture, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_GetRenderTarget(IDirect3DDevice9Ex *iface, DWORD idx, IDirect3DSurface9 **surface)
static HRESULT WINAPI d3d9_device_SetCursorProperties(IDirect3DDevice9Ex *iface, UINT hotspot_x, UINT hotspot_y, IDirect3DSurface9 *bitmap)
static HRESULT WINAPI d3d9_device_GetStreamSource(IDirect3DDevice9Ex *iface, UINT stream_idx, IDirect3DVertexBuffer9 **buffer, UINT *offset, UINT *stride)
static HRESULT WINAPI d3d9_device_SetLight(IDirect3DDevice9Ex *iface, DWORD index, const D3DLIGHT9 *light)
static HRESULT WINAPI d3d9_device_SetSoftwareVertexProcessing(IDirect3DDevice9Ex *iface, BOOL software)
static HRESULT WINAPI d3d9_device_EndStateBlock(IDirect3DDevice9Ex *iface, IDirect3DStateBlock9 **stateblock)
static HRESULT WINAPI d3d9_device_CreatePixelShader(IDirect3DDevice9Ex *iface, const DWORD *byte_code, IDirect3DPixelShader9 **shader)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_Present(IDirect3DDevice9Ex *iface, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, const RGNDATA *dirty_region)
static void STDMETHODCALLTYPE d3d9_null_wined3d_object_destroyed(void *parent)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain)
static HRESULT WINAPI d3d9_device_GetVertexDeclaration(IDirect3DDevice9Ex *iface, IDirect3DVertexDeclaration9 **declaration)
static HRESULT WINAPI d3d9_device_GetPixelShader(IDirect3DDevice9Ex *iface, IDirect3DPixelShader9 **shader)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_EndScene(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_SetFVF(IDirect3DDevice9Ex *iface, DWORD fvf)
static HRESULT WINAPI d3d9_device_CheckResourceResidency(IDirect3DDevice9Ex *iface, IDirect3DResource9 **resources, UINT32 resource_count)
static HRESULT WINAPI d3d9_device_SetVertexShader(IDirect3DDevice9Ex *iface, IDirect3DVertexShader9 *shader)
static ULONG WINAPI d3d9_device_AddRef(IDirect3DDevice9Ex *iface)
static HRESULT d3d9_device_create_surface(struct d3d9_device *device, UINT width, UINT height, D3DFORMAT format, DWORD flags, IDirect3DSurface9 **surface, UINT usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, void *user_mem)
static HRESULT WINAPI d3d9_device_SetConvolutionMonoKernel(IDirect3DDevice9Ex *iface, UINT width, UINT height, float *rows, float *columns)
static HRESULT WINAPI d3d9_device_GetSamplerState(IDirect3DDevice9Ex *iface, DWORD sampler, D3DSAMPLERSTATETYPE state, DWORD *value)
static HRESULT WINAPI d3d9_device_CreateIndexBuffer(IDirect3DDevice9Ex *iface, UINT size, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DIndexBuffer9 **buffer, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_WaitForVBlank(IDirect3DDevice9Ex *iface, UINT swapchain_idx)
static void WINAPI d3d9_device_GetGammaRamp(IDirect3DDevice9Ex *iface, UINT swapchain, D3DGAMMARAMP *ramp)
static HRESULT WINAPI d3d9_device_GetTextureStageState(IDirect3DDevice9Ex *iface, DWORD stage, D3DTEXTURESTAGESTATETYPE state, DWORD *value)
static HRESULT WINAPI d3d9_device_ProcessVertices(IDirect3DDevice9Ex *iface, UINT src_start_idx, UINT dst_idx, UINT vertex_count, IDirect3DVertexBuffer9 *dst_buffer, IDirect3DVertexDeclaration9 *declaration, DWORD flags)
static HRESULT WINAPI d3d9_device_GetPaletteEntries(IDirect3DDevice9Ex *iface, UINT palette_idx, PALETTEENTRY *entries)
static HRESULT WINAPI d3d9_device_SetPixelShaderConstantI(IDirect3DDevice9Ex *iface, UINT reg_idx, const int *data, UINT count)
static HRESULT WINAPI d3d9_device_CreateRenderTarget(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL lockable, IDirect3DSurface9 **surface, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_CreateDepthStencilSurface(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality, BOOL discard, IDirect3DSurface9 **surface, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_QueryInterface(IDirect3DDevice9Ex *iface, REFIID riid, void **out)
static struct wined3d_vertex_declaration * device_get_fvf_declaration(struct d3d9_device *device, DWORD fvf)
static HRESULT WINAPI d3d9_device_GetVertexShaderConstantI(IDirect3DDevice9Ex *iface, UINT reg_idx, int *data, UINT count)
static HRESULT WINAPI d3d9_device_SetClipPlane(IDirect3DDevice9Ex *iface, DWORD index, const float *plane)
static HRESULT WINAPI d3d9_device_SetPixelShaderConstantF(IDirect3DDevice9Ex *iface, UINT reg_idx, const float *data, UINT count)
static HRESULT WINAPI d3d9_device_GetTransform(IDirect3DDevice9Ex *iface, D3DTRANSFORMSTATETYPE state, D3DMATRIX *matrix)
static HRESULT WINAPI d3d9_device_GetVertexShaderConstantF(IDirect3DDevice9Ex *iface, UINT reg_idx, float *data, UINT count)
static HRESULT WINAPI d3d9_device_CreateTexture(IDirect3DDevice9Ex *iface, UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool, IDirect3DTexture9 **texture, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_LightEnable(IDirect3DDevice9Ex *iface, DWORD index, BOOL enable)
static HRESULT d3d9_device_get_swapchains(struct d3d9_device *device)
static HRESULT WINAPI d3d9_device_DrawTriPatch(IDirect3DDevice9Ex *iface, UINT handle, const float *segment_count, const D3DTRIPATCH_INFO *patch_info)
static HRESULT WINAPI d3d9_device_GetDepthStencilSurface(IDirect3DDevice9Ex *iface, IDirect3DSurface9 **depth_stencil)
static HRESULT WINAPI d3d9_device_GetIndices(IDirect3DDevice9Ex *iface, IDirect3DIndexBuffer9 **buffer)
static HRESULT WINAPI d3d9_device_SetStreamSource(IDirect3DDevice9Ex *iface, UINT stream_idx, IDirect3DVertexBuffer9 *buffer, UINT offset, UINT stride)
static void WINAPI d3d9_device_SetGammaRamp(IDirect3DDevice9Ex *iface, UINT swapchain, DWORD flags, const D3DGAMMARAMP *ramp)
static HRESULT WINAPI d3d9_device_ValidateDevice(IDirect3DDevice9Ex *iface, DWORD *pass_count)
static UINT WINAPI d3d9_device_GetAvailableTextureMem(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_CreateOffscreenPlainSurface(IDirect3DDevice9Ex *iface, UINT width, UINT height, D3DFORMAT format, D3DPOOL pool, IDirect3DSurface9 **surface, HANDLE *shared_handle)
static HRESULT WINAPI d3d9_device_GetMaximumFrameLatency(IDirect3DDevice9Ex *iface, UINT *max_latency)
static HRESULT WINAPI d3d9_device_SetRenderTarget(IDirect3DDevice9Ex *iface, DWORD idx, IDirect3DSurface9 *surface)
static HRESULT WINAPI d3d9_device_DrawRectPatch(IDirect3DDevice9Ex *iface, UINT handle, const float *segment_count, const D3DRECTPATCH_INFO *patch_info)
static HRESULT WINAPI d3d9_device_GetRenderTargetData(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *render_target, IDirect3DSurface9 *dst_surface)
static HRESULT WINAPI d3d9_device_SetVertexShaderConstantF(IDirect3DDevice9Ex *iface, UINT reg_idx, const float *data, UINT count)
static HRESULT WINAPI DECLSPEC_HOTPATCH d3d9_device_SetRenderState(IDirect3DDevice9Ex *iface, D3DRENDERSTATETYPE state, DWORD value)
static HRESULT WINAPI d3d9_device_EvictManagedResources(IDirect3DDevice9Ex *iface)
static HRESULT WINAPI d3d9_device_ColorFill(IDirect3DDevice9Ex *iface, IDirect3DSurface9 *surface, const RECT *rect, D3DCOLOR color)
HRESULT CDECL wined3d_buffer_create(struct wined3d_device *device, const struct wined3d_buffer_desc *desc, const struct wined3d_sub_resource_data *data, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_buffer **buffer)
void *CDECL wined3d_buffer_get_parent(const struct wined3d_buffer *buffer)
ULONG CDECL wined3d_buffer_decref(struct wined3d_buffer *buffer)
struct wined3d_resource *CDECL wined3d_buffer_get_resource(struct wined3d_buffer *buffer)
HRESULT CDECL wined3d_device_set_rendertarget_view(struct wined3d_device *device, unsigned int view_idx, struct wined3d_rendertarget_view *view, BOOL set_viewport)
HRESULT CDECL wined3d_device_set_light_enable(struct wined3d_device *device, UINT light_idx, BOOL enable)
void CDECL wined3d_device_set_vertex_declaration(struct wined3d_device *device, struct wined3d_vertex_declaration *declaration)
HRESULT CDECL wined3d_device_set_vs_consts_f(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const struct wined3d_vec4 *constants)
void CDECL wined3d_device_set_software_vertex_processing(struct wined3d_device *device, BOOL software)
HRESULT CDECL wined3d_device_set_stream_source_freq(struct wined3d_device *device, UINT stream_idx, UINT divider)
struct wined3d_rendertarget_view *CDECL wined3d_device_get_rendertarget_view(const struct wined3d_device *device, unsigned int view_idx)
HRESULT CDECL wined3d_device_get_stream_source_freq(const struct wined3d_device *device, UINT stream_idx, UINT *divider)
void CDECL wined3d_device_get_creation_parameters(const struct wined3d_device *device, struct wined3d_device_creation_parameters *parameters)
BOOL CDECL wined3d_device_get_software_vertex_processing(const struct wined3d_device *device)
void CDECL wined3d_device_setup_fullscreen_window(struct wined3d_device *device, HWND window, UINT w, UINT h)
void CDECL wined3d_device_set_base_vertex_index(struct wined3d_device *device, INT base_index)
void CDECL wined3d_device_set_pixel_shader(struct wined3d_device *device, struct wined3d_shader *shader)
HRESULT CDECL wined3d_device_acquire_focus_window(struct wined3d_device *device, HWND window)
HRESULT CDECL wined3d_device_get_clip_status(const struct wined3d_device *device, struct wined3d_clip_status *clip_status)
void CDECL wined3d_device_set_material(struct wined3d_device *device, const struct wined3d_material *material)
void CDECL wined3d_device_set_transform(struct wined3d_device *device, enum wined3d_transform_state d3dts, const struct wined3d_matrix *matrix)
void CDECL wined3d_device_set_scissor_rect(struct wined3d_device *device, const RECT *rect)
HRESULT CDECL wined3d_device_get_vs_consts_b(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, BOOL *constants)
void CDECL wined3d_device_set_vertex_shader(struct wined3d_device *device, struct wined3d_shader *shader)
HRESULT CDECL wined3d_device_clear(struct wined3d_device *device, DWORD rect_count, const RECT *rects, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil)
HRESULT CDECL wined3d_device_set_ps_consts_f(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const struct wined3d_vec4 *constants)
DWORD CDECL wined3d_device_get_render_state(const struct wined3d_device *device, enum wined3d_render_state state)
void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
HRESULT CDECL wined3d_device_draw_indexed_primitive(struct wined3d_device *device, UINT start_idx, UINT index_count)
HRESULT CDECL wined3d_device_copy_sub_resource_region(struct wined3d_device *device, struct wined3d_resource *dst_resource, unsigned int dst_sub_resource_idx, unsigned int dst_x, unsigned int dst_y, unsigned int dst_z, struct wined3d_resource *src_resource, unsigned int src_sub_resource_idx, const struct wined3d_box *src_box)
HRESULT CDECL wined3d_device_set_clip_status(struct wined3d_device *device, const struct wined3d_clip_status *clip_status)
HRESULT CDECL wined3d_device_uninit_3d(struct wined3d_device *device)
HRESULT CDECL wined3d_device_begin_stateblock(struct wined3d_device *device)
HRESULT CDECL wined3d_device_get_vs_consts_i(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, struct wined3d_ivec4 *constants)
HRESULT CDECL wined3d_device_process_vertices(struct wined3d_device *device, UINT src_start_idx, UINT dst_idx, UINT vertex_count, struct wined3d_buffer *dst_buffer, const struct wined3d_vertex_declaration *declaration, DWORD flags, DWORD dst_fvf)
HRESULT CDECL wined3d_device_set_texture(struct wined3d_device *device, UINT stage, struct wined3d_texture *texture)
UINT CDECL wined3d_device_get_available_texture_mem(const struct wined3d_device *device)
void CDECL wined3d_device_multiply_transform(struct wined3d_device *device, enum wined3d_transform_state state, const struct wined3d_matrix *matrix)
struct wined3d_shader *CDECL wined3d_device_get_pixel_shader(const struct wined3d_device *device)
HRESULT CDECL wined3d_device_clear_rendertarget_view(struct wined3d_device *device, struct wined3d_rendertarget_view *view, const RECT *rect, DWORD flags, const struct wined3d_color *color, float depth, DWORD stencil)
void CDECL wined3d_device_get_scissor_rect(const struct wined3d_device *device, RECT *rect)
ULONG CDECL wined3d_device_decref(struct wined3d_device *device)
HRESULT CDECL wined3d_device_get_stream_source(const struct wined3d_device *device, UINT stream_idx, struct wined3d_buffer **buffer, UINT *offset, UINT *stride)
HRESULT CDECL wined3d_device_get_vs_consts_f(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, struct wined3d_vec4 *constants)
HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, const struct wined3d_swapchain_desc *swapchain_desc, const struct wined3d_display_mode *mode, wined3d_device_reset_cb callback, BOOL reset_state)
DWORD CDECL wined3d_device_get_sampler_state(const struct wined3d_device *device, UINT sampler_idx, enum wined3d_sampler_state state)
HRESULT CDECL wined3d_device_set_cursor_properties(struct wined3d_device *device, UINT x_hotspot, UINT y_hotspot, struct wined3d_texture *texture, unsigned int sub_resource_idx)
HRESULT CDECL wined3d_device_update_texture(struct wined3d_device *device, struct wined3d_texture *src_texture, struct wined3d_texture *dst_texture)
HRESULT CDECL wined3d_device_set_dialog_box_mode(struct wined3d_device *device, BOOL enable_dialogs)
void CDECL wined3d_device_set_multithreaded(struct wined3d_device *device)
float CDECL wined3d_device_get_npatch_mode(const struct wined3d_device *device)
HRESULT CDECL wined3d_device_get_clip_plane(const struct wined3d_device *device, UINT plane_idx, struct wined3d_vec4 *plane)
HRESULT CDECL wined3d_device_end_scene(struct wined3d_device *device)
HRESULT CDECL wined3d_device_get_ps_consts_i(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, struct wined3d_ivec4 *constants)
void CDECL wined3d_device_set_sampler_state(struct wined3d_device *device, UINT sampler_idx, enum wined3d_sampler_state state, DWORD value)
BOOL CDECL wined3d_device_show_cursor(struct wined3d_device *device, BOOL show)
void CDECL wined3d_device_set_index_buffer(struct wined3d_device *device, struct wined3d_buffer *buffer, enum wined3d_format_id format_id, unsigned int offset)
HRESULT CDECL wined3d_device_get_light(const struct wined3d_device *device, UINT light_idx, struct wined3d_light *light)
struct wined3d_buffer *CDECL wined3d_device_get_index_buffer(const struct wined3d_device *device, enum wined3d_format_id *format, unsigned int *offset)
void CDECL wined3d_device_set_depth_stencil_view(struct wined3d_device *device, struct wined3d_rendertarget_view *view)
HRESULT CDECL wined3d_device_set_light(struct wined3d_device *device, UINT light_idx, const struct wined3d_light *light)
HRESULT CDECL wined3d_device_draw_primitive(struct wined3d_device *device, UINT start_vertex, UINT vertex_count)
void CDECL wined3d_device_release_focus_window(struct wined3d_device *device)
void CDECL wined3d_device_set_viewport(struct wined3d_device *device, const struct wined3d_viewport *viewport)
HRESULT CDECL wined3d_device_validate_device(const struct wined3d_device *device, DWORD *num_passes)
HRESULT CDECL wined3d_device_set_vs_consts_i(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const struct wined3d_ivec4 *constants)
struct wined3d_rendertarget_view *CDECL wined3d_device_get_depth_stencil_view(const struct wined3d_device *device)
void CDECL wined3d_device_set_texture_stage_state(struct wined3d_device *device, UINT stage, enum wined3d_texture_stage_state state, DWORD value)
void CDECL wined3d_device_set_render_state(struct wined3d_device *device, enum wined3d_render_state state, DWORD value)
void CDECL wined3d_device_set_cursor_position(struct wined3d_device *device, int x_screen_space, int y_screen_space, DWORD flags)
HRESULT CDECL wined3d_device_set_clip_plane(struct wined3d_device *device, UINT plane_idx, const struct wined3d_vec4 *plane)
void CDECL wined3d_device_set_gamma_ramp(const struct wined3d_device *device, UINT swapchain_idx, DWORD flags, const struct wined3d_gamma_ramp *ramp)
struct wined3d_swapchain *CDECL wined3d_device_get_swapchain(const struct wined3d_device *device, UINT swapchain_idx)
void CDECL wined3d_device_set_primitive_type(struct wined3d_device *device, enum wined3d_primitive_type primitive_type, unsigned int patch_vertex_count)
void CDECL wined3d_device_get_material(const struct wined3d_device *device, struct wined3d_material *material)
HRESULT CDECL wined3d_device_set_ps_consts_i(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const struct wined3d_ivec4 *constants)
HRESULT CDECL wined3d_device_get_ps_consts_b(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, BOOL *constants)
HRESULT CDECL wined3d_device_set_stream_source(struct wined3d_device *device, UINT stream_idx, struct wined3d_buffer *buffer, UINT offset, UINT stride)
void CDECL wined3d_device_get_gamma_ramp(const struct wined3d_device *device, UINT swapchain_idx, struct wined3d_gamma_ramp *ramp)
DWORD CDECL wined3d_device_get_texture_stage_state(const struct wined3d_device *device, UINT stage, enum wined3d_texture_stage_state state)
void CDECL wined3d_device_get_viewport(const struct wined3d_device *device, struct wined3d_viewport *viewport)
struct wined3d_shader *CDECL wined3d_device_get_vertex_shader(const struct wined3d_device *device)
struct wined3d_texture *CDECL wined3d_device_get_texture(const struct wined3d_device *device, UINT stage)
HRESULT CDECL wined3d_device_end_stateblock(struct wined3d_device *device, struct wined3d_stateblock **stateblock)
HRESULT CDECL wined3d_device_get_ps_consts_f(const struct wined3d_device *device, unsigned int start_idx, unsigned int count, struct wined3d_vec4 *constants)
HRESULT CDECL wined3d_device_set_ps_consts_b(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const BOOL *constants)
HRESULT CDECL wined3d_device_get_display_mode(const struct wined3d_device *device, UINT swapchain_idx, struct wined3d_display_mode *mode, enum wined3d_display_rotation *rotation)
HRESULT CDECL wined3d_device_set_npatch_mode(struct wined3d_device *device, float segments)
HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device, struct wined3d_swapchain_desc *swapchain_desc)
UINT CDECL wined3d_device_get_swapchain_count(const struct wined3d_device *device)
HRESULT CDECL wined3d_device_begin_scene(struct wined3d_device *device)
struct wined3d_vertex_declaration *CDECL wined3d_device_get_vertex_declaration(const struct wined3d_device *device)
HRESULT CDECL wined3d_device_get_light_enable(const struct wined3d_device *device, UINT light_idx, BOOL *enable)
HRESULT CDECL wined3d_device_get_raster_status(const struct wined3d_device *device, UINT swapchain_idx, struct wined3d_raster_status *raster_status)
HRESULT CDECL wined3d_device_set_vs_consts_b(struct wined3d_device *device, unsigned int start_idx, unsigned int count, const BOOL *constants)
void CDECL wined3d_device_get_transform(const struct wined3d_device *device, enum wined3d_transform_state state, struct wined3d_matrix *matrix)
HRESULT CDECL wined3d_device_get_device_caps(const struct wined3d_device *device, WINED3DCAPS *caps)
HRESULT CDECL wined3d_resource_unmap(struct wined3d_resource *resource, unsigned int sub_resource_idx)
void *CDECL wined3d_resource_get_parent(const struct wined3d_resource *resource)
void CDECL wined3d_resource_get_desc(const struct wined3d_resource *resource, struct wined3d_resource_desc *desc)
HRESULT CDECL wined3d_resource_map(struct wined3d_resource *resource, unsigned int sub_resource_idx, struct wined3d_map_desc *map_desc, const struct wined3d_box *box, DWORD flags)
void *CDECL wined3d_shader_get_parent(const struct wined3d_shader *shader)
void *CDECL wined3d_texture_get_parent(const struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_get_sub_resource_desc(const struct wined3d_texture *texture, unsigned int sub_resource_idx, struct wined3d_sub_resource_desc *desc)
struct wined3d_texture *__cdecl wined3d_texture_from_resource(struct wined3d_resource *resource)
HRESULT CDECL wined3d_texture_create(struct wined3d_device *device, const struct wined3d_resource_desc *desc, UINT layer_count, UINT level_count, DWORD flags, const struct wined3d_sub_resource_data *data, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_texture **texture)
void *CDECL wined3d_texture_get_sub_resource_parent(struct wined3d_texture *texture, unsigned int sub_resource_idx)
struct wined3d_resource *CDECL wined3d_texture_get_resource(struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_update_desc(struct wined3d_texture *texture, UINT width, UINT height, enum wined3d_format_id format_id, enum wined3d_multisample_type multisample_type, UINT multisample_quality, void *mem, UINT pitch)
ULONG CDECL wined3d_texture_decref(struct wined3d_texture *texture)
HRESULT CDECL wined3d_texture_blt(struct wined3d_texture *dst_texture, unsigned int dst_sub_resource_idx, const RECT *dst_rect, struct wined3d_texture *src_texture, unsigned int src_sub_resource_idx, const RECT *src_rect, DWORD flags, const struct wined3d_blt_fx *fx, enum wined3d_texture_filter_type filter)
void *CDECL wined3d_rendertarget_view_get_sub_resource_parent(const struct wined3d_rendertarget_view *view)
int align(int length, int align)
GLint GLint GLsizei GLsizei GLsizei depth
GLint GLint GLint GLint GLint x
GLuint GLuint GLsizei count
GLuint GLuint GLsizei GLenum type
GLint GLint GLint GLint GLint GLint y
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizeiptr const GLvoid GLenum usage
GLint GLfloat GLint stencil
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint GLenum GLenum GLenum GLint GLuint GLenum GLenum GLfloat GLenum GLfloat GLenum GLint const GLfloat GLenum GLint const GLushort GLint GLint GLsizei GLsizei GLenum GLsizei GLsizei GLenum GLenum const GLvoid GLenum plane
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum light
#define InterlockedCompareExchange
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
static const WCHAR desc[]
static const BYTE ramp[17]
#define IsEqualGUID(rguid1, rguid2)
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")
#define D3DERR_NOTAVAILABLE
#define D3DCREATE_MULTITHREADED
#define D3DERR_DRIVERINTERNALERROR
#define D3DERR_DEVICENOTRESET
#define D3DCREATE_FPU_PRESERVE
#define D3DERR_OUTOFVIDEOMEMORY
#define D3DERR_DEVICELOST
#define DECLSPEC_HOTPATCH
DWORD MaxVertexBlendMatrixIndex
DWORD VertexProcessingCaps
UINT MasterAdapterOrdinal
DWORD StretchRectFilterCaps
DWORD MaxPShaderInstructionsExecuted
UINT AdapterOrdinalInGroup
D3DVSHADERCAPS2_0 VS20Caps
DWORD VolumeTextureAddressCaps
DWORD MaxTextureAspectRatio
float PixelShader1xMaxValue
DWORD VertexShaderVersion
DWORD MaxVertexBlendMatrices
DWORD CubeTextureFilterCaps
DWORD MaxPixelShader30InstructionSlots
DWORD MaxTextureBlendStages
DWORD PresentationIntervals
UINT NumberOfAdaptersInGroup
D3DPSHADERCAPS2_0 PS20Caps
DWORD MaxVertexShader30InstructionSlots
DWORD MaxSimultaneousTextures
DWORD MaxVertexShaderConst
float MaxNpatchTessellationLevel
DWORD MaxVShaderInstructionsExecuted
DWORD VertexTextureFilterCaps
DWORD VolumeTextureFilterCaps
UINT FullScreen_RefreshRateInHz
BOOL EnableAutoDepthStencil
D3DMULTISAMPLE_TYPE MultiSampleType
D3DFORMAT BackBufferFormat
UINT PresentationInterval
D3DFORMAT AutoDepthStencilFormat
INT StaticFlowControlDepth
INT DynamicFlowControlDepth
INT DynamicFlowControlDepth
INT StaticFlowControlDepth
DWORD MaxVertexShader30InstructionSlots
DWORD MaxVertexShaderConst
DWORD MaxTextureAspectRatio
struct wined3d_pixel_shader_caps PS20Caps
DWORD MaxVertexBlendMatrixIndex
DWORD VolumeTextureFilterCaps
UINT MasterAdapterOrdinal
float MaxNpatchTessellationLevel
UINT AdapterOrdinalInGroup
DWORD StretchRectFilterCaps
UINT NumberOfAdaptersInGroup
DWORD CubeTextureFilterCaps
float PixelShader1xMaxValue
struct wined3d_vertex_shader_caps VS20Caps
DWORD MaxVShaderInstructionsExecuted
DWORD VertexProcessingCaps
DWORD VolumeTextureAddressCaps
DWORD MaxTextureBlendStages
DWORD MaxVertexBlendMatrices
enum wined3d_device_type DeviceType
DWORD MaxSimultaneousTextures
DWORD VertexTextureFilterCaps
DWORD VertexShaderVersion
DWORD PresentationIntervals
DWORD MaxPixelShader30InstructionSlots
DWORD MaxPShaderInstructionsExecuted
struct wined3d_device_parent device_parent
UINT implicit_swapchain_count
enum wined3d_format_id format
struct wined3d_buffer * wined3d_buffer
IDirect3DIndexBuffer9 IDirect3DIndexBuffer9_iface
struct wined3d_shader * wined3d_shader
IDirect3DPixelShader9 IDirect3DPixelShader9_iface
IDirect3DDevice9Ex * parent_device
struct wined3d_texture * wined3d_texture
IDirect3DSurface9 IDirect3DSurface9_iface
struct d3d9_resource resource
struct wined3d_rendertarget_view * wined3d_rtv
struct d3d9_texture * texture
unsigned int sub_resource_idx
IDirect3DSwapChain9Ex IDirect3DSwapChain9Ex_iface
struct wined3d_swapchain * wined3d_swapchain
struct wined3d_texture * wined3d_texture
IDirect3DBaseTexture9 IDirect3DBaseTexture9_iface
IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9_iface
D3DVERTEXELEMENT9 * elements
struct wined3d_vertex_declaration * wined3d_declaration
IDirect3DVertexBuffer9 IDirect3DVertexBuffer9_iface
struct wined3d_buffer * wined3d_buffer
struct wined3d_shader * wined3d_shader
IDirect3DVertexShader9 IDirect3DVertexShader9_iface
unsigned int sub_resource_idx
struct wined3d_vertex_declaration * decl
enum wined3d_format_id format_id
enum wined3d_scanline_ordering scanline_ordering
enum wined3d_format_id format
enum wined3d_multisample_type multisample_type
DWORD multisample_quality
BOOL auto_restore_display_mode
enum wined3d_multisample_type multisample_type
enum wined3d_format_id auto_depth_stencil_format
enum wined3d_format_id backbuffer_format
enum wined3d_swap_effect swap_effect
BOOL enable_auto_depth_stencil
#define CONTAINING_RECORD(address, type, field)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
void d3d9_surface_release_rendertarget_view(struct d3d9_surface *surface, struct wined3d_rendertarget_view *rtv) DECLSPEC_HIDDEN
static struct d3d9_device * impl_from_IDirect3DDevice9Ex(IDirect3DDevice9Ex *iface)
HRESULT stateblock_init(struct d3d9_stateblock *stateblock, struct d3d9_device *device, D3DSTATEBLOCKTYPE type, struct wined3d_stateblock *wined3d_stateblock) DECLSPEC_HIDDEN
HRESULT pixelshader_init(struct d3d9_pixelshader *shader, struct d3d9_device *device, const DWORD *byte_code) DECLSPEC_HIDDEN
HRESULT d3d9_vertex_declaration_create(struct d3d9_device *device, const D3DVERTEXELEMENT9 *elements, struct d3d9_vertex_declaration **declaration) DECLSPEC_HIDDEN
HRESULT d3d9_swapchain_create(struct d3d9_device *device, struct wined3d_swapchain_desc *desc, struct d3d9_swapchain **swapchain) DECLSPEC_HIDDEN
struct d3d9_vertex_declaration * unsafe_impl_from_IDirect3DVertexDeclaration9(IDirect3DVertexDeclaration9 *iface) DECLSPEC_HIDDEN
void d3d9_texture_gen_auto_mipmap(struct d3d9_texture *texture) DECLSPEC_HIDDEN
HRESULT query_init(struct d3d9_query *query, struct d3d9_device *device, D3DQUERYTYPE type) DECLSPEC_HIDDEN
struct d3d9_texture * unsafe_impl_from_IDirect3DBaseTexture9(IDirect3DBaseTexture9 *iface) DECLSPEC_HIDDEN
struct d3d9_pixelshader * unsafe_impl_from_IDirect3DPixelShader9(IDirect3DPixelShader9 *iface) DECLSPEC_HIDDEN
HRESULT vdecl_convert_fvf(DWORD FVF, D3DVERTEXELEMENT9 **ppVertexElements) DECLSPEC_HIDDEN
HRESULT vertexshader_init(struct d3d9_vertexshader *shader, struct d3d9_device *device, const DWORD *byte_code) DECLSPEC_HIDDEN
struct d3d9_surface * unsafe_impl_from_IDirect3DSurface9(IDirect3DSurface9 *iface) DECLSPEC_HIDDEN
struct d3d9_device * d3d9_surface_get_device(const struct d3d9_surface *surface) DECLSPEC_HIDDEN
void d3d9_texture_flag_auto_gen_mipmap(struct d3d9_texture *texture) DECLSPEC_HIDDEN
@ D3D9_DEVICE_STATE_NOT_RESET
struct d3d9_vertexshader * unsafe_impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface) DECLSPEC_HIDDEN
struct wined3d_rendertarget_view * d3d9_surface_acquire_rendertarget_view(struct d3d9_surface *surface) DECLSPEC_HIDDEN
#define D3D9_MAX_VERTEX_SHADER_CONSTANTF
HRESULT CDECL wined3d_device_create(struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, HWND focus_window, DWORD flags, BYTE surface_alignment, struct wined3d_device_parent *device_parent, struct wined3d_device **device)
HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapter_idx, enum wined3d_device_type device_type, WINED3DCAPS *caps)
ULONG CDECL wined3d_stateblock_decref(struct wined3d_stateblock *stateblock)
void CDECL wined3d_swapchain_get_desc(const struct wined3d_swapchain *swapchain, struct wined3d_swapchain_desc *desc)
void *CDECL wined3d_swapchain_get_parent(const struct wined3d_swapchain *swapchain)
HRESULT CDECL wined3d_swapchain_present(struct wined3d_swapchain *swapchain, const RECT *src_rect, const RECT *dst_rect, HWND dst_window_override, DWORD swap_interval, DWORD flags)
ULONG CDECL wined3d_swapchain_incref(struct wined3d_swapchain *swapchain)
HRESULT CDECL wined3d_swapchain_get_front_buffer_data(const struct wined3d_swapchain *swapchain, struct wined3d_texture *dst_texture, unsigned int sub_resource_idx)
ULONG CDECL wined3d_vertex_declaration_incref(struct wined3d_vertex_declaration *declaration)
void *CDECL wined3d_vertex_declaration_get_parent(const struct wined3d_vertex_declaration *declaration)
ULONG CDECL wined3d_vertex_declaration_decref(struct wined3d_vertex_declaration *declaration)
#define WINED3DUSAGE_WRITEONLY
#define WINED3DCLEAR_TARGET
#define WINED3D_TEXTURE_CREATE_DISCARD
@ WINED3D_MULTISAMPLE_NONE
#define WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH
@ WINED3D_SWAP_EFFECT_COPY
@ WINED3D_SWAP_EFFECT_SEQUENTIAL
@ WINED3D_SWAP_EFFECT_DISCARD
@ WINED3D_SWAP_EFFECT_OVERLAY
@ WINED3D_SWAP_EFFECT_FLIP_SEQUENTIAL
#define WINED3D_BIND_VERTEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_GPU
#define WINED3D_RESOURCE_ACCESS_CPU
@ WINED3D_RTYPE_TEXTURE_2D
#define WINED3DERR_NOTAVAILABLE
wined3d_texture_stage_state
@ WINED3D_TSS_BUMPENV_LOFFSET
@ WINED3D_TSS_BUMPENV_MAT11
@ WINED3D_TSS_BUMPENV_MAT10
@ WINED3D_TSS_TEXCOORD_INDEX
@ WINED3D_TSS_BUMPENV_MAT01
@ WINED3D_TSS_BUMPENV_LSCALE
@ WINED3D_TSS_BUMPENV_MAT00
@ WINED3D_TSS_TEXTURE_TRANSFORM_FLAGS
#define WINED3DUSAGE_MASK
@ WINED3DFMT_B2G3R3_UNORM
@ WINED3DFMT_B4G4R4A4_UNORM
@ WINED3DFMT_R16G16_UNORM
@ WINED3DFMT_R10G10B10A2_UNORM
@ WINED3DFMT_R8G8_SNORM_Cx
@ WINED3DFMT_R32G32_FLOAT
@ WINED3DFMT_R16G16_SNORM
@ WINED3DFMT_B8G8R8A8_UNORM
@ WINED3DFMT_R8G8B8A8_SNORM
@ WINED3DFMT_S8_UINT_D24_FLOAT
@ WINED3DFMT_D16_LOCKABLE
@ WINED3DFMT_S1_UINT_D15_UNORM
@ WINED3DFMT_B2G3R3A8_UNORM
@ WINED3DFMT_B8G8R8X8_UNORM
@ WINED3DFMT_R8G8B8X8_UNORM
@ WINED3DFMT_B5G5R5X1_UNORM
@ WINED3DFMT_B10G10R10A2_UNORM
@ WINED3DFMT_R16G16B16A16_FLOAT
@ WINED3DFMT_R5G5_SNORM_L6_UNORM
@ WINED3DFMT_B8G8R8_UNORM
@ WINED3DFMT_B5G5R5A1_UNORM
@ WINED3DFMT_R10G10B10_SNORM_A2_UNORM
@ WINED3DFMT_R8G8B8A8_UNORM
@ WINED3DFMT_R16G16B16A16_UNORM
@ WINED3DFMT_R8G8_SNORM_L8X8_UNORM
@ WINED3DFMT_B5G6R5_UNORM
@ WINED3DFMT_S4X4_UINT_D24_UNORM
@ WINED3DFMT_R16G16_FLOAT
@ WINED3DFMT_R32G32B32A32_FLOAT
@ WINED3DFMT_B4G4R4X4_UNORM
@ WINED3DFMT_D24_UNORM_S8_UINT
@ WINED3DFMT_P8_UINT_A8_UNORM
@ WINED3DFMT_R16G16B16A16_SNORM
#define WINED3D_TEXTURE_CREATE_MAPPABLE
static void wined3d_box_set(struct wined3d_box *box, unsigned int left, unsigned int top, unsigned int right, unsigned int bottom, unsigned int front, unsigned int back)
#define WINED3D_RESOURCE_ACCESS_MAP_R
#define WINED3D_MAP_DISCARD
#define WINED3D_MAP_WRITE
#define WINED3DUSAGE_SCRATCH
#define WINED3DUSAGE_RENDERTARGET
#define WINED3D_MAP_NOOVERWRITE
#define WINED3DUSAGE_DYNAMIC
#define WINEDDERR_INVALIDRECT
#define WINED3D_TEXTURE_CREATE_GET_DC
#define WINED3DUSAGE_STATICDECL
#define WINED3DUSAGE_TEXTURE
#define WINED3D_BIND_INDEX_BUFFER
#define WINED3D_RESOURCE_ACCESS_MAP_W
#define WINED3DUSAGE_DEPTHSTENCIL
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
BOOL WINAPI SetRect(_Out_ LPRECT, _In_ int, _In_ int, _In_ int, _In_ int)