v155: Bug 14435 - Remove abbreviations in VkClearColor
authorCody Northrop <cody@lunarg.com>
Tue, 25 Aug 2015 21:26:38 +0000 (15:26 -0600)
committerCody Northrop <cody@lunarg.com>
Wed, 26 Aug 2015 15:59:59 +0000 (09:59 -0600)
demos/cube.c
demos/tri.c
include/vulkan.h

index 5fa6000..759e636 100644 (file)
@@ -514,8 +514,8 @@ static void demo_draw_build_cmd(struct demo *demo, VkCmdBuffer cmd_buf)
         .framebuffer = VK_NULL_HANDLE,
     };
     const VkClearValue clear_values[2] = {
-        [0] = { .color.f32 = { 0.2f, 0.2f, 0.2f, 0.2f } },
-        [1] = { .ds = { 1.0f, 0 } },
+        [0] = { .color.float32 = { 0.2f, 0.2f, 0.2f, 0.2f } },
+        [1] = { .depthStencil = { 1.0f, 0 } },
     };
     const VkRenderPassBeginInfo rp_begin = {
         .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO,
index ffc19cd..f515ae1 100644 (file)
@@ -357,8 +357,8 @@ static void demo_draw_build_cmd(struct demo *demo)
         .framebuffer = VK_NULL_HANDLE,
     };
     const VkClearValue clear_values[2] = {
-        [0] = { .color.f32 = { 0.2f, 0.2f, 0.2f, 0.2f } },
-        [1] = { .ds = { 0.9f, 0 } },
+        [0] = { .color.float32 = { 0.2f, 0.2f, 0.2f, 0.2f } },
+        [1] = { .depthStencil = { 0.9f, 0 } },
     };
     const VkRenderPassBeginInfo rp_begin = {
         .sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO,
index 010123d..b032bf7 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
     ((major << 22) | (minor << 12) | patch)
 
 // Vulkan API version supported by this file
-#define VK_API_VERSION VK_MAKE_VERSION(0, 154, 0)
+#define VK_API_VERSION VK_MAKE_VERSION(0, 155, 0)
 
 
 #if defined(__cplusplus) && (_MSC_VER >= 1800 || __cplusplus >= 201103L)
@@ -2013,9 +2013,9 @@ typedef struct {
 } VkBufferImageCopy;
 
 typedef union {
-    float                                       f32[4];
-    int32_t                                     s32[4];
-    uint32_t                                    u32[4];
+    float                                       float32[4];
+    int32_t                                     int32[4];
+    uint32_t                                    uint32[4];
 } VkClearColorValue;
 
 typedef struct {
@@ -2038,7 +2038,7 @@ typedef struct {
 
 typedef union {
     VkClearColorValue                           color;
-    VkClearDepthStencilValue                    ds;
+    VkClearDepthStencilValue                    depthStencil;
 } VkClearValue;
 
 typedef struct {