wined3d: Use a string channel desc to initialize typed formats.
commitbb82bc78f439ba92ae5a40979c8037dcb10477d4
authorZebediah Figura <zfigura@codeweavers.com>
Wed, 11 Jan 2023 00:39:54 +0000 (10 18:39 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 24 Jan 2023 17:17:41 +0000 (24 18:17 +0100)
tree2d8f47140a1dc5aa383682dc64c96ebb69a17e08
parent941e685a5b06b45319e8c4c347976e225d657336
wined3d: Use a string channel desc to initialize typed formats.

Avoid the need for manually set type attributes, and initialize the component
count for all such formats.

This fixes use of R11G11B10_FLOAT as a vertex attribute format with the GL
backend. Since it has no corresponding typeless format, prior to this commit the
component count was uninitialized and hence use of the format would result in a
GL error.

This fixes a GL error with Dark Souls Remastered. I did not immediately observe
any corresponding rendering errors, however.
dlls/d3d10core/tests/d3d10core.c
dlls/d3d11/tests/d3d11.c
dlls/wined3d/utils.c