From 55e3fb0146c3cdeac76ce857abd66b864d648f7d Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Mon, 14 Dec 2015 14:59:20 -0700 Subject: vulkan: Changes for header version 211 Add anisotropyEnable to VkSamplerCreateInfo. Add inheritedQueries to VkPhysicalDeviceFeatures --- demos/cube.c | 1 + demos/tri.c | 1 + demos/vulkaninfo.c | 1 + include/vulkan/vulkan.h | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/demos/cube.c b/demos/cube.c index 3acb8fa3..25cf0773 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -1194,6 +1194,7 @@ static void demo_prepare_textures(struct demo *demo) .addressModeV = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, .addressModeW = VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, .mipLodBias = 0.0f, + .anisotropyEnable = VK_FALSE, .maxAnisotropy = 1, .compareOp = VK_COMPARE_OP_NEVER, .minLod = 0.0f, diff --git a/demos/tri.c b/demos/tri.c index 19848a4e..17b53443 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -955,6 +955,7 @@ static void demo_prepare_textures(struct demo *demo) .addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT, .addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT, .mipLodBias = 0.0f, + .anisotropyEnable = VK_FALSE, .maxAnisotropy = 1, .compareOp = VK_COMPARE_OP_NEVER, .minLod = 0.0f, diff --git a/demos/vulkaninfo.c b/demos/vulkaninfo.c index fb6b6cbb..c76ee149 100644 --- a/demos/vulkaninfo.c +++ b/demos/vulkaninfo.c @@ -829,6 +829,7 @@ static void app_gpu_dump_features(const struct app_gpu *gpu) printf("\tsparseResidency16Samples = %u\n", features->sparseResidency16Samples ); printf("\tsparseResidencyAliased = %u\n", features->sparseResidencyAliased ); printf("\tvariableMultisampleRate = %u\n", features->variableMultisampleRate ); + printf("\tiheritedQueries = %u\n", features->inheritedQueries ); } static void app_dump_sparse_props(const VkPhysicalDeviceSparseProperties *sparseProps) diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 598d98eb..d9f8046c 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -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, 210, 0) +#define VK_API_VERSION VK_MAKE_VERSION(0, 211, 0) #define VK_NULL_HANDLE 0 @@ -1183,6 +1183,7 @@ typedef struct VkPhysicalDeviceFeatures { VkBool32 sparseResidency16Samples; VkBool32 sparseResidencyAliased; VkBool32 variableMultisampleRate; + VkBool32 inheritedQueries; } VkPhysicalDeviceFeatures; typedef struct VkFormatProperties { @@ -1851,6 +1852,7 @@ typedef struct VkSamplerCreateInfo { VkSamplerAddressMode addressModeV; VkSamplerAddressMode addressModeW; float mipLodBias; + VkBool32 anisotropyEnable; float maxAnisotropy; VkBool32 compareEnable; VkCompareOp compareOp; -- cgit v1.2.3