mirror of
https://github.com/KhronosGroup/Vulkan-Utility-Libraries.git
synced 2025-05-29 07:59:25 +00:00
scripts: Manual VK_ENABLE_BETA_EXTENSIONS
This commit is contained in:
parent
42b34ac73e
commit
07ca0f6962
6 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue