summaryrefslogtreecommitdiffstats
path: root/gles3_builders.py
diff options
context:
space:
mode:
authorJiri Suchan <yed@vanyli.net>2022-06-30 11:14:07 +0900
committerJiri Suchan <yed@vanyli.net>2022-08-19 20:32:13 +0900
commit388d35b74d8919b251faae9e24af50476f12b1a2 (patch)
tree6e984d73605bf3de867722bd88e1ee888a351fea /gles3_builders.py
parentb04593c22bd5e88d24f1be19422696e7bde584f6 (diff)
downloadredot-engine-388d35b74d8919b251faae9e24af50476f12b1a2.tar.gz
ci: add basic test pipeline for shader builders
Diffstat (limited to 'gles3_builders.py')
-rw-r--r--gles3_builders.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/gles3_builders.py b/gles3_builders.py
index a9fabd93ce..eafe503dd5 100644
--- a/gles3_builders.py
+++ b/gles3_builders.py
@@ -182,8 +182,8 @@ def include_file_in_gles3_header(filename, header_data, depth):
return header_data
-def build_gles3_header(filename, include, class_suffix, output_attribs):
- header_data = GLES3HeaderStruct()
+def build_gles3_header(filename, include, class_suffix, header_data=None):
+ header_data = header_data or GLES3HeaderStruct()
include_file_in_gles3_header(filename, header_data, 0)
out_file = filename + ".gen.h"
@@ -191,8 +191,6 @@ def build_gles3_header(filename, include, class_suffix, output_attribs):
defspec = 0
defvariant = ""
- enum_constants = []
-
fd.write("/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */\n")
out_file_base = out_file
@@ -552,7 +550,7 @@ def build_gles3_header(filename, include, class_suffix, output_attribs):
def build_gles3_headers(target, source, env):
for x in source:
- build_gles3_header(str(x), include="drivers/gles3/shader_gles3.h", class_suffix="GLES3", output_attribs=True)
+ build_gles3_header(str(x), include="drivers/gles3/shader_gles3.h", class_suffix="GLES3")
if __name__ == "__main__":