From 2434de911b7f2c62723e393bf21d659c20261b4e Mon Sep 17 00:00:00 2001 From: Sohail Aj Date: Sun, 12 Apr 2015 13:21:18 -0400 Subject: [PATCH] Add build_full_glsl.bat --- build_full _glsl.bat | 7 + compile_glsl.py | 24 +- es3/mod.xhtml | 2 - glsl.py | 2 +- glsl_html/index.html | 12 +- glsl_spec.py | 724 +++++++++++++++++++++++++++++++------------ read_glsl_spec.py | 127 +++++--- shared_glsl.py | 6 +- 8 files changed, 640 insertions(+), 264 deletions(-) create mode 100644 build_full _glsl.bat diff --git a/build_full _glsl.bat b/build_full _glsl.bat new file mode 100644 index 00000000..8d524308 --- /dev/null +++ b/build_full _glsl.bat @@ -0,0 +1,7 @@ +@echo off + +python.exe find_glsl.py +python.exe read_glsl_spec.py +python.exe compile_glsl.py --full + +pause diff --git a/compile_glsl.py b/compile_glsl.py index 77947629..d77ec6ae 100644 --- a/compile_glsl.py +++ b/compile_glsl.py @@ -155,7 +155,9 @@ def create_directory(dir): all_major_versions = glsl.get_major_versions(glsl.version_commands_flat.keys()) for version in all_major_versions: - if int(version[2:3]) < 2: + if int(version[2:3]) < 3: + continue + if version == "sl3": continue alias = command @@ -180,10 +182,10 @@ def create_directory(dir): search_versions_commands = "var search_versions = {" search_function_aliases = {} for version in glsl.version_commands: - if version[0:2] == "sl" and float(version[2:]) < 2.1: + if version[0:2] == "sl" and float(version[2:]) < 4.0: continue - if version[0:2] == "el" and float(version[2:]) < 2.0: + if version[0:2] == "el" and float(version[2:]) < 3.0: continue search_versions_commands += "'" + version + "':[" @@ -214,17 +216,16 @@ def create_directory(dir): for command in glsl.commands_version: major_versions = glsl.get_major_versions(glsl.commands_version[command]) for version in major_versions: - if int(version[2]) < 2: + if int(version[2]) < 3: continue search_versions_commands += "'" + version[:3] + "/" + command + "'," for command in glsl.commands_version_flat: if command in glsl.commands_version: continue - major_versions = glsl.get_major_versions(glsl.commands_version_flat[command]) for version in major_versions: - if int(version[2]) < 2: + if int(version[2]) < 3: continue search_versions_commands += "'" + version[:3] + "/" + command + "'," @@ -247,10 +248,10 @@ def create_directory(dir): search_versions_options = "" for version_option in glsl.version_commands.keys(): - if version_option[0:2] == "sl" and float(version_option[2:]) < 2.1: + if version_option[0:2] == "sl" and float(version_option[2:]) < 4.0: continue - if version_option[0:2] == "el" and float(version_option[2:]) < 2.0: + if version_option[0:2] == "el" and float(version_option[2:]) < 3.0: continue if version_option[:2] == 'sl': @@ -316,9 +317,11 @@ def spew_category(name, commands, current_command): major_versions = glsl.get_major_versions(glsl.version_commands.keys()) for version in major_versions: - if int(version[2]) < 4: + if int(version[2]) < 3: continue - + if version == 'sl3': + continue + written = 0 print "Compiling " + version + " ..." @@ -442,7 +445,6 @@ def spew_category(name, commands, current_command): version_dir = version create_directory(output_dir + version_dir) - print version + " " + command command_file = shared_glsl.find_command_file(version, command) if command_file == False: raise IOError("Couldn't find page for command " + command + " (" + version + ")") diff --git a/es3/mod.xhtml b/es3/mod.xhtml index 2e665f97..0d0f2c03 100644 --- a/es3/mod.xhtml +++ b/es3/mod.xhtml @@ -139,5 +139,3 @@

-