diff options
Diffstat (limited to 'registry/genvk.py')
-rwxr-xr-x | registry/genvk.py | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/registry/genvk.py b/registry/genvk.py index 37131e3..411454d 100755 --- a/registry/genvk.py +++ b/registry/genvk.py @@ -20,6 +20,7 @@ from generator import write from spirvcapgenerator import SpirvCapabilityOutputGenerator from hostsyncgenerator import HostSynchronizationOutputGenerator from pygenerator import PyOutputGenerator +from rubygenerator import RubyOutputGenerator from reflib import logDiag, logWarn, setLogFile from reg import Registry from validitygenerator import ValidityOutputGenerator @@ -182,6 +183,27 @@ def makeGenOpts(args): reparentEnums = False) ] + # Ruby representation of API information, used by scripts that + # don't need to load the full XML. + genOpts['api.rb'] = [ + RubyOutputGenerator, + DocGeneratorOptions( + conventions = conventions, + filename = 'api.rb', + directory = directory, + genpath = None, + apiname = 'vulkan', + profile = None, + versions = featuresPat, + emitversions = featuresPat, + defaultExtensions = None, + addExtensions = addExtensionsPat, + removeExtensions = removeExtensionsPat, + emitExtensions = emitExtensionsPat, + reparentEnums = False) + ] + + # API validity files for spec genOpts['validinc'] = [ ValidityOutputGenerator, @@ -314,7 +336,9 @@ def makeGenOpts(args): platforms = [ [ 'vulkan_android.h', [ 'VK_KHR_android_surface', 'VK_ANDROID_external_memory_android_hardware_buffer' - ], commonSuppressExtensions ], + ], commonSuppressExtensions + + [ 'VK_KHR_format_feature_flags2', + ] ], [ 'vulkan_fuchsia.h', [ 'VK_FUCHSIA_imagepipe_surface', 'VK_FUCHSIA_external_memory', 'VK_FUCHSIA_external_semaphore', |