scripts: Manual VK_ENABLE_BETA_EXTENSIONS

This commit is contained in:
spencer-lunarg 2025-02-21 16:58:59 -05:00
parent 42b34ac73e
commit 07ca0f6962
6 changed files with 32 additions and 0 deletions

View file

@ -134,6 +134,12 @@ class SafeStructOutputGenerator(BaseGenerator):
return False
def generate(self):
# Should be fixed in 1.4.310 headers
# https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/7196
manual_protect = ["VkCudaModuleNV", "VkCudaFunctionNV", "VkCudaModuleCreateInfoNV", "VkCudaFunctionCreateInfoNV", "VkCudaLaunchInfoNV", "VkPhysicalDeviceCudaKernelLaunchFeaturesNV", "VkPhysicalDeviceCudaKernelLaunchPropertiesNV", "VkSetPresentConfigNV", "VkPhysicalDevicePresentMeteringFeaturesNV"]
for struct in [x for x in self.vk.structs.values() if x.name in manual_protect]:
struct.protect = "VK_ENABLE_BETA_EXTENSIONS"
self.write(f'''// *** THIS FILE IS GENERATED - DO NOT EDIT ***
// See {os.path.basename(__file__)} for modifications