Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
def
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_end
Function · 0.70
test_shader_str
Function · 0.70
test_sequence
Function · 0.70
test_pushconsts
Function · 0.70
test_pushconsts_int
Function · 0.70
test_type_float
Function · 0.70
test_type_float_double_incorrect
Function · 0.70
test_type_double
Function · 0.70
test_type_int
Function · 0.70
test_type_unsigned_int
Function · 0.70
Calls
no outgoing calls
Tested by
10
test_end_to_end
Function · 0.56
test_shader_str
Function · 0.56
test_sequence
Function · 0.56
test_pushconsts
Function · 0.56
test_pushconsts_int
Function · 0.56
test_type_float
Function · 0.56
test_type_float_double_incorrect
Function · 0.56
test_type_double
Function · 0.56
test_type_int
Function · 0.56
test_type_unsigned_int
Function · 0.56