MCPcopy Create free account
hub / github.com/KomputeProject/kompute / compile_source

Function compile_source

python/test/utils.py:4–7  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

2
3
4def compile_source(source):
5 open("tmp_kp_shader.comp", "w").write(source)
6 os.system("glslangValidator -V tmp_kp_shader.comp -o tmp_kp_shader.comp.spv")
7 return open("tmp_kp_shader.comp.spv", "rb").read()

Callers 10

test_end_to_endFunction · 0.70
test_shader_strFunction · 0.70
test_sequenceFunction · 0.70
test_pushconstsFunction · 0.70
test_pushconsts_intFunction · 0.70
test_type_floatFunction · 0.70
test_type_doubleFunction · 0.70
test_type_intFunction · 0.70
test_type_unsigned_intFunction · 0.70

Calls

no outgoing calls

Tested by 10

test_end_to_endFunction · 0.56
test_shader_strFunction · 0.56
test_sequenceFunction · 0.56
test_pushconstsFunction · 0.56
test_pushconsts_intFunction · 0.56
test_type_floatFunction · 0.56
test_type_doubleFunction · 0.56
test_type_intFunction · 0.56
test_type_unsigned_intFunction · 0.56