D3D11: support all forms of VLC_CODEC_RG32
VLC_CODEC_RG32
is mapped to DXGI_FORMAT_B8G8R8X8_UNORM
which has a fixed position for R,G and B colors. However VLC_CODEC_RG32
is paired with i_rmask/i_gmask/i_bmask which can position the RGB colors in different places. It should be possible to support all variants using a permutation matrix in the RGB shader. This would avoid a conversion filter in CPU just for that.