Commit Graph

440 Commits

Author SHA1 Message Date
Rico Schüller aaa06cfba4 d3dx9: Add ID3DXBaseEffect interface. 2011-03-29 18:02:03 +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
Rico Schüller bb88fada4b d3dx9: Use size of variable instead of type. 2011-03-29 17:48:19 +02:00
Rico Schüller be43a5c414 d3dx9: Fix HeapAlloc size in D3DXCreateEffectPool. 2011-03-29 17:48:10 +02:00
Francois Gouget cb5e480faf d3dx9_36/tests: Replace a malloc() with HeapAlloc()+HeapFree(). 2011-03-16 14:14:25 +01:00
Rico Schüller 0dc91c4975 d3dx9_36: Start effect parsing. 2011-03-15 17:14:07 +01:00
Dylan Smith ed3ce3c91b d3dx9/tests: Partially test front and back faces for D3DXCreateText. 2011-03-10 16:30:16 +01:00
Dylan Smith b06a6c84ac d3dx9/tests: Added outline comparison tests for D3DXCreateText. 2011-03-10 16:30:15 +01:00
Dylan Smith eec288a4c5 d3dx9/tests: Add basic tests for D3DXCreateText. 2011-03-10 16:30:15 +01:00
Dylan Smith 8245b46e60 d3dx9: Support triangulation of complex glyphs in D3DXCreateText. 2011-03-10 16:30:15 +01:00
Dylan Smith 3eee5b7476 d3dx9: D3DXCreateText implementation for simple glyphs. 2011-03-10 16:30:15 +01:00
Francois Gouget 41663974ad d3dx9_36/tests: Add a trailing '\n' to ok() calls. 2011-03-07 11:08:56 +01:00
David Adam 68da568f16 d3dx9_36: Implement ID3DXMesh_GetNumBytesPerVertex. 2011-03-04 16:26:01 +01:00
David Adam 23faba7eb1 d3dx9_36: Add a test for D3DXCreateBox. 2011-03-04 16:26:01 +01:00
Alexandre Julliard 45ead7fe85 d3dx9_36: Cleanup the fixme_once handling. 2011-02-24 12:20:25 +01:00
Matteo Bruni 85a578f782 d3dx9: Fix memory access for images with less than 4 bytes per pixel (Valgrind). 2011-02-23 19:38:26 +01:00
Dylan Smith 5fe7522ba1 d3dx9: Add stubs for D3DXCreateText. 2011-02-21 16:25:58 +01:00
Matteo Bruni ffe65c2721 d3dx9/tests: Remove spurious assignment (LLVM/Clang). 2011-02-21 12:44:36 +01:00
Matteo Bruni 6505aed598 d3dx9: Remove an unnecessary initialization (LLVM/Clang). 2011-02-21 12:44:31 +01:00
Matteo Bruni ed1b396b66 d3dx9: Remove a couple of spurious assignments (LLVM/Clang). 2011-02-21 12:44:27 +01:00
Austin English e8a2fa28ea d3dx9_36/tests: Free memory after use (Valgrind). 2011-02-17 17:27:30 +01:00
David Adam e57bbaab91 d3dx9_36: Add a few tests for D3DXCreateBox. 2011-02-15 17:11:50 +01:00
Austin English 517f6aa526 d3dx9_36: Make sure return values are used (LLVM/Clang). 2011-02-09 14:24:52 -06:00
Austin English f9facad235 d3dx9_36/tests: Remove unused variable assignments (LLVM/Clang). 2011-02-07 10:13:46 -06:00
Michael Stefaniuc c2bf9a6b79 d3dx9_36: COM cleanup for the ID3DXSprite iface. 2011-01-27 14:15:22 +01:00
Michael Stefaniuc 697a9a1ac5 d3dx9_36: COM cleanup for the ID3DXMesh iface. 2011-01-27 14:15:17 +01:00
Michael Stefaniuc a9065082da d3dx9_36: COM cleanup for the ID3DXMatrixStack iface. 2011-01-27 14:15:13 +01:00
Michael Stefaniuc 7342f34ef7 d3dx9_36: COM cleanup for the ID3DXFont iface. 2011-01-27 14:15:08 +01:00
Michael Stefaniuc 7660526337 d3dx9_36: COM cleanup for the ID3DXBuffer iface. 2011-01-27 14:15:04 +01:00
Michael Stefaniuc c84b8dbd3e d3dx9_36: COM cleanup for the ID3DXInclude iface. 2011-01-27 14:14:59 +01:00
Michael Stefaniuc b88e09e221 d3dx9_36: COM cleanup for the ID3DXEffectPool iface. 2011-01-27 14:14:55 +01:00
Michael Stefaniuc 03321ad0fb d3dx9_36: COM cleanup for the ID3DXEffect iface. 2011-01-27 14:14:51 +01:00
Michael Stefaniuc 134cb5bfef d3dx9_36/tests: COM cleanup for the ID3DXInclude iface. 2011-01-26 15:00:13 +01:00
Michael Stefaniuc 303f84c409 d3dx9_36: Use an iface instead of an vtbl pointer in ID3DXConstantTableImpl. 2010-12-21 15:49:30 +01:00
Michael Stefaniuc cdf56820a0 d3dx9_36: Use an iface instead of an vtbl pointer in ID3DXLineImpl. 2010-12-21 00:20:02 +01:00
Travis Athougies d2055e6ea9 d3dx9_36/tests: Extended ID3DXConstantTable tests. 2010-12-02 12:47:42 +01:00
Travis Athougies ca7405a9a1 d3dx9_36: Improved constant table parsing. 2010-12-02 12:47:42 +01:00
Matteo Bruni 9867c39133 d3dx9/tests: Fix a D3DXCheckTextureRequirements test failing on Windows. 2010-11-24 18:27:31 +01:00
Matteo Bruni 9517305c03 d3dx9/tests: Fix some tests to take into account POW2 texture capability flags. 2010-11-24 17:59:59 +01:00
Michael Stefaniuc b6a1951925 d3dx9_36: Move 'static' to the beginning of the declaration. 2010-11-23 16:01:09 +01:00
Matteo Bruni 8c0a8ac514 d3dx9/tests: Remove a D3DXPlaneNormalize test. 2010-11-23 14:16:22 +01:00
Matteo Bruni 892502479c d3dx9: Implement D3DXFillVolumeTexture function. 2010-11-18 14:08:56 +01:00
Matteo Bruni 8f6cf460be d3dx9: Implement D3DXFillCubeTexture function. 2010-11-18 14:08:53 +01:00
Matteo Bruni bffbf3460b d3dx9: Implement D3DXFillTexture function. 2010-11-18 14:08:50 +01:00
Matteo Bruni 0b4969f841 d3dx9: Add color key support to D3DXLoadSurfaceFromMemory. 2010-11-15 14:51:47 +01:00
Louis Lenders aa75d068a4 d3dx9_36: Quiet a noisy fixme. 2010-11-12 15:43:08 +01:00
Matteo Bruni b4a90b0fe8 d3dx9: Implement D3DXCreateVolumeTexture. 2010-11-09 17:08:21 +01:00
Matteo Bruni c1843c8779 d3dx9: Implement D3DXCheckVolumeTextureRequirements. 2010-11-09 17:08:21 +01:00
Matteo Bruni 363d180a54 d3dx9: Skip D3DXCheckCubeTextureRequirement test if not supported. 2010-11-09 17:08:21 +01:00
Vincent Povirk 1d0f126d91 d3dx9_36: Fix an error path in D3DXLoadSurfaceFromFileInMemory.
If GetFrame fails, bitmapframe was not created and should not be released.
2010-11-09 11:44:39 +01:00
Vincent Povirk 31682b3dbe d3dx9_36: Don't check the image format in D3DXLoadSurfaceFromFileInMemory.
If the format is not supported, D3DXGetImageInfoFromFileInMemory will fail.
2010-11-09 11:44:32 +01:00
Matteo Bruni 390ba2c338 d3dx9: Implement D3DXCreateCubeTexture. 2010-11-04 16:29:59 +01:00
Matteo Bruni 6933766531 d3dx9: Implement D3DXCheckCubeTextureRequirements. 2010-11-04 16:29:57 +01:00
Matteo Bruni a875f38301 d3dx9: Implement D3DXFilterTexture for cube textures. 2010-11-04 16:29:52 +01:00
Vincent Povirk a2e5321b01 d3dx9_36: Check for the TGA container format. 2010-10-22 12:01:55 +02:00
Matteo Bruni d32a07a04b d3dx9: Initialize a variable in ID3DXSpriteImpl_Flush. 2010-10-19 17:05:13 +02:00
Matteo Bruni 454dce9162 d3dx9: Report usage of unsupported sprite flags. 2010-10-18 11:45:42 +02:00
Matteo Bruni 40d57b70ed d3dx9: Store transform matrix per-sprite. 2010-10-18 11:45:32 +02:00
Matteo Bruni 550abd41a2 d3dx9: Fix D3DXFilterTexture return value. 2010-10-18 11:45:26 +02:00
Matteo Bruni ebbf519b78 d3dx9: Search for a compatible pixel format in D3DXCheckTextureRequirements. 2010-10-18 11:45:21 +02:00
Christian Costa 128cf64371 d3dx9: Constant table parsing foundations. 2010-10-13 12:03:05 +02:00
Matteo Bruni b4736bd767 d3dx9/tests: Fix a shader test failure. 2010-10-13 12:01:03 +02:00
Misha Koshelev 09af2a2bf9 d3dx9_36: Implement D3DXCreateCylinder. 2010-09-28 17:33:17 +02:00
Misha Koshelev 63dbf6ee3f d3dx9_36/tests: Add tests for D3DXCreateCylinder. 2010-09-27 14:10:46 +02:00
Misha Koshelev fe9db6faf7 d3dx9_36: Add stub for D3DXCreateCylinder. 2010-09-27 14:10:46 +02:00
Misha Koshelev d7d9cd5eb2 d3dx9_36: Implement D3DXCreateSphere. 2010-09-24 15:45:54 +02:00
Misha Koshelev 99e2aedbf7 d3dx9_36: Implement ID3DXMesh_Lock/UnlockVertexBuffer and ID3DXMesh_Lock/UnlockIndexBuffer. 2010-09-24 15:45:53 +02:00
Misha Koshelev 10af823fd5 d3dx9_36: Add stub for D3DXCreateTeapot. 2010-09-24 15:45:53 +02:00
Misha Koshelev e4182ead47 d3dx9_36: Implement D3DXCreateMeshFVF. 2010-09-23 19:22:41 +02:00
Misha Koshelev a6f2c003a3 d3dx9_36: D3DXDeclaratorFromFVF returns D3DERR_INVALIDCALL when an invalid declarator is passed. 2010-09-23 19:22:38 +02:00
Misha Koshelev af0c074d7b d3dx9_36: Implement D3DXCreateMesh and initial ID3DXMesh methods. 2010-09-21 20:16:16 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Misha Koshelev fffe37aa00 d3dx9_36: Implement D3DXGetDeclLength with tests. 2010-09-16 11:18:58 -05:00
Joris Huizer 5815b63979 d3dx9_36: D3DXPreprocessShaderFromFileW: remove unneeded code. 2010-09-14 15:33:54 -05:00
Matteo Bruni 8d7a0d5027 d3dx9: D3DXPreprocessShader implementation with tests. 2010-09-13 14:43:53 -05:00
Owen Rudge 0d6f4d2406 d3dx9/tests: Add D3DXCreateTextureFromResource tests. 2010-09-09 12:44:48 +02:00
Owen Rudge 78bd619c7c d3dx9: Implement D3DXCreateTextureFromResource*. 2010-09-09 12:44:43 +02:00
Matteo Bruni d82255575b d3dx9: Fix D3DXAssembleShader tests. 2010-09-08 19:54:29 +02:00
Matteo Bruni d6ead897e2 d3dx9: Fix D3DXCompileShaderFromFileW. 2010-09-08 19:54:14 +02:00
Misha Koshelev b9b9d7ccca d3dx9_36: Fix the D3DXCreateMesh() prototype. 2010-09-08 13:31:03 +02:00
Andrew Nguyen b42a243fec d3dx9_36: Fix D3DXCompileShader* spec file prototypes. 2010-09-07 16:01:18 +02:00
Misha Koshelev 5fa3a6cf78 d3dx9: Implement D3DXFVFFromDeclarator. 2010-09-06 19:45:47 +02:00
Matteo Bruni 5a5af75f04 d3dx9: Implement D3DXCompileShaderFromResource. 2010-09-02 18:05:23 +02:00
Matteo Bruni de8f35bba8 d3dx9: Implement D3DXCompileShaderFromFile. 2010-09-02 18:05:23 +02:00
Owen Rudge 258dba1a52 d3dx9: Implement D3DXLoadSurfaceFromFileInMemory. 2010-09-01 14:01:02 +02:00
Owen Rudge 3604671a3a d3dx9: Implement D3DXCreateTextureFromFileInMemoryEx. 2010-09-01 14:01:02 +02:00
Alexandre Julliard f161990eef d3dx9: Use float instead of long in the spec files for 32-bit floating point values. 2010-08-31 14:23:49 +02:00
Owen Rudge ae695bdfaa d3dx9: Implement missing D3DXCreateTextureFromFile functions. 2010-08-31 12:10:45 +02:00
Matteo Bruni 3a6050b6ab d3dx9: Forward D3DXCompileShader to d3dcompiler. 2010-08-30 11:26:28 +02:00
Henri Verbeet ff7dc44525 d3dx9_36: Implement D3DXDeclaratorFromFVF(). 2010-08-27 11:58:57 +02:00
Henri Verbeet 79e4f66090 d3dx9_36/tests: Add some more FVF position handling tests. 2010-08-27 11:58:50 +02:00
Henri Verbeet 6e518a1d06 d3dx9_36/tests: Cleanup / simplify test_fvf_decl_conversion(). 2010-08-27 11:58:43 +02:00
Francois Gouget 2f8f70bca7 d3dx9_36: Make {is,make}_pow2() static. 2010-08-26 13:40:34 +02:00
Henri Verbeet 1bfd89986c d3dx9_36/tests: Avoid a redundant vertex declaration copy in test_decl_to_fvf(). 2010-08-26 12:41:58 +02:00
Henri Verbeet 5ed9403c74 d3dx9_36: Fix the D3DXFVFFromDeclarator() prototype.
The current version matches MSDN, but not the actual SDK header.
2010-08-26 12:41:53 +02:00
Matteo Bruni 53a15436f8 d3dcompiler: Move D3DAssemble tests from d3dx9_36. 2010-08-25 17:35:19 +02:00
Matteo Bruni 5dcb2e4b7e d3dcompiler: Move shader assembler implementation from d3dx9_36. 2010-08-25 17:34:24 +02:00
Henri Verbeet 5655c6f0bb d3dx9_36/tests: Use the proper D3DFVF_PSIZE constant in test_fvf_decl_conversion(). 2010-08-25 11:56:59 +02:00
Henri Verbeet bcd452ab82 d3dx9_36/tests: Remove a (mostly) redundant test. 2010-08-25 11:56:50 +02:00
Henri Verbeet 31e8a20d88 d3dx9_36: Use a lookup table in D3DXGetDeclVertexSize(). 2010-08-25 11:56:35 +02:00
Tony Wasserka ecce9eebcf d3dx9: Fix an off by one error in point_filter_simple_data. 2010-08-23 13:37:03 +02:00
Tony Wasserka 18b8916942 d3dx9: Black out pixels which are outside the source rect in D3DXLoadSurfaceFromMemory if no stretching is used. 2010-08-23 13:37:03 +02:00
Gerald Pfeifer 0fed73ef4b d3dx9_36: Simplify instr_ps_1_0123_texld. 2010-08-23 11:52:34 +02:00
Misha Koshelev 46050fb377 d3dx9: Add tests for FVF <-> declaration conversion. 2010-08-19 17:32:18 +02:00
Gerald Pfeifer f781be07fc d3dx9_36: minwidth and minheight are set but not used in point_filter_simple_data; remove them. 2010-08-16 17:28:55 +02:00
Alexandre Julliard 277040d924 d3dx9: Fix some incorrect const typecasts. 2010-08-04 17:53:14 +02:00
Tony Wasserka 1905e93b54 d3dx9: Implement ARGB point filtering in D3DXLoadSurfaceFromMemory. 2010-08-04 17:49:43 +02:00
Tony Wasserka 5bdfd877a7 d3dx9: Return D3DERR_INVALIDCALL in D3DXLoadSurfaceFromMemory if pDestRect is invalid. 2010-08-04 17:48:45 +02:00
Tony Wasserka 295d2a6777 d3dx9: Move pixel sampling and recombination in copy_simple_data to separate helper functions. 2010-08-04 17:48:21 +02:00
Misha Koshelev bf46b4fdfc d3dx9: Add stub and tests for D3DXCreateMesh. 2010-08-04 13:19:00 +02:00
Henri Verbeet 24f522c520 d3dx9_36/tests: Avoid the non-portable NAN macro. 2010-08-03 11:06:14 +02:00
Misha Koshelev cc1738ad3c d3dx9: Complete test for D3DXCreateSphere. 2010-08-02 15:14:41 +02:00
Matteo Bruni 1b3376982d d3dx9: Implement D3DXAssembleShaderFromFile. 2010-07-29 17:48:20 +02:00
Matteo Bruni 2a62616ac7 d3dx9: Handle parent_data parameter of D3DXInclude.Open() function. 2010-07-29 17:48:09 +02:00
Paul Chitescu 8068d4ee22 d3dx9_36: Provide an empty error message in the stub D3DXCompileShader. 2010-07-28 16:28:21 +02:00
Owen Rudge 54f049a656 d3dx9: Add basic implementation of D3DXFilterTexture, plus tests. 2010-07-24 11:16:43 +02:00
Owen Rudge 30d5e375e6 d3dx9: Implement D3DXCreateTexture plus tests. 2010-07-24 11:16:37 +02:00
Owen Rudge a9fe0ccbd2 d3dx9/tests: Implement additional texture requirement tests. 2010-07-24 11:16:24 +02:00
Owen Rudge b5c7675dd3 d3dx9: Implement D3DXCheckTextureRequirements. 2010-07-24 11:16:18 +02:00
Owen Rudge 79690ab1ea d3dx9/tests: Add beginning of general tests for texture functions. 2010-07-22 16:27:52 +02:00
Matteo Bruni d567a030ec d3dx9: Shader assembler <= ps_1_3 support. 2010-07-22 10:11:14 +02:00
Matteo Bruni 8ce3ecea0d d3dx9: Add <= ps_1_3 instruction parsing to the shader assembler. 2010-07-22 10:10:59 +02:00
Matteo Bruni 383a7fe3b1 d3dx9: Fix dst register handling in ps_1_4. 2010-07-22 10:10:53 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Matteo Bruni bfa3999284 d3dx9: Shader assembler ps_1_4 support. 2010-07-20 16:29:45 +02:00
Matteo Bruni 7c834e30d7 d3dx9: Add ps_1_4 instructions parsing to the shader assembler. 2010-07-20 16:29:45 +02:00
Matteo Bruni 949eca4012 d3dx9: Add shift modifiers parsing to the shader assembler. 2010-07-20 16:29:45 +02:00
Matteo Bruni 4c5954eaa4 d3dx9: Add ps_1_x source register modifiers to the shader assembler. 2010-07-20 16:29:45 +02:00
Misha Koshelev 242b4f3fe8 d3dx9: Add stub and basic test for D3DXCreateSphere. 2010-07-19 15:47:28 +02:00
Matteo Bruni c2b0f200fa d3dx9: Check dcl input instruction syntax against shader version. 2010-07-19 15:10:16 +02:00
Matteo Bruni 0ea6f7957a d3dx9: Error out on dcl output instruction where not supported. 2010-07-19 15:10:10 +02:00
Matteo Bruni d76e3ac9c6 d3dx9: Improve a FIXME. 2010-07-19 15:10:06 +02:00
Matteo Bruni a5e55c157f d3dx9: Remove unused parameter from get_regname(). 2010-07-19 15:09:59 +02:00
David Adam 4771ee2c5f d3dx9_36/test: Fix a copy/paste typo. 2010-07-09 09:52:15 +02:00
Misha Koshelev cd72aef038 d3dx9: Test penultimate declaration element in D3DXDeclaratorFromFVFTest. 2010-07-07 17:38:15 +02:00
Francois Gouget 7649c75b40 Assorted typo and spelling fixes. 2010-06-24 10:37:05 +02:00
Francois Gouget 3133b71e92 d3dx9_36: Make assemble_shader() static. 2010-06-24 10:34:40 +02:00
Matteo Bruni 5a5844d458 d3dx9: Disallow sampler declarations where not supported. 2010-06-10 17:17:57 +02:00
Matteo Bruni a74978dfef d3dx9: Check register type in dcl input instruction. 2010-06-10 17:17:57 +02:00
Matteo Bruni 5bb403ceb2 d3dx9: Allow sampler declaration without sampler type. 2010-06-10 17:17:57 +02:00
Matteo Bruni 2fa119f765 d3dx9: Accept texture coordinate registers in dcl instruction. 2010-06-09 20:20:58 +02:00
Matteo Bruni 00951f84ed d3dx9: Support ps_2_0-style dcl instruction in the shader assembler. 2010-06-09 20:20:58 +02:00
Matteo Bruni 9a8ffc916c d3dx9: Mark builtin compatibility declarations in the shader assembler.
This way we can output declarations in the bytecode without polluting
them with the builtin ones.
2010-06-09 20:20:58 +02:00
Matteo Bruni 8094c5563e d3dx9: Allow D3DXAssembleShader calls with NULL parameters. 2010-06-07 13:52:39 +02:00
Matteo Bruni bc42217401 d3dx9: Make D3DXCompileShader stub more verbose. 2010-06-01 17:48:59 +02:00
Matteo Bruni b45a17c7b3 d3dx9: Remove stray debug trace. 2010-06-01 17:48:54 +02:00
Matteo Bruni a262fde88c d3dx9: Fix get_regname debug function. 2010-06-01 17:48:50 +02:00
Matteo Bruni 25d4fe6817 d3dx9: Allow modifiers on the ps dcl sampler instruction. 2010-05-31 16:43:49 +02:00
Matteo Bruni 7de630ef2f d3dx9: Allow modifiers on the ps dcl input instruction. 2010-05-31 16:43:46 +02:00