ConsoleEnlarge();
#endif
- major = VK_API_VERSION >> 22;
- minor = (VK_API_VERSION >> 12) & 0x3ff;
- patch = VK_API_VERSION & 0xfff;
+ major = VK_API_VERSION_1_0 >> 22;
+ minor = (VK_API_VERSION_1_0 >> 12) & 0x3ff;
+ patch = VK_HEADER_VERSION & 0xfff;
printf("===========\n");
printf("VULKAN INFO\n");
printf("===========\n\n");
// File: vk_platform.h
//
/*
-** Copyright (c) 2014-2016 The Khronos Group Inc.
+** Copyright (c) 2014-2015 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and/or associated documentation files (the
*/
-#ifndef __VK_PLATFORM_H__
-#define __VK_PLATFORM_H__
+#ifndef VK_PLATFORM_H_
+#define VK_PLATFORM_H_
#ifdef __cplusplus
extern "C"
#include <xcb/xcb.h>
#endif
-#endif // __VK_PLATFORM_H__
+#endif
#define VK_MAKE_VERSION(major, minor, patch) \
(((major) << 22) | ((minor) << 12) | (patch))
-// Vulkan API version supported by this file
-#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 5)
+// DEPRECATED: This define has been removed. Specific version defines (e.g. VK_API_VERSION_1_0), or the VK_MAKE_VERSION macro, should be used instead.
+//#define VK_API_VERSION VK_MAKE_VERSION(1, 0, 0)
+
+// Vulkan 1.0 version number
+#define VK_API_VERSION_1_0 VK_MAKE_VERSION(1, 0, 0)
#define VK_VERSION_MAJOR(version) ((uint32_t)(version) >> 22)
#define VK_VERSION_MINOR(version) (((uint32_t)(version) >> 12) & 0x3ff)
#define VK_VERSION_PATCH(version) ((uint32_t)(version) & 0xfff)
+// Version of this file
+#define VK_HEADER_VERSION 6
+
#define VK_NULL_HANDLE 0
typedef enum VkFilter {
VK_FILTER_NEAREST = 0,
VK_FILTER_LINEAR = 1,
+ VK_FILTER_CUBIC_IMG = 1000015000,
VK_FILTER_BEGIN_RANGE = VK_FILTER_NEAREST,
VK_FILTER_END_RANGE = VK_FILTER_LINEAR,
VK_FILTER_RANGE_SIZE = (VK_FILTER_LINEAR - VK_FILTER_NEAREST + 1),
VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400,
VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800,
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000,
+ VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000,
} VkFormatFeatureFlagBits;
typedef VkFlags VkFormatFeatureFlags;
#define VK_NV_GLSL_SHADER_EXTENSION_NAME "VK_NV_glsl_shader"
+#define VK_IMG_filter_cubic 1
+#define VK_IMG_FILTER_CUBIC_SPEC_VERSION 1
+#define VK_IMG_FILTER_CUBIC_EXTENSION_NAME "VK_IMG_filter_cubic"
+
+
#ifdef __cplusplus
}
#endif
};
static const VkLayerProperties cv_global_layers[] = {{
- "VK_LAYER_LUNARG_core_validation", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_core_validation", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
template <class TCreateInfo> void ValidateLayerOrdering(const TCreateInfo &createInfo) {
// TODO: Why does this exist - can we just use global?
static const VkLayerProperties cv_device_layers[] = {{
- "VK_LAYER_LUNARG_core_validation", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_core_validation", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkEnumerateDeviceExtensionProperties(VkPhysicalDevice physicalDevice,
}
static const VkLayerProperties dl_global_layers[] = {{
- "VK_LAYER_LUNARG_device_limits", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_device_limits", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
}
static const VkLayerProperties pc_global_layers[] = {{
- "VK_LAYER_LUNARG_image", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_image", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
"name": "VK_LAYER_LUNARG_core_validation",
"type": "GLOBAL",
"library_path": "./libVkLayer_core_validation.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_device_limits",
"type": "GLOBAL",
"library_path": "./libVkLayer_device_limits.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_image",
"type": "GLOBAL",
"library_path": "./libVkLayer_image.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_object_tracker",
"type": "GLOBAL",
"library_path": "./libVkLayer_object_tracker.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_parameter_validation",
"type": "GLOBAL",
"library_path": "./libVkLayer_parameter_validation.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_swapchain",
"type": "GLOBAL",
"library_path": "./libVkLayer_swapchain.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_GOOGLE_threading",
"type": "GLOBAL",
"library_path": "./libVkLayer_threading.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "Google Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_GOOGLE_unique_objects",
"type": "GLOBAL",
"library_path": "./libVkLayer_unique_objects.so",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "Google Validation Layer"
}
}
static const VkLayerProperties pc_global_layers[] = {{
- "VK_LAYER_LUNARG_parameter_validation", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_parameter_validation", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
}
static const VkLayerProperties swapchain_layers[] = {{
- "VK_LAYER_LUNARG_swapchain", VK_API_VERSION, 1, "LunarG Validation Layer",
+ "VK_LAYER_LUNARG_swapchain", VK_LAYER_API_VERSION, 1, "LunarG Validation Layer",
}};
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL
static const VkLayerProperties globalLayerProps[] = {{
"VK_LAYER_GOOGLE_threading",
- VK_API_VERSION, // specVersion
+ VK_LAYER_API_VERSION, // specVersion
1, "Google Validation Layer",
}};
static const VkLayerProperties deviceLayerProps[] = {{
"VK_LAYER_GOOGLE_threading",
- VK_API_VERSION, // specVersion
+ VK_LAYER_API_VERSION, // specVersion
1, "Google Validation Layer",
}};
#include "vk_layer_logging.h"
#include "vk_layer_extension_utils.h"
#include "vk_safe_struct.h"
+#include "vk_layer_utils.h"
struct layer_data {
bool wsi_enabled;
extern "C" {
#endif
+#define VK_LAYER_API_VERSION (VK_VERSION_MAJOR(1) | VK_VERSION_MINOR(0) | VK_VERSION_PATCH(VK_HEADER_VERSION))
typedef enum VkFormatCompatibilityClass {
VK_FORMAT_COMPATIBILITY_CLASS_NONE_BIT = 0,
VK_FORMAT_COMPATIBILITY_CLASS_8_BIT = 1,
"name": "VK_LAYER_LUNARG_core_validation",
"type": "GLOBAL",
"library_path": ".\\VkLayer_core_validation.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_device_limits",
"type": "GLOBAL",
"library_path": ".\\VkLayer_device_limits.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_image",
"type": "GLOBAL",
"library_path": ".\\VkLayer_image.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_object_tracker",
"type": "GLOBAL",
"library_path": ".\\VkLayer_object_tracker.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_parameter_validation",
"type": "GLOBAL",
"library_path": ".\\VkLayer_parameter_validation.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_LUNARG_swapchain",
"type": "GLOBAL",
"library_path": ".\\VkLayer_swapchain.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "LunarG Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_GOOGLE_threading",
"type": "GLOBAL",
"library_path": ".\\VkLayer_threading.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "Google Validation Layer",
"instance_extensions": [
"name": "VK_LAYER_GOOGLE_unique_objects",
"type": "GLOBAL",
"library_path": ".\\VkLayer_unique_objects.dll",
- "api_version": "1.0.5",
+ "api_version": "1.0.6",
"implementation_version": "1",
"description": "Google Validation Layer"
}
1,
"",
0,
- VK_API_VERSION};
+ VK_API_VERSION_1_0};
VkInstanceCreateInfo instance_info = {VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
nullptr,
0,
sizeof(props->info.layerName));
// TODO what about specVersion? for now insert loader's built
// version
- props->info.specVersion = VK_API_VERSION;
+ props->info.specVersion = VK_API_VERSION_1_0;
}
}
}
ggep_body.append(' {')
if self.layer_name in ['unique_objects']:
ggep_body.append(' "VK_LAYER_GOOGLE_%s",' % layer)
- ggep_body.append(' VK_API_VERSION, // specVersion')
+ ggep_body.append(' VK_LAYER_API_VERSION, // specVersion')
ggep_body.append(' 1, // implementationVersion')
ggep_body.append(' "Google Validation Layer"')
else:
ggep_body.append(' "VK_LAYER_LUNARG_%s",' % layer)
- ggep_body.append(' VK_API_VERSION, // specVersion')
+ ggep_body.append(' VK_LAYER_API_VERSION, // specVersion')
ggep_body.append(' 1, // implementationVersion')
ggep_body.append(' "LunarG Validation Layer"')
ggep_body.append(' }')
gpdlp_body.append(' {')
if self.layer_name in ['unique_objects']:
gpdlp_body.append(' "VK_LAYER_GOOGLE_%s",' % layer)
- gpdlp_body.append(' VK_API_VERSION, // specVersion')
+ gpdlp_body.append(' VK_LAYER_API_VERSION, // specVersion')
gpdlp_body.append(' 1, // implementationVersion')
gpdlp_body.append(' "Google Validation Layer"')
else:
gpdlp_body.append(' "VK_LAYER_LUNARG_%s",' % layer)
- gpdlp_body.append(' VK_API_VERSION, // specVersion')
+ gpdlp_body.append(' VK_LAYER_API_VERSION, // specVersion')
gpdlp_body.append(' 1, // implementationVersion')
gpdlp_body.append(' "LunarG Validation Layer"')
gpdlp_body.append(' }')