MCPcopy Create free account
hub / github.com/crownengine/crown / wait_shaderc_process

Function wait_shaderc_process

src/resource/shader_resource.cpp:727–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725 }
726
727 static void wait_shaderc_process(CompileOptions &opts, Process &pr)
728 {
729 if (!pr.spawned())
730 return;
731
732 // Drain output before wait() when abandoning overlapping shaderc work.
733 TempAllocator4096 ta;
734 StringStream output(ta);
735 opts.read_output(output, pr);
736 pr.wait();
737 }
738
739 static void wait_shaderc_processes(CompileOptions &opts, Process *pr_vert, Process *pr_frag, u32 count)
740 {

Callers 2

wait_shaderc_processesFunction · 0.85
compile_bgfx_shaderMethod · 0.85

Calls 3

spawnedMethod · 0.80
read_outputMethod · 0.80
waitMethod · 0.45

Tested by

no test coverage detected