misc: Rename depthClip to depthClamp
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 15 Oct 2015 18:57:38 +0000 (12:57 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 23 Oct 2015 23:10:05 +0000 (17:10 -0600)
Implementations will need to invert their behavior.
commit: 60a6646e24e58b1e2c44ea8eeb1017fc133593a1

demos/cube.c
demos/tri.c
demos/vulkaninfo.c
include/vulkan.h

index 5756ac4..335f11c 100644 (file)
@@ -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;
 
index 54f4eaa..174f877 100644 (file)
@@ -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;
 
index 7270fe5..4eeba06 100644 (file)
@@ -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                            );
index 03bcefe..27bd022 100644 (file)
@@ -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;