mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[d3d11] Set up line rasterization mode appropriately
This commit is contained in:
parent
a67c99943a
commit
d066fbbaed
@ -44,8 +44,16 @@ namespace dxvk {
|
||||
m_depthBias.depthBiasSlope = desc.SlopeScaledDepthBias;
|
||||
m_depthBias.depthBiasClamp = desc.DepthBiasClamp;
|
||||
|
||||
if (desc.AntialiasedLineEnable)
|
||||
Logger::err("D3D11RasterizerState: Antialiased lines not supported");
|
||||
// Set up line rasterization mode
|
||||
const auto& features = device->GetDXVKDevice()->features();
|
||||
|
||||
if (desc.MultisampleEnable) {
|
||||
if (features.extLineRasterization.rectangularLines)
|
||||
m_state.lineMode = VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT;
|
||||
} else if (desc.AntialiasedLineEnable) {
|
||||
if (features.extLineRasterization.smoothLines)
|
||||
m_state.lineMode = VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user