Added single header include

This commit is contained in:
Alejandro Saucedo 2020-08-24 22:14:49 +01:00
parent af74e25e35
commit 6ef768f0ca
7 changed files with 750 additions and 5 deletions

View file

@ -85,6 +85,7 @@ def run_cli(
# Ensuring the variable is a static unsigned const
header_data = header_data.replace("unsigned", "static unsigned const")
file_name = file.split("/")[-1]
file_name = f"shader{file_name}"
header_file = file_name.replace(".comp.spv", ".hpp")
header_file_define = "SHADEROP_" + header_file.replace(".", "_").upper()
logger.debug(f"Converting to hpp: {file_name}")