We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b80e93a commit d065856Copy full SHA for d065856
shaders/rust/compileshaders.py
@@ -75,6 +75,8 @@ def compile_shader(shader_dir):
75
final_path = shader_dir / f"{shader_name}.{shader_type}.spv"
76
77
# 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
80
source_path.rename(final_path)
81
print(f" Created {final_path.name} (entry point: {entry_point})")
82
@@ -105,6 +107,8 @@ def compile_shader(shader_dir):
105
107
old_path = shader_dir / old_name
106
108
new_path = shader_dir / new_name
109
if old_path.exists():
110
+ if new_path.exists():
111
+ new_path.unlink() # Remove existing file
112
old_path.rename(new_path)
113
print(f" Created {new_name}")
114
else:
0 commit comments