The script incorrectly interpreted --blah as the input filename.
--with-glslang=PATH Full path to the glslangValidator program"""))
exit(err)
+def usage_error(msg):
+ print('usage error: {}'.format(msg))
+ print('')
+ print_usage(1)
+
class Shader:
def __init__(self, stage):
self.stream = cStringIO.StringIO()
glslang = sys.argv[arg_idx][len('--with-glslang='):]
elif sys.argv[arg_idx] == '--glsl-only':
glsl_only = True;
+ elif sys.argv[arg_idx].startswith('-'):
+ usage_error('unknown option {!r}'.format(sys.argv[arg_idx]))
else:
infname = sys.argv[arg_idx]
break