mirror of https://github.com/PCSX2/pcsx2.git
GSdx-d3d: Adjust D3D11Blend, get rid of some casts.
This commit is contained in:
parent
bf4997b6a5
commit
5e9ffc4a94
|
@ -398,9 +398,9 @@ void GSDevice11::SetupOM(OMDepthStencilSelector dssel, OMBlendSelector bsel, uin
|
||||||
{
|
{
|
||||||
int i = ((bsel.a * 3 + bsel.b) * 3 + bsel.c) * 3 + bsel.d;
|
int i = ((bsel.a * 3 + bsel.b) * 3 + bsel.c) * 3 + bsel.d;
|
||||||
|
|
||||||
bd.RenderTarget[0].BlendOp = (D3D11_BLEND_OP)m_blendMapD3D11[i].op;
|
bd.RenderTarget[0].BlendOp = m_blendMapD3D11[i].op;
|
||||||
bd.RenderTarget[0].SrcBlend = (D3D11_BLEND)m_blendMapD3D11[i].src;
|
bd.RenderTarget[0].SrcBlend = m_blendMapD3D11[i].src;
|
||||||
bd.RenderTarget[0].DestBlend = (D3D11_BLEND)m_blendMapD3D11[i].dst;
|
bd.RenderTarget[0].DestBlend = m_blendMapD3D11[i].dst;
|
||||||
bd.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
|
bd.RenderTarget[0].BlendOpAlpha = D3D11_BLEND_OP_ADD;
|
||||||
bd.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
|
bd.RenderTarget[0].SrcBlendAlpha = D3D11_BLEND_ONE;
|
||||||
bd.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO;
|
bd.RenderTarget[0].DestBlendAlpha = D3D11_BLEND_ZERO;
|
||||||
|
|
|
@ -304,7 +304,12 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct D3D11Blend {int bogus, op, src, dst;};
|
struct D3D11Blend
|
||||||
|
{
|
||||||
|
int bogus;
|
||||||
|
D3D11_BLEND_OP op;
|
||||||
|
D3D11_BLEND src, dst;
|
||||||
|
};
|
||||||
static const D3D11Blend m_blendMapD3D11[3*3*3*3];
|
static const D3D11Blend m_blendMapD3D11[3*3*3*3];
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
Loading…
Reference in New Issue