aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-15 12:57:38 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-10-23 17:10:05 -0600
commit0db2c910ea48122e229ea45ad3301bf9a70a5331 (patch)
treed9d5182aa5a7157ff14d671674e5db9e6a86b70b
parentcb59a5d8e82f6268138efb9fe29adade55d3b7c1 (diff)
downloadusermoji-0db2c910ea48122e229ea45ad3301bf9a70a5331.tar.xz
misc: Rename depthClip to depthClamp
Implementations will need to invert their behavior. commit: 60a6646e24e58b1e2c44ea8eeb1017fc133593a1
-rw-r--r--demos/cube.c2
-rw-r--r--demos/tri.c2
-rw-r--r--demos/vulkaninfo.c2
-rw-r--r--include/vulkan.h4
4 files changed, 5 insertions, 5 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 5756ac43..335f11c8 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1524,7 +1524,7 @@ static void demo_prepare_pipeline(struct demo *demo)
rs.fillMode = VK_FILL_MODE_SOLID;
rs.cullMode = VK_CULL_MODE_BACK;
rs.frontFace = VK_FRONT_FACE_CCW;
- rs.depthClipEnable = VK_TRUE;
+ rs.depthClampEnable = VK_FALSE;
rs.rasterizerDiscardEnable = VK_FALSE;
rs.depthBiasEnable = VK_FALSE;
diff --git a/demos/tri.c b/demos/tri.c
index 54f4eaa2..174f877d 100644
--- a/demos/tri.c
+++ b/demos/tri.c
@@ -1286,7 +1286,7 @@ static void demo_prepare_pipeline(struct demo *demo)
rs.fillMode = VK_FILL_MODE_SOLID;
rs.cullMode = VK_CULL_MODE_BACK;
rs.frontFace = VK_FRONT_FACE_CW;
- rs.depthClipEnable = VK_TRUE;
+ rs.depthClampEnable = VK_FALSE;
rs.rasterizerDiscardEnable = VK_FALSE;
rs.depthBiasEnable = VK_FALSE;
diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c
index 7270fe57..4eeba067 100644
--- a/demos/vulkaninfo.c
+++ b/demos/vulkaninfo.c
@@ -768,7 +768,7 @@ static void app_gpu_dump_features(const struct app_gpu *gpu)
printf("\tdualSourceBlend = %u\n", features->dualSourceBlend );
printf("\tlogicOp = %u\n", features->logicOp );
printf("\tmultiDrawIndirect = %u\n", features->multiDrawIndirect );
- printf("\tdepthClip = %u\n", features->depthClip );
+ printf("\tdepthClip = %u\n", features->depthClamp );
printf("\tdepthBiasClamp = %u\n", features->depthBiasClamp );
printf("\tfillModeNonSolid = %u\n", features->fillModeNonSolid );
printf("\tdepthBounds = %u\n", features->depthBounds );
diff --git a/include/vulkan.h b/include/vulkan.h
index 03bcefea..27bd0227 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -1150,7 +1150,7 @@ typedef struct {
VkBool32 dualSourceBlend;
VkBool32 logicOp;
VkBool32 multiDrawIndirect;
- VkBool32 depthClip;
+ VkBool32 depthClamp;
VkBool32 depthBiasClamp;
VkBool32 fillModeNonSolid;
VkBool32 depthBounds;
@@ -1665,7 +1665,7 @@ typedef struct {
typedef struct {
VkStructureType sType;
const void* pNext;
- VkBool32 depthClipEnable;
+ VkBool32 depthClampEnable;
VkBool32 rasterizerDiscardEnable;
VkFillMode fillMode;
VkCullMode cullMode;