Commit Graph

209 Commits

Author SHA1 Message Date
Michael Stefaniuc 4ffc5e66ea d3d10: Remove superfluous TRUE : FALSE conditional expression.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 11:46:35 +02:00
Connor McAdams 1db43d5f55 d3d10: Implement ShaderResource effect variable set method.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-27 21:16:13 +01:00
Connor McAdams ab0a3cb2ff d3d10: Apply shader resources for shaders used in pass.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-25 22:30:40 +01:00
Connor McAdams 176c1c6b4c d3d10: Add impl_from_ID3D10EffectShaderVariable.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-25 22:30:40 +01:00
Connor McAdams f8086a3e7e d3d10: Get resources used by effect shaders.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-24 19:43:38 +01:00
Connor McAdams 71804bfab0 d3d10: Implement matrix effect variable get methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-24 19:43:38 +01:00
Connor McAdams 00861d10ec d3d10: Implement matrix effect variable set methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-24 19:43:38 +01:00
Connor McAdams ac0c13ee20 d3d10: Implement vector effect variable get methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Connor McAdams 177a0701fb d3d10: Implement vector effect variable set methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Connor McAdams 7d77524880 d3d10: Implement scalar effect variable get methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Connor McAdams 49d49e5053 d3d10: Implement scalar effect variable set methods.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-12 21:18:18 +01:00
Connor McAdams 490bc0f19b d3d10: Introduce an effect buffer variable structure.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-25 23:43:18 +01:00
Connor McAdams b44d6c25b2 d3d10: Move private effect functions to effect.c.
Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-31 00:33:46 +01:00
Michael Stefaniuc cfd1f614bc d3d10: Avoid casts from COM object to interface.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-06 18:58:02 +02:00
Alexandre Julliard 4caf450aa7 d3d10: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 15:04:06 +02:00
Michael Stefaniuc 68b51aa543 d3d10: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:39:30 +02:00
Henri Verbeet fc055fc0ef d3d10: Use the global memory allocation helpers.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:52 +01:00
Henri Verbeet 1bcc7ce75f d3d10: Validate offsets and size in parse_fx10_type() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-10 22:26:38 +09:00
Henri Verbeet 7f6520a2bb d3d10: Validate offsets in parse_shader() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-10 22:26:36 +09:00
Andrey Gusev 0cd12e294e d3d10: Fix a typo in depthstencilstate_count variable name.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 00:10:51 +09:00
Henri Verbeet 200bfa97a8 d3d10: Validate the base offset in parse_fx10_body() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 10:21:48 +09:00
Henri Verbeet e36630f702 d3d10: Validate the data size in parse_fx10() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 10:21:48 +09:00
Henri Verbeet 1f38359ec5 d3d10: Names and semantics are allowed to be NULL (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 10:21:48 +09:00
Henri Verbeet 01f8e55d38 d3d10: Simply use d3d10_effect_type_destroy() in d3d10_effect_local_buffer_destroy().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 10:21:48 +09:00
Henri Verbeet 908a8e677c d3d10: Check if the type was initialised in d3d10_effect_variable_destroy() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 10:21:48 +09:00
Henri Verbeet c8ef7e835c d3d10: Initialise the type tree in D3D10CreateEffectFromMemory() (AFL).
Otherwise we'd crash if we failed parsing the effect before parse_fx10_body().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 16:56:15 +09:00
Henri Verbeet 6042c2a36b d3d10: Validate offsets and sizes in read_value_list() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 16:56:14 +09:00
Henri Verbeet 2594f58eb0 d3d10: Validate offsets in parse_fx10_object() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 16:56:14 +09:00
Henri Verbeet d76f7f1204 d3d10: Introduce fx10_copy_string() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 10:44:35 +09:00
Henri Verbeet 775c7edbc3 d3d10: Introduce a helper function to allocate arrays (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-26 10:44:32 +09:00
Henri Verbeet 22d52ed59d d3d10: Validate offsets and sizes in shader_parse_signature() (AFL).
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-25 15:43:55 +09:00
Henri Verbeet d3aba2d635 d3d10: Release sampler state references in d3d10_effect_variable_destroy(). 2014-02-14 11:52:54 +01:00
Henri Verbeet 7c70f5434e d3d10: Release rasterizer state references in d3d10_effect_variable_destroy(). 2014-02-14 11:52:51 +01:00
Henri Verbeet 577217f91a d3d10: Release blend state references in d3d10_effect_variable_destroy(). 2014-02-14 11:52:49 +01:00
Henri Verbeet bf17789a33 d3d10: Release depth stencil state references in d3d10_effect_variable_destroy(). 2014-02-14 11:52:46 +01:00
Henri Verbeet 708615056c d3d10: Avoid LPCSTR. 2013-09-18 13:11:25 +02:00
Henri Verbeet 7cea4645c5 d3d10: Implement d3d10_effect_sampler_variable_GetSampler(). 2012-10-09 09:59:33 +02:00
Henri Verbeet eda5c39335 d3d10: Handle blend state in d3d10_effect_object_apply(). 2012-10-09 09:59:29 +02:00
Henri Verbeet b2228834c7 d3d10: Handle depth stencil state in d3d10_effect_object_apply(). 2012-10-08 11:28:27 +02:00
Henri Verbeet 16c6e4e332 d3d10: Handle rasterizer state in d3d10_effect_object_apply(). 2012-10-08 11:28:21 +02:00
Henri Verbeet 9341821311 d3d10: Implement d3d10_effect_rasterizer_variable_GetRasterizerState(). 2012-10-01 12:10:48 +02:00
Henri Verbeet 14b9f3d295 d3d10: Implement d3d10_effect_depth_stencil_variable_GetDepthStencilState(). 2012-10-01 12:10:43 +02:00
Henri Verbeet fb2dac9621 d3d10: Implement d3d10_effect_blend_variable_GetBlendState(). 2012-09-27 13:10:35 +02:00
Henri Verbeet 13c00a9d2e d3d10: Use a union to store effect variable data instead of a void pointer. 2012-09-27 13:10:24 +02:00
Henri Verbeet 084e967c0d d3d10: Introduce a state object variable structure. 2012-09-26 14:40:23 +02:00
Henri Verbeet 7d7d1836f6 d3d10: Properly handle arrays of state objects. 2012-09-26 11:02:53 +02:00
Henri Verbeet 4f2c93e248 d3d10: Store shader variables in d3d10_effect_pass instead of d3d10_effect_object. 2012-09-25 11:19:00 +02:00
Henri Verbeet 2a83e1a581 d3d10: Store shaders directly in d3d10_effect_object. 2012-09-25 11:18:54 +02:00
Henri Verbeet 1dcc63c170 d3d10: Implement d3d10_effect_shader_variable_GetPixelShader(). 2012-09-24 09:57:59 +02:00
Henri Verbeet 90df33f0b3 d3d10: Implement d3d10_effect_shader_variable_GetGeometryShader(). 2012-09-24 09:57:54 +02:00