mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] DepthClampEnable -> DepthClipEnable
There are subtle differences between the two that we should deal with in the backend at some point.
This commit is contained in:
parent
4819287029
commit
0d84ebd4c9
@ -48,7 +48,7 @@ namespace dxvk {
|
||||
m_state.depthBiasConstant = static_cast<float>(desc.DepthBias);
|
||||
m_state.depthBiasClamp = desc.DepthBiasClamp;
|
||||
m_state.depthBiasSlope = desc.SlopeScaledDepthBias;
|
||||
m_state.depthClampEnable = desc.DepthClipEnable ? VK_FALSE : VK_TRUE;
|
||||
m_state.depthClipEnable = desc.DepthClipEnable;
|
||||
m_state.sampleCount = VkSampleCountFlags(desc.ForcedSampleCount);
|
||||
|
||||
if (desc.AntialiasedLineEnable)
|
||||
|
@ -572,7 +572,7 @@ namespace dxvk {
|
||||
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
|
||||
m_rsState.cullMode = VK_CULL_MODE_BACK_BIT;
|
||||
m_rsState.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE;
|
||||
m_rsState.depthClampEnable = VK_FALSE;
|
||||
m_rsState.depthClipEnable = VK_FALSE;
|
||||
m_rsState.depthBiasEnable = VK_FALSE;
|
||||
m_rsState.depthBiasConstant = 0.0f;
|
||||
m_rsState.depthBiasClamp = 0.0f;
|
||||
|
@ -53,7 +53,7 @@ namespace dxvk {
|
||||
VkPolygonMode polygonMode;
|
||||
VkCullModeFlags cullMode;
|
||||
VkFrontFace frontFace;
|
||||
VkBool32 depthClampEnable;
|
||||
VkBool32 depthClipEnable;
|
||||
VkBool32 depthBiasEnable;
|
||||
float depthBiasConstant;
|
||||
float depthBiasClamp;
|
||||
|
@ -1652,7 +1652,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
void DxvkContext::setRasterizerState(const DxvkRasterizerState& rs) {
|
||||
m_state.gp.state.rsDepthClampEnable = rs.depthClampEnable;
|
||||
m_state.gp.state.rsDepthClipEnable = rs.depthClipEnable;
|
||||
m_state.gp.state.rsDepthBiasEnable = rs.depthBiasEnable;
|
||||
m_state.gp.state.rsPolygonMode = rs.polygonMode;
|
||||
m_state.gp.state.rsCullMode = rs.cullMode;
|
||||
|
@ -319,7 +319,7 @@ namespace dxvk {
|
||||
rsInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
|
||||
rsInfo.pNext = nullptr;
|
||||
rsInfo.flags = 0;
|
||||
rsInfo.depthClampEnable = state.rsDepthClampEnable;
|
||||
rsInfo.depthClampEnable = !state.rsDepthClipEnable;
|
||||
rsInfo.rasterizerDiscardEnable = rasterizedStream < 0;
|
||||
rsInfo.polygonMode = state.rsPolygonMode;
|
||||
rsInfo.cullMode = state.rsCullMode;
|
||||
|
@ -81,7 +81,7 @@ namespace dxvk {
|
||||
VkVertexInputBindingDescription ilBindings[DxvkLimits::MaxNumVertexBindings];
|
||||
uint32_t ilDivisors[DxvkLimits::MaxNumVertexBindings];
|
||||
|
||||
VkBool32 rsDepthClampEnable;
|
||||
VkBool32 rsDepthClipEnable;
|
||||
VkBool32 rsDepthBiasEnable;
|
||||
VkPolygonMode rsPolygonMode;
|
||||
VkCullModeFlags rsCullMode;
|
||||
|
@ -19,7 +19,7 @@ namespace dxvk::hud {
|
||||
m_rsState.polygonMode = VK_POLYGON_MODE_FILL;
|
||||
m_rsState.cullMode = VK_CULL_MODE_BACK_BIT;
|
||||
m_rsState.frontFace = VK_FRONT_FACE_CLOCKWISE;
|
||||
m_rsState.depthClampEnable = VK_FALSE;
|
||||
m_rsState.depthClipEnable = VK_FALSE;
|
||||
m_rsState.depthBiasEnable = VK_FALSE;
|
||||
m_rsState.depthBiasConstant = 0.0f;
|
||||
m_rsState.depthBiasClamp = 0.0f;
|
||||
|
Loading…
x
Reference in New Issue
Block a user