Update for Vulkan-Docs 1.4.326

This commit is contained in:
Jon Leech 2025-08-29 20:32:05 +01:00 committed by Jon Leech
parent be73614e1d
commit d1cd37e925
18 changed files with 854 additions and 830 deletions

View file

@ -7,6 +7,14 @@
from dataclasses import dataclass, field
from enum import IntFlag, Enum, auto
@dataclass
class FeatureRequirement:
"""Each instance of FeatureRequirement is one part of the AND operation,
unless the struct/field are the same, then the depends are AND togethered"""
struct: str
field: str # Can have comma delimiter, which are expressed as OR
depends: (str | None) # ex) "VK_EXT_descriptor_indexing", "VK_VERSION_1_2+VkPhysicalDeviceVulkan12Features::descriptorIndexing"
@dataclass
class Extension:
"""<extension>"""
@ -27,6 +35,7 @@ class Extension:
deprecatedBy: (str | None)
obsoletedBy: (str | None)
specialUse: list[str]
featureRequirement: list[FeatureRequirement]
ratified: bool
# These are here to allow for easy reverse lookups
@ -52,6 +61,8 @@ class Version:
nameString: str # ex) "VK_VERSION_1_1" (no marco, so has quotes)
nameApi: str # ex) VK_API_VERSION_1_1
featureRequirement: list[FeatureRequirement]
@dataclass
class Deprecate:
"""<deprecate>"""