1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00

[d3d10] Implement OM(Set|Get)BlendState

This commit is contained in:
Philip Rebohle 2018-08-11 22:23:04 +02:00
parent f2381ac4eb
commit 2b5272134c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -1045,7 +1045,10 @@ namespace dxvk {
ID3D10BlendState* pBlendState,
const FLOAT BlendFactor[4],
UINT SampleMask) {
Logger::err("D3D10Device::OMSetBlendState: Not implemented");
D3D10BlendState* d3d10BlendState = static_cast<D3D10BlendState*>(pBlendState);
D3D11BlendState* d3d11BlendState = d3d10BlendState ? d3d10BlendState->GetD3D11Iface() : nullptr;
m_context->OMSetBlendState(d3d11BlendState, BlendFactor, SampleMask);
}
@ -1068,7 +1071,14 @@ namespace dxvk {
ID3D10BlendState** ppBlendState,
FLOAT BlendFactor[4],
UINT* pSampleMask) {
Logger::err("D3D10Device::OMGetBlendState: Not implemented");
ID3D11BlendState* d3d11BlendState = nullptr;
m_context->OMGetBlendState(
ppBlendState ? &d3d11BlendState : nullptr,
BlendFactor, pSampleMask);
if (ppBlendState != nullptr)
*ppBlendState = static_cast<D3D11BlendState*>(d3d11BlendState)->GetD3D10Iface();
}