Henri Verbeet
97856bcfee
wined3d: Replace wined3d_surface_update_desc() with wined3d_texture_update_desc().
2014-09-29 10:37:35 +02:00
Henri Verbeet
74ab8e8ce9
wined3d: Do not increment the reference count of the returned buffer in wined3d_device_get_stream_source().
...
None of the other getters increment the reference count either.
2014-09-18 13:06:32 +02:00
Henri Verbeet
736b9e1c1c
wined3d: Get rid of wined3d_device_color_fill().
2014-08-22 12:53:26 +02:00
Henri Verbeet
07985a8c38
wined3d: Use rendertarget views for depth/stencil buffers instead of surfaces.
...
I don't think the difference between d3d10 depth/stencil and rendertarget
views is large enough to justify a separate type. Unfortunately that does make
the name "wined3d_rendertarget_view" slightly awkward.
2014-08-22 12:53:11 +02:00
Henri Verbeet
b005ad6f90
wined3d: Use rendertarget views for color output instead of surfaces.
2014-08-21 12:24:42 +02:00
Henri Verbeet
888b278096
d3d9: wined3d_device_get_available_texture_mem() returns a UINT.
2014-08-18 12:47:10 +02:00
Henri Verbeet
d1d48d3194
d3d9: The "forwardReference" field in struct d3d9_surface is always a texture, if set.
2014-08-18 12:47:01 +02:00
Henri Verbeet
c5e8115ee2
d3d9: Volumes are always part of a texture.
2014-08-15 17:04:10 +02:00
Henri Verbeet
ff694bf47d
d3d9: Return E_OUTOFMEMORY on HeapAlloc() failure in device_parent_surface_created().
2014-08-15 17:04:03 +02:00
Henri Verbeet
ae25b1eca5
d3d9: Improve d3d9_device_CheckDeviceState() a little.
2014-06-30 22:04:53 +02:00
Henri Verbeet
d50350886a
d3d9: Check the device status in present calls.
2014-06-27 10:37:39 +02:00
Henri Verbeet
09fda3b805
d3d9: Improve d3d9_device_TestCooperativeLevel().
2014-06-27 10:37:36 +02:00
Stefan Dösinger
96a74e0cf7
d3d9: Introduce a resource structure.
2014-03-24 20:20:15 +01:00
Stefan Dösinger
7f675174c8
d3d9: Make ResetEx and PresentEx hookable.
2014-03-03 17:46:52 +01:00
Frédéric Delanoy
91f2435469
Assorted spelling fixes.
2014-01-09 17:39:59 +01:00
Stefan Dösinger
b91973daa7
wined3d: Merge wined3d_surface_set_mem into wined3d_surface_update_desc .
2014-01-08 20:02:22 +01:00
Stefan Dösinger
58f16ddd4e
d3d9: shared_handle must be NULL in non-ex d3d9.
2013-12-10 17:32:22 +01:00
Stefan Dösinger
62df35c312
d3d9: Implement user memory for offscreen plain surfaces.
2013-12-10 17:32:15 +01:00
Stefan Dösinger
96c7a4d6ca
d3d9: Buffers do not support user memory.
2013-12-10 17:32:09 +01:00
Stefan Dösinger
d9bd9a9a87
d3d9: Volume and cube textures do not support user memory.
2013-12-10 17:32:03 +01:00
Stefan Dösinger
b7b0b7d2e1
d3d9/tests: Test user memory with D3DPOOL_SCRATCH.
2013-12-10 17:31:56 +01:00
Henri Verbeet
15c1a26b55
wined3d: Create volumes inside wined3d.
2013-12-06 13:14:52 +01:00
Henri Verbeet
4b3db52b53
wined3d: Merge the texture creation functions.
2013-11-27 11:30:15 +01:00
Henri Verbeet
afc3d2ab70
wined3d: Create surfaces inside wined3d.
2013-11-15 12:00:26 +01:00
Michael Müller
edad7dea7e
d3d9: Partial implementation of IDirect3DSwapChain9Ex.
2013-09-20 17:03:20 +02:00
Henri Verbeet
1a78667862
wined3d: Allow the first render target to be set to NULL.
...
Note that it still isn't necessarily safe to render in this case, because
there are places where we assume the first render target is always non-NULL in
order to determine e.g. framebuffer dimensions. It's now the responsibility of
the caller to ensure that doesn't happen.
2013-09-12 10:59:18 +02:00
Stefan Dösinger
b7b028ca4b
d3d9/tests: Test blocked texture creation restrictions.
2013-09-06 17:25:08 +02:00
Stefan Dösinger
ac871305f8
wined3d: Store the mipmap level in the volume.
2013-08-22 20:15:18 +02:00
Henri Verbeet
d0c9dbe763
d3d9: Always create textures for surfaces.
2013-08-20 11:50:34 +02:00
Henri Verbeet
4de77fa23f
wined3d: Allow a custom pitch to be specified in wined3d_surface_set_mem().
2013-06-14 11:46:20 +02:00
Henri Verbeet
93b76d9a9c
d3d9: Create textures for swapchain surfaces.
2013-06-06 11:47:22 +02:00
Henri Verbeet
d6bc4fe71a
wined3d: Allow surface flags to be passed to texture creation functions.
2013-06-06 11:47:19 +02:00
Henri Verbeet
13a38e8d5e
wined3d: Pass a wined3d_resource_desc structure to device_parent_create_swapchain_surface().
2013-06-04 10:14:28 +02:00
Henri Verbeet
a4d2660c9b
wined3d: Pass a wined3d_resource_desc structure to device_parent_create_texture_surface().
2013-06-04 10:14:26 +02:00
Michael Stefaniuc
d86ecd4bb4
d3d9: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
2013-02-07 15:48:20 +01:00
Stefan Dösinger
149a85c2e7
d3d: Remove high level patch support.
...
No Windows driver ever exposed this, and no game uses this. The
only application that used this feature is a DirectX 8 SDK sample.
2013-01-25 11:29:41 +01:00
Stefan Dösinger
c57511ce4a
d3d9: Return D3D_OK from the palette setters.
2013-01-14 17:29:59 +01:00
Stefan Dösinger
f3f172ce81
d3d9: Use dynamic buffers for DrawIndexedPrimitiveUP.
2012-12-19 12:53:23 +01:00
Stefan Dösinger
873603f941
d3d9: Use a dynamic buffer for DrawPrimitiveUP.
2012-12-19 12:53:20 +01:00
Henri Verbeet
d0d213f7d1
d3d10core: Implement d3d10_device_IAGetIndexBuffer().
2012-11-21 13:25:57 +01:00
Henri Verbeet
79f0b4d977
d3d9: Avoid resetting device state for d3d9ex resets.
2012-11-20 11:44:27 +01:00
Henri Verbeet
2bf46c60fb
wined3d: Replace the face and level parameters to device_parent_create_texture_surface() with the sub-resource index.
2012-10-25 11:48:25 +02:00
Henri Verbeet
ddbe791d37
wined3d: Set texture_level in surface_set_texture_target() as well.
2012-10-24 11:24:22 +02:00
Henri Verbeet
5fcc1f8f70
wined3d: Just return the surface from wined3d_swapchain_get_back_buffer().
2012-10-04 14:09:50 +02:00
Henri Verbeet
2ad5808996
wined3d: wined3d_device_get_creation_parameters() never fails.
2012-10-01 23:07:55 +02:00
Henri Verbeet
6e5cf8c698
wined3d: wined3d_device_set_depth_stencil() never fails.
2012-10-01 23:07:51 +02:00
Henri Verbeet
95b4207c7f
wined3d: Just return the surface from wined3d_device_get_depth_stencil().
2012-10-01 12:11:02 +02:00
Henri Verbeet
972217fd6a
wined3d: Just return the surface from wined3d_device_get_render_target().
2012-10-01 12:10:55 +02:00
Henri Verbeet
c0f52fbf1c
wined3d: wined3d_device_set_software_vertex_processing() never fails.
2012-09-27 13:10:48 +02:00
Henri Verbeet
f9d494294a
wined3d: Just return the texture from wined3d_device_get_texture().
2012-09-27 13:10:43 +02:00