Commit graph

156 commits

Author SHA1 Message Date
Ziqing Hui
5412401a31 d3dx10/tests: Test block compressed texture data which has more than one block line. 2022-09-01 17:44:48 +02:00
Ziqing Hui
3fdc28c7f8 d3dx10: Return E_FAIL in D3DX10CreateEffectFromFile for NULL file name. 2022-08-31 22:22:21 +02:00
Ziqing Hui
d4ae51e226 d3dx10: Support effect creation for compiled shader. 2022-08-31 22:22:21 +02:00
Ziqing Hui
7e8bd13188 d3dx10: Introduce create_effect(). 2022-08-31 22:22:21 +02:00
Ziqing Hui
f40e707159 d3dx10/tests: Add tests for D3DX10CreateEffectFromResource. 2022-08-31 22:22:21 +02:00
Ziqing Hui
6b9ba3e2bf d3dx10/tests: Add tests for D3DX10CreateEffectFromFile. 2022-08-31 22:22:21 +02:00
Ziqing Hui
c6d46ff3f4 d3dx10/tests: Add tests for D3DX10CreateEffectFromMemory.
Passing NULL profile to effect creation will crash wine for now.
So we have to skip these tests in wine.
2022-08-31 22:22:19 +02:00
Matteo Bruni
b996a96981 d3dx10/tests: Add a test for D3DX10PreprocessShaderFromMemory(). 2022-08-30 21:38:39 +02:00
Andrey Gusev
8ffbd56a43 d3dx10: Implement D3DX10PreprocessShaderFromMemory().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53427
2022-08-30 21:38:39 +02:00
Piotr Caban
6fc4b80e5d d3dx10/tests: Improve cube textures data testing. 2022-08-30 21:38:39 +02:00
Piotr Caban
13801e63c9 d3dx10: Add support for loading MipLevels data in load_texture_data. 2022-08-30 21:38:39 +02:00
Piotr Caban
d1c03fe48a d3dx10: Don't check frame count in load_texture_data. 2022-08-30 21:38:39 +02:00
Piotr Caban
3265019d7c d3dx10: Add support for texture cubes in D3DX10CreateTexture functions. 2022-08-30 21:38:39 +02:00
Piotr Caban
77d0bd8267 d3dx10: Use WIC functions to obtain info about DDS image. 2022-08-30 21:38:39 +02:00
Piotr Caban
82bb308f7a d3dx10: Factor out image format conversion function. 2022-08-30 21:38:39 +02:00
Piotr Caban
a304924c61 d3dx10/tests: Add D3DX10CreateThreadPump tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-07-04 18:04:03 +02:00
Piotr Caban
a63f7b1c81 d3dx10: Add ID3DX10ThreadPump:PurgeAllItems implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
3c5cae06bf d3dx10: Add ID3DX10ThreadPump:GetQueueStatus implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
ec6e12cda3 d3dx10: Add ID3DX10ThreadPump:WaitForAllItems implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
0522fcd4a0 d3dx10: Add ID3DX10ThreadPump:ProcessDeviceWorkItems implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
731bffa013 d3dx10: Add ID3DX10ThreadPump:GetWorkItemCount implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
6ae162fac1 d3dx10: Add ID3DX10ThreadPump:AddWorkItem implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-07-04 17:48:01 +02:00
Piotr Caban
9c2f037b3f d3dx10: Add D3DX10CreateThreadPump stub.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:00 +02:00
Piotr Caban
87e5508469 d3dx10/tests: Fix texture leak in check_resource_data.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-07-04 17:48:00 +02:00
Eric Pouech
07be1c30e5 d3dx10/tests: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-07-04 17:47:58 +02:00
Matteo Bruni
89110d1e4c d3dx10/tests: Add a couple D3DX10CreateAsyncTextureInfoProcessor() parameter tests.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-07-04 17:47:58 +02:00
Piotr Caban
1b46752126 d3dx10/tests: Add D3DX10CreateTextureFromMemory thread pump tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-17 20:38:19 +02:00
Piotr Caban
696071af7a d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10CreateTextureFromMemory.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-17 20:38:19 +02:00
Piotr Caban
798395d3b2 d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10CreateTextureFromResourceW.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-17 20:38:19 +02:00
Piotr Caban
1b39e769b5 d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10CreateTextureFromResourceA.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-17 20:38:19 +02:00
Piotr Caban
0c659a23c2 d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10CreateTextureFromFileW.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-17 20:38:19 +02:00
Piotr Caban
2e2377df21 d3dx10/tests: Add D3DX10CreateAsyncTextureProcessor tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-15 21:45:03 +02:00
Piotr Caban
0d457b2ce2 d3dx10: Add D3DX10CreateAsyncTextureProcessor implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-06-15 21:45:03 +02:00
Piotr Caban
04b6412c18 d3dx10: Add D3DX10CreateAsyncTextureProcessor stub.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-15 21:45:02 +02:00
Piotr Caban
547c292a80 d3dx10: Exit early on volume textures in D3DX10CreateTextureFromMemory.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-06-15 21:45:02 +02:00
Piotr Caban
802cbe14f9 d3dx10/tests: Add D3DX10CreateTextureFromMemory HRESULT argument tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-15 21:45:02 +02:00
Piotr Caban
56debb4918 d3dx10: Don't ignore HRESULT parameter in D3DX10CreateTextureFromMemory.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-15 21:45:02 +02:00
Matteo Bruni
35939bbe0c d3dx10/tests: Add a test for loading an invalid resource from a valid module.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-06-10 23:23:05 +02:00
Matteo Bruni
caa402ab91 d3dx10/tests: Initialize a function argument.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
4cbf8890dc d3dx10/tests: Add D3DX10GetImageInfoFromMemory thread pump tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
b577dc22c7 d3dx10: Support ID3DX10ThreadPump parameter in D3DX10GetImageInfoFromMemory.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
3d9c70229e d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10GetImageInfoFromResourceW.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
b8b3acbfca d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10GetImageInfoFromResourceA.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
9b0e3de465 d3dx10: Add support for ID3DX10ThreadPump parameter in D3DX10GetImageInfoFromFileW.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
0d6b9b83eb d3dx10/tests: Add D3DX10GetImageInfoFromMemory HRESULT argument tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
0683a629f6 d3dx10: Don't ignore HRESULT parameter in D3DX10GetImageInfoFrom* functions.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-10 23:23:05 +02:00
Piotr Caban
47847a2064 d3dx10/tests: Add D3DX10CreateAsyncTextureInfoProcessor tests.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban
4537fbca8d d3dx10: Add D3DX10CreateAsyncTextureInfoProcessor implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban
a2521a90f4 d3dx10: Share code for resource data loading.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00
Piotr Caban
099fb5fad1 d3dx10: Share code for file data loading.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
2022-06-07 08:54:50 +02:00