Skip to content

Commit

Permalink
build: Update to header 1.4.309
Browse files Browse the repository at this point in the history
  • Loading branch information
mikes-lunarg committed Feb 21, 2025
1 parent dbe142e commit 176fef0
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 6 deletions.
2 changes: 1 addition & 1 deletion icd/VkICD_mock_icd.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"file_format_version": "1.0.1",
"ICD": {
"library_path": "@JSON_LIBRARY_PATH@",
"api_version": "1.4.307"
"api_version": "1.4.309"
}
}
18 changes: 18 additions & 0 deletions icd/generated/function_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ static const std::unordered_map<std::string, uint32_t> device_extension_map = {
{"VK_EXT_external_memory_metal", 1},
{"VK_KHR_depth_clamp_zero_one", 1},
{"VK_EXT_vertex_attribute_robustness", 1},
{"VK_NV_present_metering", 1},
};


Expand Down Expand Up @@ -3756,6 +3757,7 @@ static VKAPI_ATTR void VKAPI_CALL GetPrivateDataEXT(



#ifdef VK_ENABLE_BETA_EXTENSIONS

static VKAPI_ATTR VkResult VKAPI_CALL CreateCudaModuleNV(
VkDevice device,
Expand Down Expand Up @@ -3788,6 +3790,7 @@ static VKAPI_ATTR void VKAPI_CALL DestroyCudaFunctionNV(
static VKAPI_ATTR void VKAPI_CALL CmdCudaLaunchKernelNV(
VkCommandBuffer commandBuffer,
const VkCudaLaunchInfoNV* pLaunchInfo);
#endif /* VK_ENABLE_BETA_EXTENSIONS */


#ifdef VK_USE_PLATFORM_METAL_EXT
Expand Down Expand Up @@ -4646,6 +4649,9 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetMemoryMetalHandlePropertiesEXT(
#endif /* VK_USE_PLATFORM_METAL_EXT */


#ifdef VK_ENABLE_BETA_EXTENSIONS
#endif /* VK_ENABLE_BETA_EXTENSIONS */


static VKAPI_ATTR VkResult VKAPI_CALL CreateAccelerationStructureKHR(
VkDevice device,
Expand Down Expand Up @@ -5439,12 +5445,24 @@ static const std::unordered_map<std::string, void*> name_to_funcptr_map = {
{"vkDestroyPrivateDataSlotEXT", (void*)DestroyPrivateDataSlotEXT},
{"vkSetPrivateDataEXT", (void*)SetPrivateDataEXT},
{"vkGetPrivateDataEXT", (void*)GetPrivateDataEXT},
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkCreateCudaModuleNV", (void*)CreateCudaModuleNV},
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkGetCudaModuleCacheNV", (void*)GetCudaModuleCacheNV},
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkCreateCudaFunctionNV", (void*)CreateCudaFunctionNV},
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkDestroyCudaModuleNV", (void*)DestroyCudaModuleNV},
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkDestroyCudaFunctionNV", (void*)DestroyCudaFunctionNV},
#endif
#ifdef VK_ENABLE_BETA_EXTENSIONS
{"vkCmdCudaLaunchKernelNV", (void*)CmdCudaLaunchKernelNV},
#endif
#ifdef VK_USE_PLATFORM_METAL_EXT
{"vkExportMetalObjectsEXT", (void*)ExportMetalObjectsEXT},
#endif
Expand Down
5 changes: 5 additions & 0 deletions icd/generated/function_definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6981,6 +6981,7 @@ static VKAPI_ATTR void VKAPI_CALL GetPrivateDataEXT(



#ifdef VK_ENABLE_BETA_EXTENSIONS

static VKAPI_ATTR VkResult VKAPI_CALL CreateCudaModuleNV(
VkDevice device,
Expand Down Expand Up @@ -7036,6 +7037,7 @@ static VKAPI_ATTR void VKAPI_CALL CmdCudaLaunchKernelNV(
{
//Not a CREATE or DESTROY function
}
#endif /* VK_ENABLE_BETA_EXTENSIONS */


#ifdef VK_USE_PLATFORM_METAL_EXT
Expand Down Expand Up @@ -8379,6 +8381,9 @@ static VKAPI_ATTR VkResult VKAPI_CALL GetMemoryMetalHandlePropertiesEXT(
#endif /* VK_USE_PLATFORM_METAL_EXT */


#ifdef VK_ENABLE_BETA_EXTENSIONS
#endif /* VK_ENABLE_BETA_EXTENSIONS */


static VKAPI_ATTR VkResult VKAPI_CALL CreateAccelerationStructureKHR(
VkDevice device,
Expand Down
32 changes: 32 additions & 0 deletions icd/generated/vk_typemap_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6292,6 +6292,7 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREAT
typedef VkDeviceDiagnosticsConfigCreateInfoNV Type;
};

#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkCudaModuleCreateInfoNV to id VK_STRUCTURE_TYPE_CUDA_MODULE_CREATE_INFO_NV
template <> struct LvlTypeMap<VkCudaModuleCreateInfoNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_CUDA_MODULE_CREATE_INFO_NV;
Expand All @@ -6301,6 +6302,8 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_CUDA_MODULE_CREATE_INFO_NV> {
typedef VkCudaModuleCreateInfoNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkCudaFunctionCreateInfoNV to id VK_STRUCTURE_TYPE_CUDA_FUNCTION_CREATE_INFO_NV
template <> struct LvlTypeMap<VkCudaFunctionCreateInfoNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_CUDA_FUNCTION_CREATE_INFO_NV;
Expand All @@ -6310,6 +6313,8 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_CUDA_FUNCTION_CREATE_INFO_NV> {
typedef VkCudaFunctionCreateInfoNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkCudaLaunchInfoNV to id VK_STRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV
template <> struct LvlTypeMap<VkCudaLaunchInfoNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV;
Expand All @@ -6319,6 +6324,8 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_CUDA_LAUNCH_INFO_NV> {
typedef VkCudaLaunchInfoNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkPhysicalDeviceCudaKernelLaunchFeaturesNV to id VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_FEATURES_NV
template <> struct LvlTypeMap<VkPhysicalDeviceCudaKernelLaunchFeaturesNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_FEATURES_NV;
Expand All @@ -6328,6 +6335,8 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAU
typedef VkPhysicalDeviceCudaKernelLaunchFeaturesNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkPhysicalDeviceCudaKernelLaunchPropertiesNV to id VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_PROPERTIES_NV
template <> struct LvlTypeMap<VkPhysicalDeviceCudaKernelLaunchPropertiesNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAUNCH_PROPERTIES_NV;
Expand All @@ -6337,6 +6346,7 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUDA_KERNEL_LAU
typedef VkPhysicalDeviceCudaKernelLaunchPropertiesNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
// Map type VkQueryLowLatencySupportNV to id VK_STRUCTURE_TYPE_QUERY_LOW_LATENCY_SUPPORT_NV
template <> struct LvlTypeMap<VkQueryLowLatencySupportNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_QUERY_LOW_LATENCY_SUPPORT_NV;
Expand Down Expand Up @@ -9006,6 +9016,28 @@ template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUT
typedef VkPhysicalDeviceVertexAttributeRobustnessFeaturesEXT Type;
};

#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkSetPresentConfigNV to id VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV
template <> struct LvlTypeMap<VkSetPresentConfigNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_SET_PRESENT_CONFIG_NV> {
typedef VkSetPresentConfigNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
#ifdef VK_ENABLE_BETA_EXTENSIONS
// Map type VkPhysicalDevicePresentMeteringFeaturesNV to id VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV
template <> struct LvlTypeMap<VkPhysicalDevicePresentMeteringFeaturesNV> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV;
};

template <> struct LvlSTypeMap<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_METERING_FEATURES_NV> {
typedef VkPhysicalDevicePresentMeteringFeaturesNV Type;
};

#endif // VK_ENABLE_BETA_EXTENSIONS
// Map type VkAccelerationStructureGeometryTrianglesDataKHR to id VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR
template <> struct LvlTypeMap<VkAccelerationStructureGeometryTrianglesDataKHR> {
static const VkStructureType kSType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_TRIANGLES_DATA_KHR;
Expand Down
9 changes: 6 additions & 3 deletions scripts/common_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@
def GetFeatureProtect(interface):
"""Get platform protection string"""
platform = interface.get('platform')
protect = None
if platform is not None:
protect = platform_dict[platform]
return protect
return platform_dict[platform]

provisional = interface.get('provisional')
if provisional == 'true':
return platform_dict['provisional']


# helper to define paths relative to the repo root
def repo_relative(path):
Expand Down
4 changes: 2 additions & 2 deletions scripts/known_good.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sub_dir": "Vulkan-Headers",
"build_dir": "Vulkan-Headers/build",
"install_dir": "Vulkan-Headers/build/install",
"commit": "v1.4.307"
"commit": "v1.4.309"
},
{
"name": "MoltenVK",
Expand Down Expand Up @@ -74,7 +74,7 @@
"cmake_options": [
"-DLOADER_USE_UNSAFE_FILE_SEARCH=ON"
],
"commit": "v1.4.307",
"commit": "v1.4.309",
"build_platforms": [
"windows",
"linux",
Expand Down

0 comments on commit 176fef0

Please sign in to comment.