wined3d: Extend wined3d_check_device_format() to allow querying general format support.
commit9128ec0bce04a862faf5f09d20fc9dbb7e72bdd4
authorJózef Kucia <jkucia@codeweavers.com>
Wed, 31 May 2017 09:43:18 +0000 (31 11:43 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 31 May 2017 18:51:45 +0000 (31 20:51 +0200)
tree62a8035217dbdacd4ae1a966e0a447de11db732b
parentaea576b10f4f72941a8fb3da94ee3959ef0ae384
wined3d: Extend wined3d_check_device_format() to allow querying general format support.

For D3D10+.

When WINED3D_RTYPE_NONE is passed the wined3d_check_device_format()
function checks if a format is supported for all reasonable resource
types for a given usage. For now render target and depth stencil support
can be queried using this method.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/directx.c
dlls/wined3d/utils.c
include/wine/wined3d.h