Commit Graph

149 Commits

Author SHA1 Message Date
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 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 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
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 c2c9959bb8 d3dx9: Implement ID3DXConstantTable::SetValue. 2012-08-16 19:36:54 +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 fea0b7dcbe d3dx9: Implement ID3DXConstantTable::SetDefaults. 2012-08-14 12:48:00 +02:00
Józef Kucia 711ee8a792 d3dx9: Correctly handle constants without default values in D3DXGetShaderConstantTableEx. 2012-08-14 12:48:00 +02:00
Józef Kucia e67920f12f d3dx9: Introduce a helper function for setting float shader constants. 2012-08-14 12:47:59 +02:00
Józef Kucia c9f9025633 d3dx9: Introduce helper functions to operate on constant handles. 2012-08-14 12:47:59 +02:00
Henri Verbeet db18815147 d3dx9: Don't return a pointer to the implementation in ID3DXConstantTableImpl_QueryInterface(). 2012-04-09 12:03:02 +02:00
Rico Schüller 7b3863fec0 d3dx9: Fix constant table trace. 2012-01-23 11:06:10 +01:00
Rico Schüller 6ad34b161f d3dx9: Reorder argument check in D3DXGetShaderConstantTableEx(). 2012-01-23 11:06:04 +01:00
Rico Schüller 59b365f9bb d3dx9: Get rid of ID3DXConstantTableImpl typedef. 2012-01-23 11:05:50 +01:00
Rico Schüller 4a6e06d7bb d3dx9: Introduce free_constant_table(). 2012-01-23 11:05:45 +01:00
Rico Schüller a8f32acfed d3dx9: Fix variable sequence. 2011-12-27 16:55:04 +01:00
Rico Schüller be68d56efc d3dx9: Improve argument check in D3DXFindShaderComment(). 2011-10-25 16:57:26 +02:00
Rico Schüller a7df4958ab d3dx9: Use the variable instead of the type in HeapAlloc(). 2011-09-16 17:54:00 +02:00
Rico Schüller 7cfdaedd3e d3dx9: Use the original bytecode in D3DXGetShaderSamplers() instead of using a constant table. 2011-09-16 17:53:56 +02:00
Alexandre Julliard 5f484df06c Revert "d3dx9_36: Improved constant table handle support."
This reverts commit 48d03555a7.
It wasn't supposed to be committed.
2011-07-18 21:45:13 +02:00
Rico Schüller c42ee0339a d3dx9: Implement D3DXGetShaderSamplers(). 2011-07-18 16:23:29 +02:00
Travis Athougies 48d03555a7 d3dx9_36: Improved constant table handle support. 2011-07-18 16:23:28 +02:00
Travis Athougies c55caea1b3 d3dx9_36: Separate calculation of Bytes. 2011-07-18 16:23:28 +02:00
Francois Gouget bdadc5d056 d3dx9_36: Add a trailing '\n' to some TRACE() calls. 2011-06-27 13:09:47 -05:00
Francois Gouget 71e41b81dd d3dx9_36: Fix compilation on systems that don't support nameless structs/unions. 2011-06-27 13:09:21 -05:00
Travis Athougies a76ac0a894 d3dx9_36: Implemented support for samplers in ID3DXConstantTable. 2011-06-23 09:47:34 +02:00
Travis Athougies 4a412c1b83 d3dx9_36: Implemented ID3DXConstantTable_SetMatrix and ID3DXConstantTable_SetMatrixArray. 2011-06-22 16:13:51 +02:00
Travis Athougies 9c138a182a d3dx9_36: Implemented ID3DXConstantTable_SetVector and ID3DXConstantTable_SetVectorArray. 2011-06-22 16:13:51 +02:00
Travis Athougies 73272d1664 d3dx9_36: Implemented ID3DXConstantTable_SetIntArray and ID3DXConstantTable_SetInt. 2011-06-22 16:13:51 +02:00
Travis Athougies 3fdcce1863 d3dx9_36: Implemented ID3DXConstantTable_SetFloatArray and ID3DXConstantTable_SetFloat. 2011-06-22 16:13:51 +02:00
Michael Stefaniuc c84b8dbd3e d3dx9_36: COM cleanup for the ID3DXInclude iface. 2011-01-27 14:14:59 +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
Travis Athougies ca7405a9a1 d3dx9_36: Improved constant table parsing. 2010-12-02 12:47:42 +01:00
Christian Costa 128cf64371 d3dx9: Constant table parsing foundations. 2010-10-13 12:03:05 +02: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
Matteo Bruni d6ead897e2 d3dx9: Fix D3DXCompileShaderFromFileW. 2010-09-08 19:54:14 +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
Matteo Bruni 3a6050b6ab d3dx9: Forward D3DXCompileShader to d3dcompiler. 2010-08-30 11:26:28 +02:00
Matteo Bruni 5dcb2e4b7e d3dcompiler: Move shader assembler implementation from d3dx9_36. 2010-08-25 17:34:24 +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
Francois Gouget 3133b71e92 d3dx9_36: Make assemble_shader() static. 2010-06-24 10:34:40 +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 18c6f23a94 d3dx9: Implement a basic bytecode writer.
Now the shader assembler is structurally complete and it correctly
assembles one trivial shader program.
2010-03-30 15:52:57 +02:00
Matteo Bruni 95afbeadf5 d3dx9: Implement D3DXAssembleShader function, really basic shader assembler.
Currently it only accepts a minimal subset of the syntax (e.g. just an
instruction and two register types supported) and doesn't produce any
real output (i.e. shader bytecode).
2010-03-30 15:52:57 +02:00
Matteo Bruni 7545416133 d3dx9: Partial implementation of D3DXAssembleShader function.
This only executes the preprocessing pass. No parsing of the shader yet.
2010-03-30 15:52:56 +02:00
Mikhail Maroukhine adf09ce66e d3dx9_36: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:12:36 +02:00
Christian Costa 978d51b29c d3dx9_36: Remove useless includes. 2010-03-25 10:01:20 +01:00
Francois Gouget 381d73e423 d3dx9_36: Add a trailing '\n' to a TRACE(). 2010-03-22 10:48:23 +01:00
Christian Costa 312aa4996e d3dx9_36: Fix method name. 2010-03-19 13:17:20 +01:00
Christian Costa 441ee39495 d3dx9_36: Add missing GetSamplerIndex method to ID3DXConstantTable. 2010-03-19 13:17:08 +01:00
Christian Costa 70b79445f6 d3dx9_36: Implement ID3DXConstantTableImpl_GetDesc + tests. 2010-03-19 13:16:06 +01:00
Henri Verbeet a8b76781bf d3dx9_36: Not implementing an interface is not an internal error. 2010-03-15 15:55:26 +01:00
Henri Verbeet d85730c8e3 d3dx9_36: ID3DXBuffer is a base interface for ID3DXConstantTable. 2010-03-15 15:55:19 +01:00
Christian Costa c29f186fe0 d3dx9_36: Rename variables in D3DXGetShaderConstantTable(Ex) to match naming convention used in the file. 2010-03-15 13:18:44 +01:00
Christian Costa 6dfe16fc48 d3dx9_36: Avoid dereferencing null pointers in trace (spotted by Paul Vriens). 2010-03-04 12:30:21 +01:00
Christian Costa a942fe6fd7 d3dx9_36: Remove useless HEAP_ZERO_MEMORY flag (spotted by Henri Verbeet). 2010-03-02 11:14:38 +01:00
Christian Costa 4072edc111 d3dx9_36: Find, store and enable retreival of CTAB comment data in shader (based on code from Luis Busquets). 2010-03-01 14:03:00 +01:00
Christian Costa ea50ef8e08 d3dx9_36: Implement D3DXFindShaderComment (based on code from Luis Busquets) + tests. 2010-03-01 13:57:01 +01:00
Christian Costa 66d66f2e22 d3dx9_36: Implement stubbed ID3DXConstantTable interface. 2010-03-01 13:56:14 +01:00
Christian Costa 88b2892a59 d3dx9_36: Add stub for D3DXGetShaderConstantTableEx. Implement D3DXGetShaderConstantTable. 2010-02-22 12:37:17 +01:00
Christian Costa 6b6db0dcb2 d3dx9_36: Improve some stubs. 2010-02-15 12:50:45 +01:00
Christian Costa 8f63f180c9 d3dx9_36: Add stub for D3DXCompileShader. 2010-02-11 14:38:44 +01:00
Matteo Bruni cbcf699856 d3dx9: D3DXAssembleShaderFromResource implementation. 2009-10-19 14:46:55 +02:00
Matteo Bruni c31121dd35 d3dx9: D3DXAssembleShader and D3DXAssembleShaderFromFile stubs. 2009-10-19 14:46:40 +02:00
Henri Verbeet 978b0b4784 d3dx9: Improve a few TRACEs. 2008-08-25 11:39:22 +02:00
Luis C. Busquets Pérez d9d8288508 d3dx9: Avoid assignment in D3DXGetVertexShaderProfile. 2008-08-05 14:09:36 +02:00
Luis C. Busquets Pérez 9b572170da d3dx9: Implementation of D3DXGetVertexShaderProfile. 2008-08-04 15:41:15 +02:00
Luis C. Busquets Pérez 457efd55d0 d3dx9: Implementation of D3DXGetPixelShaderProfile. 2008-08-04 15:40:52 +02:00
Luis Busquets fb70f818b7 d3dx9: Implement D3DXGetShaderVersion(). 2008-07-21 12:57:24 +02:00
Luis Busquets 9a93a49174 d3dx9: Implement D3DXGetShaderSize(). 2008-07-16 19:56:19 +02:00