Skip to content

Commit d065856

Browse files
committed
moar windows
1 parent b80e93a commit d065856

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shaders/rust/compileshaders.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def compile_shader(shader_dir):
7575
final_path = shader_dir / f"{shader_name}.{shader_type}.spv"
7676

7777
# Just rename the file - the C++ code will look for the entry point by name
78+
if final_path.exists():
79+
final_path.unlink() # Remove existing file
7880
source_path.rename(final_path)
7981
print(f" Created {final_path.name} (entry point: {entry_point})")
8082

@@ -105,6 +107,8 @@ def compile_shader(shader_dir):
105107
old_path = shader_dir / old_name
106108
new_path = shader_dir / new_name
107109
if old_path.exists():
110+
if new_path.exists():
111+
new_path.unlink() # Remove existing file
108112
old_path.rename(new_path)
109113
print(f" Created {new_name}")
110114
else:

0 commit comments

Comments
 (0)