mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 23:49:56 +03:00
feat(gx): handle alpha device states in d3d backend
This commit is contained in:
1 parent
756cb7e05a
commit
2c059ce55e
1 file changed
+24
-1
@@ -459,7 +459,30 @@ void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t indexed) {
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::DsSet(EDeviceState state, uint32_t val) {
|
||||
// TODO
|
||||
if (this->m_deviceStates[state] == val) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (state) {
|
||||
// TODO handle other device states
|
||||
|
||||
case Ds_AlphaBlendEnable: {
|
||||
this->m_d3dDevice->SetRenderState(D3DRS_ALPHABLENDENABLE, val);
|
||||
break;
|
||||
}
|
||||
|
||||
case Ds_AlphaTestEnable: {
|
||||
this->m_d3dDevice->SetRenderState(D3DRS_ALPHATESTENABLE, val);
|
||||
break;
|
||||
}
|
||||
|
||||
case Ds_AlphaRef: {
|
||||
this->m_d3dDevice->SetRenderState(D3DRS_ALPHAREF, val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this->m_deviceStates[state] = val;
|
||||
}
|
||||
|
||||
char* CGxDeviceD3d::IBufLock(CGxBuf* buf) {
|
||||
|
||||
Reference in new issue
Block a user