mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[d3d11] Set up unused extra state for the backend correctly
This commit is contained in:
parent
fc52c1720d
commit
9fc09c843d
@ -3126,6 +3126,17 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
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,
|
||||
const D3D11CommonShader* pShaderModule) {
|
||||
@ -3565,6 +3576,7 @@ namespace dxvk {
|
||||
ApplyStencilRef();
|
||||
ApplyRasterizerState();
|
||||
ApplyViewportState();
|
||||
ApplyUnusedState();
|
||||
|
||||
BindDrawBuffer(
|
||||
m_state.id.argBuffer.ptr());
|
||||
|
@ -681,6 +681,8 @@ namespace dxvk {
|
||||
|
||||
void ApplyViewportState();
|
||||
|
||||
void ApplyUnusedState();
|
||||
|
||||
void BindShader(
|
||||
DxbcProgramType ShaderStage,
|
||||
const D3D11CommonShader* pShaderModule);
|
||||
|
Loading…
x
Reference in New Issue
Block a user