aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2015-10-26 19:08:09 +0800
committerChia-I Wu <olv@lunarg.com>2015-10-30 20:49:23 +0800
commit083d492b8397c6336892b4e25fa45a97f7687cab (patch)
tree7135c6775dfd1747373958cea6768da378f49696 /layers/draw_state.cpp
parentc16d2e0849b245c69ef0c13396864a5f1a447777 (diff)
downloadusermoji-083d492b8397c6336892b4e25fa45a97f7687cab.tar.xz
bug 14365: Rename slopeScaledDepthBias to depthBiasSlopeScaled (WIP)
s/slopeScaledDepthBias/depthBiasSlopeFactor/g s/depthBias\b/depthBiasConstantFactor/g https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14365
Diffstat (limited to 'layers/draw_state.cpp')
-rwxr-xr-xlayers/draw_state.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 0e0c2b9f..eab667e4 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -2418,9 +2418,9 @@ VK_LAYER_EXPORT void VKAPI vkCmdSetLineWidth(VkCmdBuffer cmdBuffer, float lineWi
VK_LAYER_EXPORT void VKAPI vkCmdSetDepthBias(
VkCmdBuffer cmdBuffer,
- float depthBias,
+ float depthBiasConstantFactor,
float depthBiasClamp,
- float slopeScaledDepthBias)
+ float depthBiasSlopeFactor)
{
VkBool32 skipCall = VK_FALSE;
layer_data* dev_data = get_my_data_ptr(get_dispatch_key(cmdBuffer), layer_data_map);
@@ -2430,15 +2430,15 @@ VK_LAYER_EXPORT void VKAPI vkCmdSetDepthBias(
updateCBTracking(pCB);
skipCall |= addCmd(dev_data, pCB, CMD_SETDEPTHBIASSTATE);
pCB->status |= CBSTATUS_DEPTH_BIAS_SET;
- pCB->depthBias = depthBias;
+ pCB->depthBiasConstantFactor = depthBiasConstantFactor;
pCB->depthBiasClamp = depthBiasClamp;
- pCB->slopeScaledDepthBias = slopeScaledDepthBias;
+ pCB->depthBiasSlopeFactor = depthBiasSlopeFactor;
} else {
skipCall |= report_error_no_cb_begin(dev_data, cmdBuffer, "vkCmdSetDepthBias()");
}
}
if (VK_FALSE == skipCall)
- dev_data->device_dispatch_table->CmdSetDepthBias(cmdBuffer, depthBias, depthBiasClamp, slopeScaledDepthBias);
+ dev_data->device_dispatch_table->CmdSetDepthBias(cmdBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor);
}
VK_LAYER_EXPORT void VKAPI vkCmdSetBlendConstants(VkCmdBuffer cmdBuffer, const float blendConst[4])