aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;