Bug 14407 - Add texelCoords to Sampler state
authorCody Northrop <cody@lunarg.com>
Tue, 11 Aug 2015 21:50:55 +0000 (15:50 -0600)
committerCody Northrop <cody@lunarg.com>
Tue, 11 Aug 2015 23:16:15 +0000 (17:16 -0600)
demos/cube.c
demos/tri.c
include/vulkan.h

index e2f2049..0d0dff2 100644 (file)
@@ -1197,6 +1197,7 @@ static void demo_prepare_textures(struct demo *demo)
             .minLod = 0.0f,
             .maxLod = 0.0f,
             .borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE,
+            .texelCoords = VK_FALSE,
         };
 
         VkImageViewCreateInfo view = {
index 9cfa48d..950da4b 100644 (file)
@@ -847,6 +847,7 @@ static void demo_prepare_textures(struct demo *demo)
             .minLod = 0.0f,
             .maxLod = 0.0f,
             .borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE,
+            .texelCoords = VK_FALSE,
         };
         VkImageViewCreateInfo view = {
             .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
index 6e73ebf..067546b 100644 (file)
@@ -1753,6 +1753,7 @@ typedef struct {
     float                                       minLod;
     float                                       maxLod;
     VkBorderColor                               borderColor;
+    VkBool32                                    texelCoords;
 } VkSamplerCreateInfo;
 
 typedef struct {