Lines Matching defs:spirv
38 #include <spirv-tools/libspirv.hpp>
809 clc_binary spirv{};
810 if (!clc_compile_c_to_spirv(&args, &logger, &spirv))
814 shader.obj = std::shared_ptr<clc_binary>(new clc_binary(spirv), [](clc_binary *spirv)
816 clc_free_spirv(spirv);
817 delete spirv;
840 clc_binary spirv{};
841 if (!clc_link_spirv(&link_args, &logger, &spirv))
845 shader.obj = std::shared_ptr<clc_binary>(new clc_binary(spirv), [](clc_binary *spirv)
847 clc_free_spirv(spirv);
848 delete spirv;
865 shader.obj = std::shared_ptr<clc_binary>(new clc_binary{}, [](clc_binary *spirv)
867 free(spirv->data);
868 delete spirv;
890 throw runtime_error("failed to parse spirv!");