import re
import xml.etree.cElementTree as et
-from mako.template import Template
-
MAX_API_VERSION = '1.0.57'
class Extension:
ext = ext_name_map[ext_name]
ext.type = ext_elem.attrib['type']
-_TEMPLATE = Template(COPYRIGHT + """
+_TEMPLATE = COPYRIGHT + """
#include "anv_private.h"
#include "vk_util.h"
return vk_outarray_status(&out);
}
-""")
+"""
if __name__ == '__main__':
parser = argparse.ArgumentParser()
'device_extensions': [e for e in EXTENSIONS if e.type == 'device'],
}
+ from mako.template import Template
+
with open(args.out, 'w') as f:
- f.write(_TEMPLATE.render(**template_env))
+ f.write(Template(_TEMPLATE).render(**template_env))