-#!/usr/bin/env python
CopyRight = '''
/**************************************************************************
print '#endif'
def write_format_table(formats):
- print '/* This file is autogenerated by u_format_table.py from u_format.csv. Do not edit directly. */'
+ print '/* This file is autogenerated by vk_format_table.py from vk_format_layout.csv. Do not edit directly. */'
print
# This will print the copyright message on the top of this file
print CopyRight.strip()
print " },"
for format in formats:
- print 'const struct vk_format_description'
+ print 'static const struct vk_format_description'
print 'vk_format_%s_description = {' % (format.short_name(),)
print " %s," % (format.name,)
print " \"%s\"," % (format.name,)