On Tue May 16 11:07:14 2023 +0000, Zhiyi Zhang wrote:
There is also the WIC render target. Can it be simplified as well? Please see https://gitlab.winehq.org/zhiyi/wine/-/commit/ca736a573b9d6b55b5483cb4dff028... at https://gitlab.winehq.org/zhiyi/wine/-/commits/dev
For WIC one, dealing with WIC format directly looks suspicious. I think what needs to happen is we need to store same description as for other targets, after resolving WIC format to corresponding pixel format. That will handle alpha mode as well. I don't know what's going on with feature levels, but we are not handling this correctly right now anyway.