mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-18 12:48:27 +08:00
D3D11 BlendMode Mask wasn't hooked up
This commit is contained in:
parent
0f15437c4d
commit
47555a51cb
@ -1338,7 +1338,15 @@ namespace Blah
|
||||
blend.alpha_src == BlendFactor::One && blend.alpha_dst == BlendFactor::Zero
|
||||
);
|
||||
|
||||
desc.RenderTarget[0].RenderTargetWriteMask = D3D11_COLOR_WRITE_ENABLE_ALL;
|
||||
desc.RenderTarget[0].RenderTargetWriteMask = 0;
|
||||
if (((int)blend.mask & (int)BlendMask::Red) == (int)BlendMask::Red)
|
||||
desc.RenderTarget[0].RenderTargetWriteMask |= D3D11_COLOR_WRITE_ENABLE_RED;
|
||||
if (((int)blend.mask & (int)BlendMask::Green) == (int)BlendMask::Green)
|
||||
desc.RenderTarget[0].RenderTargetWriteMask |= D3D11_COLOR_WRITE_ENABLE_GREEN;
|
||||
if (((int)blend.mask & (int)BlendMask::Blue) == (int)BlendMask::Blue)
|
||||
desc.RenderTarget[0].RenderTargetWriteMask |= D3D11_COLOR_WRITE_ENABLE_BLUE;
|
||||
if (((int)blend.mask & (int)BlendMask::Alpha) == (int)BlendMask::Alpha)
|
||||
desc.RenderTarget[0].RenderTargetWriteMask |= D3D11_COLOR_WRITE_ENABLE_ALPHA;
|
||||
|
||||
if (desc.RenderTarget[0].BlendEnable)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user