Commit Graph

146 Commits

Author SHA1 Message Date
Paul Gofman 4b11a99108 d3dx9: Support skip_constants parameter for 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-07-18 20:43:34 +02:00
Paul Gofman 6498a03a8e d3dx9: Introduce d3dx_shader_get_ctab_constant() function and use it instead of ID3DXConstantTableImpl_GetConstantDesc().
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-07-18 20:43:34 +02:00
Christian Costa 8e80ee6837 d3dx9: Implement D3DXCreateTextureShader with stubbed ID3DXTextureShader interface.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 10:52:24 +09:00
Matteo Bruni 4d1192ad89 d3dx9: Cleanup header includes.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 14:12:29 +09:00
Nikolay Sivov 236d97fed9 d3dx9: Use proper enum member (Clang).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:31 +09:00
Frédéric Delanoy 3cdea7e50e d3dx9_36: Simplify conditional expression (PVS-Studio).
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 13:22:45 +09:00
Alistair Leslie-Hughes d55fe1f9ce d3dx9_36: Add D3DXCreateFragmentLinker, D3DXCreateFragmentLinkerEx stubs. 2015-07-31 12:05:14 +02:00
Francois Gouget f572279576 d3dx9_36: Remove unneeded NONAMELESSXXX directives. 2015-03-06 12:54:01 +09:00
Austin English c19876ed4e d3dx9_36: Add D3DXDisassembleShader stub. 2015-02-16 23:22:04 +09:00
Matteo Bruni ec364eaa4f d3dx9: Account for include paths mixing '/' and '\'.
Include pathnames are passed unchanged to ID3DInclude objects so e.g.
if a file is included as "path/file.h" the full pathname will have
mixed slashes.
2014-08-25 22:02:41 +02:00
Matteo Bruni d64ec66b41 d3dx9: Correctly set parent_data for direct includes from the main file. 2014-06-26 20:02:13 +02:00
Matteo Bruni 8b5cd9edbc d3dx9: Always use type->Rows as D3DXPC_MATRIX_ROWS parameters size. 2014-03-03 17:53:37 +01:00
André Hentschel 87c7c961f2 Assorted spelling fixes. 2014-01-06 17:33:24 +01:00
Rico Schüller e615c67bc7 d3dx9: Handle FX/TX blobs in D3DXFindShaderComment(). 2013-09-30 20:35:03 +02:00
Rico Schüller ae95176c0d d3dx9: Clamp register count for D3DXPC_MATRIX_COLUMNS. 2013-09-19 09:30:54 +02:00
Henri Verbeet 871967d0fb d3dx9: Avoid LPVOID. 2013-09-04 11:37:06 +02:00
Matteo Bruni 613d27ebeb d3dx9: Use the ID3DXInclude object to open the initial file in D3DX[Assemble|Compile|Preprocess]ShaderFromFile. 2013-09-03 16:58:37 +02:00
Matteo Bruni 1f6173a69f d3dx9: Add / improve traces in some shader-related functions. 2013-09-03 16:58:34 +02: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
Henri Verbeet 2a24b11af5 d3dx9: Avoid LPWSTR. 2013-09-02 18:02:46 +02:00
Henri Verbeet 82710124e3 d3dx9: Avoid LPCWSTR. 2013-08-30 11:19:05 +02:00
Henri Verbeet 7175367ad5 d3dx9: Avoid some needless casts. 2013-08-30 11:18:57 +02:00
Henri Verbeet c2eabf9e68 d3dx9: Get rid of some unused vtbl forward declarations. 2013-08-22 10:26:51 +02:00
Rico Schüller 1099bb5e76 d3dx9: Improve ID3DXConstantTable::SetDefaults(). 2013-07-29 15:01:31 +02:00
Christian Costa a8728893b7 d3dx9_36: Release shader if getting constant table fails in D3DXCompileShader. 2013-07-29 14:11:08 +02:00
Rico Schüller bdec3f951b d3dx9: Add support for structs to ID3DXConstantTable. 2013-07-27 11:49:07 -05:00
Rico Schüller 8231c8ef50 d3dx9: Improve ID3DXConstantTable::Set*(). 2013-07-22 17:17:15 +02:00
Rico Schüller 918abfef6a d3dx9: Merge get/is_valid_constant(). 2013-07-22 17:16:28 +02:00
Rico Schüller e6e09eb465 d3dx9: Improve shader constant table parsing. 2013-07-22 17:16:22 +02:00
Christian Costa a119f2666a d3dx9_36: Add trace to D3DAssembleShader and D3DCompileShader. 2013-07-22 17:16:03 +02:00
Michael Stefaniuc 20f1016bc8 d3dx9_36: Remove ERR() on HeapAlloc failure for small sizes known at compile time. 2013-02-07 15:48:26 +01:00
Rico Schüller c1d1d74614 d3dx9: Use lowercase hexadecimal values. 2013-01-11 11:58:34 +01:00
Rico Schüller 7ff6afd091 d3dx9: Remove unused variable. 2013-01-08 16:35:33 +01:00
Rico Schüller e7cd340e8a d3dx9: Constify some variables. 2013-01-08 16:35:33 +01:00
Rico Schüller 87ef00fc34 d3dx9: Use sizeof variable, not type. 2013-01-08 16:35:33 +01:00
Rico Schüller 6cb4301021 d3dx9: Handle invalid byte code in D3DXGetShaderConstantTableEx(). 2013-01-08 16:35:32 +01:00
Rico Schüller a847b9dddb d3dx9: Always set the table = NULL in D3DXGetShaderConstantTableEx(). 2013-01-08 16:35:32 +01:00
Rico Schüller bc4a4f5f3b d3dx9: Handle invalid byte code in D3DXFindShaderComment(). 2013-01-08 16:35:31 +01:00
Henri Verbeet 69eeb35e51 d3dx9: Avoid LPD3DXINCLUDE. 2012-11-26 11:50:15 +01:00
Henri Verbeet 63acbcbf8a d3dx9: Avoid LPD3DXCONSTANTTABLE. 2012-11-23 14:40:24 +01:00
Henri Verbeet 4ba6974345 d3dx9: Avoid LPDIRECT3DDEVICE9. 2012-10-29 10:47:03 +01: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 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 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