Paul Gofman
eb9febab03
d3dx9/tests: Add test for releasing pool before effects referencing it.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-26 20:33:53 +02:00
Paul Gofman
1bd3cc24af
d3dx9: Fix IsParameterUsed() for the case when state references child parameter.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 20:53:06 +02:00
Paul Gofman
bc655a40ec
d3dx9/tests: Add more tests for IsParameterUsed() function.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-25 20:53:06 +02:00
Paul Gofman
fcca134333
d3dx9/tests: Add test for shared effect parameters.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-21 22:06:58 +02:00
Paul Gofman
c30b91d382
d3dx9: Compare parameter definition instead of parameter handle in IsParameterUsed().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:09:35 +02:00
Paul Gofman
5029c2c0fd
d3dx9: Use magic number instead of parameter tables for parameter handles.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:09:33 +02:00
Paul Gofman
69f8d48525
d3dx9/tests: Add tests for cross effect handles usage.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-19 09:09:30 +02:00
Paul Gofman
2b18cd4321
d3dx9: Preserve states regardless of state manager presence.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 22:12:45 +02:00
Paul Gofman
d6ab655a09
d3dx9: Support effect state manager.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 22:12:44 +02:00
Paul Gofman
de8e03c486
d3dx9/tests: Add tests for effect state manager.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 22:12:44 +02:00
Paul Gofman
8b1737c0fd
d3dx9/tests: Add more tests for relative addressing in preshaders.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 19:57:26 +02:00
Paul Gofman
b096f03ca6
d3dx9/tests: Extend test for relative addressing in preshaders.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 19:57:24 +02:00
Paul Gofman
42cbd578f7
d3dx9: Support relative addressing in preshaders.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 19:57:22 +02:00
Paul Gofman
32ccc940d3
d3dx9/tests: Add test for CommitChanges().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:39 +01:00
Paul Gofman
68d1fd2e81
d3dx9/tests: Factor out vertex shader constants check helper function from test_effect_preshader().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:39 +01:00
Matteo Bruni
f68de78d9e
d3dx9: Override d3dx9_get_param_value_ptr() return value only on array overflow.
...
Incidentally this exposes a few test failures (due to not supporting
relative addressing in preshaders) previously masked by the broad
override.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:38 +01:00
Paul Gofman
eca2f87a2e
d3dx9/tests: Factor out op results test helper function from test_effect_preshader().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 10:05:24 +01:00
Paul Gofman
96e0b2777a
d3dx9/tests: Extend test effect and add checks to test_effect_preshader().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 10:05:24 +01:00
Paul Gofman
8f86d5545b
d3dx9/tests: Add test for out of bounds array selector in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 20:07:00 +01:00
Józef Kucia
61de927355
d3dx9/tests: Fix compilation when the INFINITY macro is not available.
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-05 14:49:58 -05:00
Paul Gofman
571119a585
d3dx9/tests: Add test for IsParameterUsed function.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 11:31:29 +09:00
Paul Gofman
4786f53ef8
d3dx9: Add d3ds_dotswiz opcode to preshader.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 00:10:04 +09:00
Paul Gofman
be4c5f5022
d3dx9/tests: Extend effect preshader test.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Paul Gofman
a5fcc4d2a2
d3dx9: Add test for 0 * INF preshader operation.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:30 +09:00
Paul Gofman
2925d6e6ec
d3dx9: Add 'exp' preshader opcode.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:30 +09:00
Paul Gofman
453d9f7bce
d3dx9: Implement setting named shader constants in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 23:29:25 +09:00
Paul Gofman
4620bb80b0
d3dx9: Implement array selectors in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:05:30 +09:00
Paul Gofman
58d80d90a5
d3dx9: Add basic opcodes to preshader.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:05:23 +09:00
Paul Gofman
43208b6348
d3dx9: Implement fxlc constants (expressions) in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-18 15:05:15 +09:00
Paul Gofman
ad7ec2ec14
d3dx9: Add test for preshader in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 11:28:54 +09:00
Francois Gouget
8fda75fe4a
d3dx9/tests: Add a trailing '\n' to an ok() call.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-18 22:20:01 +09:00
Henri Verbeet
d708f309c8
d3dx9/tests: Get rid of a redundant NULL check in test_effect_states().
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-13 15:41:45 +09:00
Paul Gofman
1da5af9364
d3dx9: Support setting texture through SetValue in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-09 18:40:34 +09:00
Paul Gofman
c1487eee3e
d3dx9: Implement state save and restore in effect.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:33 +09:00
Paul Gofman
3aa22f47a8
d3dx9: Implement sampler and texture effect states application.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:31 +09:00
Paul Gofman
ec6124f15d
d3dx9: Implement shader constants effect states application.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:28 +09:00
Paul Gofman
6df87a6647
d3dx9: Implement light and material effect states application.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:25 +09:00
Paul Gofman
91c5f11537
d3dx9: Implement simple effect states application.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:22 +09:00
Paul Gofman
6a5a4f9b12
d3dx9: Add test for basic effect state management.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-04 11:35:17 +09:00
Michael Stefaniuc
020b86b0be
d3dx9/tests: Avoid a TRUE:FALSE conditional expression.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 12:05:57 +09:00
Stefan Dösinger
ed3b1037f9
d3dx9_36/tests: Initialize some test values.
2014-04-01 20:58:01 +02:00
Matteo Bruni
62288d02be
d3dx9: Call D3DCompile() for ASCII effects.
2014-02-25 14:17:45 -06:00
Stefan Dösinger
f85f733c79
d3dx9_36/tests: Use a window with a non-zero size.
2014-01-16 21:04:19 +01:00
André Hentschel
87c7c961f2
Assorted spelling fixes.
2014-01-06 17:33:24 +01:00
Henri Verbeet
3e5dd54971
d3dx9/tests: Use explicit A calls.
2013-10-31 09:58:44 +01:00
Henri Verbeet
76e35a2939
d3dx9: Avoid LPCVOID.
2013-09-03 16:58:18 +02:00
Henri Verbeet
75511e351c
d3dx9: Avoid LPCSTR.
2013-09-02 18:02:48 +02:00
Christian Costa
fcb72f399d
d3dx9_36: Set compilation_errors to NULL when no error encountered + tests.
2013-06-13 17:14:06 +02:00
Francois Gouget
7b2d297d3e
d3dx9_36/tests: Use software vertex processing so the tests can run on Intel GM950 graphics cards.
2012-12-14 17:37:43 +01:00
Henri Verbeet
c109249445
d3dx9: Avoid LPD3DXEFFECTSTATEMANAGER.
2012-11-30 11:42:37 +01:00
Henri Verbeet
4704e78337
d3dx9: Avoid LPDIRECT3DPIXELSHADER9.
2012-10-23 12:11:30 +02:00
Rico Schüller
98d196a808
d3dx9/tests: Add variable name test.
2012-08-20 14:58:45 +02:00
Rico Schüller
c178b61bb9
d3dx9/tests: Check all elements in the effect parameter value test.
2012-08-13 11:51:18 +02:00
Rico Schüller
3bd55d0b62
d3dx9/tests: Reduce effect parameter value test count.
2012-08-13 11:51:11 +02:00
Rico Schüller
e0d5c35054
d3dx9/tests: Fix array increment in SetMatrix*PointerArray() test.
2012-07-10 11:16:44 -05:00
Rico Schüller
617a2ccee6
d3dx9/tests: Add effect parameter value GetMatrixTransposePointerArray() test.
2012-07-10 11:16:39 -05:00
Rico Schüller
a7f1d93f01
d3dx9/tests: Add effect parameter value GetMatrixPointerArray() test.
2012-07-10 11:16:33 -05:00
Rico Schüller
18126eeb4f
d3dx9/tests: Add effect parameter value SetMatrixTransposePointerArray() test.
2012-07-03 14:56:18 +02:00
Rico Schüller
1ae494a9bb
d3dx9/tests: Add effect parameter value SetMatrixPointerArray() test.
2012-07-03 14:56:13 +02:00
Rico Schüller
f658aabfd5
d3dx9: Crop the input in ID3DXBaseEffect::SetBool().
2012-05-30 17:17:57 +02:00
Rico Schüller
b09d195bf3
d3dx9/tests: Add tests for ID3DXBaseEffect::G/SetValue().
2012-04-18 17:40:13 +02:00
Rico Schüller
49ebbd0230
d3dx9/tests: Add invalid parameter test for ID3DXEffect.
2012-01-27 18:05:50 +01:00
Rico Schüller
cf512fdf13
d3dx9/tests: Add effect parameter value SetMatrixTransposeArray() test.
2012-01-27 18:05:50 +01:00
Rico Schüller
0ae7c573b1
d3dx9/tests: Add effect parameter value SetMatrixTranspose() test.
2012-01-27 18:05:50 +01:00
Rico Schüller
3efd2f9a1b
d3dx9/tests: Add effect parameter value SetMatrixArray() test.
2012-01-26 17:45:37 +01:00
Rico Schüller
52e1409111
d3dx9/tests: Add effect parameter value SetMatrix() test.
2012-01-26 17:45:34 +01:00
Rico Schüller
d0fbe7f5a5
d3dx9/tests: Add effect parameter value SetVectorArray() test.
2012-01-26 17:45:29 +01:00
Rico Schüller
9c63b11372
d3dx9/tests: Add effect parameter value SetVector() test.
2012-01-26 17:45:25 +01:00
Rico Schüller
483ae58ef2
d3dx9/tests: Add effect parameter value SetFloatArray() test.
2012-01-24 16:57:32 +01:00
Rico Schüller
88c996b3c3
d3dx9/tests: Add effect parameter value SetFloat() test.
2012-01-24 16:57:32 +01:00
Rico Schüller
e892f06175
d3dx9/tests: Add effect parameter value SetIntArray() test.
2012-01-24 16:57:32 +01:00
Rico Schüller
51b9699134
d3dx9/tests: Add effect parameter value SetInt() test.
2012-01-24 16:57:32 +01:00
Rico Schüller
a90eacab1a
d3dx9/tests: Add effect parameter value SetBoolArray() test.
2012-01-24 16:57:32 +01:00
Rico Schüller
7825fa833f
d3dx9/tests: Reset effect parameter value data after each try.
2012-01-12 16:10:49 +01:00
Rico Schüller
5f01e93014
d3dx9/tests: Add effect parameter value SetBool() test.
2012-01-12 16:10:45 +01:00
Rico Schüller
cb8c013366
d3dx9/tests: Add special handling test.
2012-01-12 16:10:40 +01:00
Rico Schüller
834d797339
d3dx9/tests: Add effect parameter value object test.
2012-01-12 16:10:34 +01:00
Rico Schüller
a3d3834233
d3dx9/tests: Add effect parameter value int test.
2012-01-12 16:10:29 +01:00
Rico Schüller
d0ede16ee4
d3dx9/tests: Add effect parameter value GetMatrixTransposeArray() test.
2011-12-27 16:55:05 +01:00
Rico Schüller
c7d2159a78
d3dx9/tests: Add effect parameter value GetMatrixTranspose() test.
2011-12-27 16:55:05 +01:00
Rico Schüller
9be82e3175
d3dx9/tests: Add effect parameter value GetMatrixArray() test.
2011-12-27 16:55:04 +01:00
Rico Schüller
f856afe336
d3dx9/tests: Add effect parameter value GetMatrix() test.
2011-12-27 16:55:04 +01:00
Rico Schüller
0c1574bd5e
d3dx9/tests: Add effect parameter value GetVectorArray() test.
2011-12-22 17:19:18 +01:00
Rico Schüller
fa93df1052
d3dx9/tests: Add effect parameter value GetVector() test.
2011-12-22 17:19:17 +01:00
Rico Schüller
828b82780d
d3dx9/tests: Add effect parameter value GetFloatArray() test.
2011-12-22 17:19:17 +01:00
Rico Schüller
47ae7db16a
d3dx9/tests: Add effect parameter value GetFloat() test.
2011-12-22 17:19:17 +01:00
Rico Schüller
5341b5518b
d3dx9/tests: Add effect parameter value GetIntArray() test.
2011-12-21 18:04:48 +01:00
Rico Schüller
d984a524e7
d3dx9/tests: Add effect parameter value GetInt() test.
2011-12-21 18:04:45 +01:00
Rico Schüller
cb664abfa0
d3dx9/tests: Add effect parameter value GetBoolArray() test.
2011-12-21 18:04:39 +01:00
Rico Schüller
bdf8e4642a
d3dx9/tests: Add effect parameter value GetBool() test.
2011-12-21 18:04:34 +01:00
Rico Schüller
8a58fb3c84
d3dx9/tests: Add effect parameter value GetValue() test.
2011-12-21 18:04:18 +01:00
Rico Schüller
1ac8f4d472
d3dx9/tests: Add ID3DXEffect::Get/SetStateManager() test.
2011-05-11 18:02:27 +02:00
Rico Schüller
9ea9a053b9
d3dx9/tests: Add ID3DXEffectCompiler test.
2011-03-29 18:05:57 +02:00
Rico Schüller
f1bfecd616
d3dx9/tests: Add ID3DXEffect::GetPool() and ID3DXEffect::GetDevice() tests.
2011-03-29 18:05:53 +02:00
Rico Schüller
68f11dabd7
d3dx9/tests: Add refcount test for the device.
2011-03-29 17:48:42 +02:00
Rico Schüller
eb1faf6155
d3dx9: Handle pool and device in ID3DXEffect.
2011-03-29 17:48:37 +02:00
Christian Costa
b5f7ca9ed9
d3dx9_36: Implement D3DXCreateEffectPool and ID3DXEffectPool interface.
2010-03-25 10:01:16 +01:00
Christian Costa
4082920c3a
d3dx9_36: Add stubbed interface for ID3DXEffect.
2010-03-22 12:16:15 +01:00