From: Courtney Goeltzenleuchter Date: Thu, 15 Oct 2015 18:57:38 +0000 (-0600) Subject: misc: Rename depthClip to depthClamp X-Git-Tag: upstream/1.1.92~4703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0db2c910ea48122e229ea45ad3301bf9a70a5331;p=platform%2Fupstream%2FVulkan-Tools.git misc: Rename depthClip to depthClamp Implementations will need to invert their behavior. commit: 60a6646e24e58b1e2c44ea8eeb1017fc133593a1 --- diff --git a/demos/cube.c b/demos/cube.c index 5756ac4..335f11c 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 54f4eaa..174f877 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 7270fe5..4eeba06 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 03bcefe..27bd022 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;