We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502f6f3 commit b8f10eaCopy full SHA for b8f10ea
tools/build_scripts/build_shaders.py
@@ -362,6 +362,10 @@ def find_generic_functions(shader_text):
362
continue
363
# find the function name and return type
364
function_name = shader_text.rfind(" ", 0, start)
365
+ name_str = shader_text[function_name:start]
366
+ if name_str.find("if:") != -1:
367
+ start = deliminator_pos
368
+ continue
369
function_return_type = 0
370
for delim in deliminator_list:
371
decl_start = shader_text.rfind(delim, 0, function_name)
@@ -511,7 +515,7 @@ def generate_glsl(
511
515
if len(ps_output_source.split()) > 0:
512
516
ps_output_struct_name = ps_output_source.split()[1]
513
517
514
- # cbuffers to unifom
518
+ # cbuffers to uniform
519
uniform_buffers = ""
520
for cbuf in constant_buffers:
521
name_start = cbuf.find(" ")
0 commit comments