amerkoleci/Vortice.Windows

Blend State issue

Gavin-Williams opened this issue · 3 comments

OMSetBlendState in Vortice accepts an int for the sample mask, but DirectX accepts a UINT. Following the Direct X documentation for disabling blend and providing 0xFF FF FF FF for the mask produces incorrect results.

Is this an issue with Vortice or have you decided this for some reason?

If pass -1 then its the same, can you try please?

That didn't work either. hmm, it should have I think. RenderTargetWriteMask says Red | Alpha. I think it should say Zero or Black shoudn't it?

Here's the output for when Blend is not set at all (left) vs NoBlend config being set (right)...
BlendIssue

This commit improves marshal logic:

f7a8274

Can you test and tell me if it works?