Commit Graph

903 Commits

Author SHA1 Message Date
Nozomi Kodama 3d5c61cdcd d3dx9_36/tests: Relax an equality between floats. 2012-10-03 13:10:45 +02:00
Nozomi Kodama 9c823d04b6 d3dx9_36/tests: Avoid a potential out of bound access. 2012-10-03 13:10:45 +02:00
Nozomi Kodama 584c24050e d3dx9_36/tests: Speed up some tests. 2012-10-03 13:10:45 +02:00
Nozomi Kodama b8cfe42326 d3dx9_36: Implement D3DXSHMultiply4. 2012-10-03 13:10:45 +02:00
Rico Schüller ec9db0a11f d3dx9: Fix D3DXMatrixAffineTransformation() and add some tests. 2012-10-01 18:49:11 +02:00
Rico Schüller effdcf98d6 d3dx9: Improve traces for D3DXSHMultiply2/3(). 2012-09-28 11:27:40 +02:00
Rico Schüller 3e24dc642b d3dx9: Use float functions in D3DXMatrixRotationAxis(). 2012-09-28 11:27:34 +02:00
Rico Schüller 945e81b341 d3dx9: Improve D3DXMatrixAffineTransformation(). 2012-09-28 11:27:21 +02:00
Rico Schüller c131bee4fc d3dx9: Improve D3DXMatrixAffineTransformation2D(). 2012-09-28 11:27:13 +02:00
Rico Schüller aa344fc88d d3dx9: Use float function in D3DXFresnelTerm(). 2012-09-28 11:27:08 +02:00
Rico Schüller e420409b8d d3dx9: Use float function in D3DXPlaneNormalize(). 2012-09-28 11:27:01 +02:00
Rico Schüller ef65fddaf9 d3dx9: Use float functions in D3DXQuaternionExp(). 2012-09-27 13:12:57 +02:00
Rico Schüller 9a281e5dd2 d3dx9: Use float functions in D3DXQuaternionRotationMatrix(). 2012-09-27 13:12:48 +02:00
Rico Schüller e921953374 d3dx9: Use float functions in D3DXQuaternionLn(). 2012-09-27 13:12:44 +02:00
Rico Schüller 5accb12c12 d3dx9: Avoid variable assignment in D3DXQuaternionNormalize(). 2012-09-26 14:40:53 +02:00
Rico Schüller db8df8bc7c d3dx9: Use float functions in D3DXQuaternionRotationAxis(). 2012-09-26 14:40:53 +02:00
Rico Schüller 7d75ad8230 d3dx9: Use float functions in D3DXQuaternionRotationYawPitchRoll(). 2012-09-26 14:40:52 +02:00
Rico Schüller ce319e9d53 d3dx9: Use float functions in D3DXQuaternionSlerp(). 2012-09-26 14:40:52 +02:00
Rico Schüller 398eb27538 d3dx9: Use float functions in D3DXSHRotateZ(). 2012-09-26 14:40:51 +02:00
Rico Schüller 82a800c128 d3dx9: Improve RegisterCount calculation for D3DXRS_INT4/BOOL. 2012-09-26 14:40:51 +02:00
Rico Schüller 3eb26010d8 d3dx9: Fix shader constant byte calculation. 2012-09-26 14:40:50 +02:00
Rico Schüller e817bc3f04 d3dx9: Handle D3DXPT_VOID in get_float/bool/int(). 2012-09-26 14:40:50 +02:00
Francois Gouget 91c7dca35f d3dx9_36/tests: Remove spaces before '\n's in ok() calls. 2012-09-26 14:40:49 +02:00
Gerald Pfeifer f807666d2b d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory. 2012-09-26 11:00:06 +02:00
Detlef Riekenberg a695062447 d3dx9_36/tests: Fix copy & paste error in ok messages. 2012-09-26 10:59:00 +02:00
Nozomi Kodama 1f85d64b19 d3dx9: Implement D3DXSHRotate. 2012-09-25 11:39:28 +02:00
Nozomi Kodama c69a496461 d3dx9: Implement D3DXSHEvalDirectionalLight. 2012-09-25 11:38:53 +02:00
Nozomi Kodama 7c5d93b504 d3dx9: Simplify D3DXVector*Normalize. 2012-09-25 11:32:45 +02:00
Nozomi Kodama 10d1253971 d3dx9: Simplify D3DXComputeBoundingSphere. 2012-09-25 11:32:15 +02:00
Christian Costa 12d11833f7 d3dx9_36: Cube texture can be loaded as a simple texture. The first face texture is taken in that case. 2012-09-24 22:27:42 +02:00
Józef Kucia 934293c1ec d3dx9: Implement conversion from D3DFORMAT to DDS pixel format for RGB pixel formats. 2012-09-24 22:27:29 +02:00
Józef Kucia 94ab09a226 d3dx9/tests: Add a more detailed test for saving a surface to a DDS file. 2012-09-24 22:27:29 +02:00
Józef Kucia bf4201ea58 d3dx9: Implement the support for saving a surface to a DDS file. 2012-09-24 22:27:29 +02:00
Józef Kucia 8f00a63161 d3dx9: Use 4 spaces per indent level in get_image_info_from_dds(). 2012-09-24 22:27:29 +02:00
Józef Kucia 00ea54f64f d3dx9: Introduce a function for calculating the expected size of a DDS file. 2012-09-24 22:27:29 +02:00
Christian Costa fcb9c5fadb d3dx9_36: Add stub for D3DXCleanMesh. 2012-09-24 16:38:16 +02:00
Francois Gouget ae3a919ba0 d3dx9_36/tests: Fix compilation on systems that don't support nameless structs or unions. 2012-09-24 10:03:37 +02:00
Rico Schüller 8fb16c955b d3dx9: Move transpose matrix into get_matrix(). 2012-09-14 11:52:02 +02:00
Rico Schüller 5b06a2d113 d3dx9: Move transpose matrix into set_matrix(). 2012-09-14 11:51:58 +02:00
Rico Schüller 26914eb337 d3dx9: Use set_number instead of get_bool/int/float. 2012-09-14 11:51:55 +02:00
Rico Schüller 823d1fbc38 d3dx9: Move bool cropping into helper function. 2012-09-06 15:45:14 +02:00
Rico Schüller 65c651e376 d3dx9: Move D3DXPARAMETER_TYPE conversion helpers to util. 2012-09-06 15:44:39 +02:00
Rico Schüller 6268414cab d3dx9: Remove ID3DXMatrixStackImpl typedef. 2012-09-04 15:04:40 +02:00
Rico Schüller 27b7fdf663 d3dx9: Use sizeof variable instead of type. 2012-09-04 15:04:34 +02:00
Rico Schüller 7d08ae9b29 d3dx9: Make '\0' the default case in get_constant_by_name(). 2012-09-04 15:04:23 +02:00
Rico Schüller b999ab16b3 d3dx9: Fix ID3DXConstantTable::GetConstantElement() for structs. 2012-09-04 15:04:09 +02:00
Rico Schüller 792cd67bf1 d3dx9: Don't use memcpy in ID3DXConstantTable::GetDesc(). 2012-09-03 15:52:07 +02:00
Rico Schüller 587468dc6d d3dx9: Remove FormatType typedef. 2012-09-03 15:52:01 +02:00
Rico Schüller 8da8811615 d3dx9: Remove PixelFormatDesc typedef. 2012-09-03 15:51:57 +02:00
Rico Schüller bfec155345 d3dx9: Improve traces in set_number(). 2012-08-29 11:43:39 +02:00
Rico Schüller 396af0dac3 d3dx9: Optimize set_matrix(). 2012-08-29 11:43:20 +02:00
Rico Schüller 77632f0880 d3dx9: Avoid desc copy in ID3DXConstantTable::GetSamplerIndex(). 2012-08-28 20:24:35 +02:00
Rico Schüller edb802a847 d3dx9: Remove min() in set_matrix_array(), uses always the desc value. 2012-08-28 20:24:34 +02:00
Rico Schüller b5b0520723 d3dx9: Handle D3DXPC_VECTOR in set_matrix_array(). 2012-08-28 20:24:34 +02:00
Rico Schüller a4dde8151b d3dx9: Improve set_matrix_array(). 2012-08-28 20:24:33 +02:00
Rico Schüller 97ef9f9322 d3dx9: Add some traces to D3DXLoadSurfaceFromMemory(). 2012-08-28 20:24:18 +02:00
Jacek Caban 434b696c46 Fixed remaining wrong iface call helpers. 2012-08-28 14:41:12 +02:00
Rico Schüller 42d28e0d34 d3dx9/tests: Fix typo. 2012-08-27 13:42:31 +02:00
Rico Schüller 8c8b4c356c d3dx9: Remove "too many constants" fixme. 2012-08-27 13:42:31 +02:00
Rico Schüller 3dc48141d1 d3dx9: Add debug helper function for RegisterSet. 2012-08-27 13:42:30 +02:00
Rico Schüller 24ab70906b d3dx9: Use debug_d3dxparameter_class/type in traces. 2012-08-27 13:42:30 +02:00
Rico Schüller 68508ed581 d3dx9/tests: Add tests for ID3DXConstantTable::GetConstant/ByName/Element(). 2012-08-27 13:42:29 +02:00
Rico Schüller fdbcbb0c91 d3dx9/tests: Add tests for ID3DXConstantTable::GetConstantDesc(). 2012-08-27 13:42:20 +02:00
Rico Schüller 053e5b59ec d3dx9: Fix RegisterCount calculation. 2012-08-27 11:33:11 +02:00
Rico Schüller 4d59b503de d3dx9: Implement ID3DXConstantTable::GetConstantElement(). 2012-08-27 11:32:52 +02:00
Rico Schüller fa7422bc4e d3dx9: Improve ID3DXConstantTable::GetConstantDesc(). 2012-08-27 11:32:47 +02:00
Rico Schüller ea4f402164 d3dx9: Improve ID3DXConstantTable::GetConstant(). 2012-08-27 11:32:42 +02:00
Rico Schüller 2204986797 d3dx9: Improve ID3DXConstantTable::GetConstantByName(). 2012-08-27 11:32:38 +02:00
Rico Schüller 1278843643 d3dx9: Improve is_valid_constant(). 2012-08-24 11:13:52 +02:00
Rico Schüller b565e8fb4f d3dx9: Parse structs and sub constants in ID3DXConstantTable. 2012-08-24 11:12:43 +02:00
Rico Schüller 8f83681723 d3dx9: Don't use an index as variable handle, it's not useable for subvariables. 2012-08-24 11:12:36 +02:00
Rico Schüller 0968331524 d3dx9: Add a fixme for flags in D3DXGetShaderConstantTableEx(). 2012-08-24 10:26:08 +02:00
Rico Schüller 6676a729b4 d3dx9: Remove ctab_constant typedef. 2012-08-24 10:26:04 +02:00
Francois Gouget e282d418e3 d3dx9_36: Add a trailing '\n' to a couple of Wine traces. 2012-08-21 17:47:49 +02:00
Józef Kucia cda7633775 d3dx9: Implement ID3DXConstantTable::SetMatrixTransposePointerArray. 2012-08-21 17:47:43 +02:00
Józef Kucia 9fec159abc d3dx9: Implement ID3DXConstantTable::SetMatrixPointerArray. 2012-08-21 17:47:41 +02:00
Józef Kucia 51f4f01308 d3dx9: Implement ID3DXConstantTable::SetMatrixTranspose. 2012-08-21 17:47:40 +02:00
Józef Kucia edbd09fb45 d3dx9: Implement ID3DXConstantTable::SetMatrixTransposeArray. 2012-08-21 17:47:39 +02:00
Józef Kucia aaac25dc67 d3dx9: ID3DXConstantTable::SetFloat shouldn't change the value of matrix and vector constants. 2012-08-21 17:47:37 +02:00
Józef Kucia 2f73fd6ed5 d3dx9: ID3DXConstantTable::SetVector shouldn't change the value of matrix constants. 2012-08-21 17:47:36 +02:00
Józef Kucia 978971e1ac d3dx9: ID3DXConstantTable::SetMatrix should set scalar constants. 2012-08-21 17:47:34 +02:00
Rico Schüller 77993a610e d3dx9: Avoid TRUE : FALSE conditional expression. 2012-08-21 17:32:11 +02:00
Rico Schüller becf83fd86 d3dx9: Remove not needed TRACE. 2012-08-21 17:32:02 +02:00
Rico Schüller 892308fdb6 d3dx9: Identify D3DTSS_CONSTANT and FVF states. 2012-08-21 17:31:58 +02:00
Rico Schüller f9a4a9db1b d3dx9: Don't double check the technique. 2012-08-21 17:31:54 +02:00
Rico Schüller 98d196a808 d3dx9/tests: Add variable name test. 2012-08-20 14:58:45 +02:00
Rico Schüller c1193ab79b d3dx9: Move technique name handling to technique handle validation. 2012-08-20 14:58:39 +02:00
Rico Schüller 05818a3056 d3dx9: Use a separate function for the technique name. 2012-08-20 14:58:34 +02:00
Rico Schüller 9c1c964139 d3dx9: Silence missing function handling in the effect interface. 2012-08-20 14:58:30 +02:00
Rico Schüller 24ee16de09 d3dx9: Make annotation handling more generic for techniques and passes. 2012-08-20 14:58:22 +02:00
Rico Schüller 607c76a165 d3dx9: Improve check for empty braces for elements. 2012-08-20 14:58:10 +02:00
Rico Schüller 07ae14ad4c d3dx9: Return NULL if name is not given. 2012-08-20 14:58:05 +02:00
Józef Kucia b31b9864d9 d3dx9: Fix ID3DXConstantTable::SetMatrix. 2012-08-16 19:37:09 +02:00
Józef Kucia 53ce2a240b d3dx9: Fix ID3DXConstantTable::SetVector. 2012-08-16 19:37:04 +02:00
Józef Kucia 5fd7d9826c d3dx9/tests: Add tests for ID3DXConstantTable::SetValue. 2012-08-16 19:37:00 +02:00
Józef Kucia c2c9959bb8 d3dx9: Implement ID3DXConstantTable::SetValue. 2012-08-16 19:36:54 +02:00
Józef Kucia 6fff4b9e87 d3dx9/tests: Add tests for setting matrix shader constants. 2012-08-16 19:36:47 +02:00
Józef Kucia fbba743484 d3dx9: Implement ID3DXConstantTable::SetBoolArray. 2012-08-16 19:36:39 +02:00
Józef Kucia d2bbbc712e d3dx9: Implement ID3DXConstantTable::SetBool. 2012-08-16 19:36:28 +02:00
Józef Kucia 35dd7034cf d3dx9/tests: Add tests for ID3DXConstantTable::SetDefaults. 2012-08-14 12:48:01 +02:00