diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:30 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-10 12:12:30 -0600 |
commit | 983f1bef63dfe4dcdf7a495c49b95157d74806d5 (patch) | |
tree | 2019f06f3d2e9580684cd0c80839116b93707c47 | |
parent | 3882ed5734e74be6bbcfd399e12b1b2ba4c612c0 (diff) | |
parent | 0c4575b4e540114f15ab227fc984fd5e3807403a (diff) | |
download | redot-engine-983f1bef63dfe4dcdf7a495c49b95157d74806d5.tar.gz |
Merge pull request #98974 from dustdfg/goodbye_t_rex_🦖
Delete old function for parsing CG shaders
-rw-r--r-- | methods.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/methods.py b/methods.py index afaf5b80e5..64c3839718 100644 --- a/methods.py +++ b/methods.py @@ -238,34 +238,6 @@ def get_version_info(module_version_string="", silent=False): return version_info -def parse_cg_file(fname, uniforms, sizes, conditionals): - with open(fname, "r", encoding="utf-8") as fs: - line = fs.readline() - - while line: - if re.match(r"^\s*uniform", line): - res = re.match(r"uniform ([\d\w]*) ([\d\w]*)") - type = res.groups(1) - name = res.groups(2) - - uniforms.append(name) - - if type.find("texobj") != -1: - sizes.append(1) - else: - t = re.match(r"float(\d)x(\d)", type) - if t: - sizes.append(int(t.groups(1)) * int(t.groups(2))) - else: - t = re.match(r"float(\d)", type) - sizes.append(int(t.groups(1))) - - if line.find("[branch]") != -1: - conditionals.append(name) - - line = fs.readline() - - def get_cmdline_bool(option, default): """We use `ARGUMENTS.get()` to check if options were manually overridden on the command line, and SCons' _text2bool helper to convert them to booleans, otherwise they're handled as strings. |