mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d11] Set up unused extra state for the backend correctly
This commit is contained in:
parent
fc52c1720d
commit
9fc09c843d
@ -3124,7 +3124,18 @@ namespace dxvk {
|
|||||||
cScissors.data());
|
cScissors.data());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void D3D11DeviceContext::ApplyUnusedState() {
|
||||||
|
// Initialize state that isn't exposed in D3D11
|
||||||
|
EmitCs([] (DxvkContext* ctx) {
|
||||||
|
DxvkExtraState xs;
|
||||||
|
xs.alphaCompareOp = VK_COMPARE_OP_ALWAYS;
|
||||||
|
|
||||||
|
ctx->setExtraState(xs);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void D3D11DeviceContext::BindShader(
|
void D3D11DeviceContext::BindShader(
|
||||||
DxbcProgramType ShaderStage,
|
DxbcProgramType ShaderStage,
|
||||||
@ -3565,6 +3576,7 @@ namespace dxvk {
|
|||||||
ApplyStencilRef();
|
ApplyStencilRef();
|
||||||
ApplyRasterizerState();
|
ApplyRasterizerState();
|
||||||
ApplyViewportState();
|
ApplyViewportState();
|
||||||
|
ApplyUnusedState();
|
||||||
|
|
||||||
BindDrawBuffer(
|
BindDrawBuffer(
|
||||||
m_state.id.argBuffer.ptr());
|
m_state.id.argBuffer.ptr());
|
||||||
|
@ -680,6 +680,8 @@ namespace dxvk {
|
|||||||
void ApplyRasterizerState();
|
void ApplyRasterizerState();
|
||||||
|
|
||||||
void ApplyViewportState();
|
void ApplyViewportState();
|
||||||
|
|
||||||
|
void ApplyUnusedState();
|
||||||
|
|
||||||
void BindShader(
|
void BindShader(
|
||||||
DxbcProgramType ShaderStage,
|
DxbcProgramType ShaderStage,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user