mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
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(
|
||||
DxbcProgramType ShaderStage,
|
||||
@ -3565,6 +3576,7 @@ namespace dxvk {
|
||||
ApplyStencilRef();
|
||||
ApplyRasterizerState();
|
||||
ApplyViewportState();
|
||||
ApplyUnusedState();
|
||||
|
||||
BindDrawBuffer(
|
||||
m_state.id.argBuffer.ptr());
|
||||
|
@ -680,6 +680,8 @@ namespace dxvk {
|
||||
void ApplyRasterizerState();
|
||||
|
||||
void ApplyViewportState();
|
||||
|
||||
void ApplyUnusedState();
|
||||
|
||||
void BindShader(
|
||||
DxbcProgramType ShaderStage,
|
||||
|
Loading…
x
Reference in New Issue
Block a user