| 21 | } |
| 22 | |
| 23 | void ThreadFunctions::precompile_kernel(const std::string& kernel_function_name, const std::string& kernel_filepath, GPUKernelCompilerOptions options, std::shared_ptr<HIPRTOrochiCtx> hiprt_orochi_ctx, const std::vector<hiprtFuncNameSet>& func_name_sets) |
| 24 | { |
| 25 | OROCHI_CHECK_ERROR(oroCtxSetCurrent(hiprt_orochi_ctx->orochi_ctx)); |
| 26 | |
| 27 | GPUKernel kernel(kernel_filepath, kernel_function_name); |
| 28 | kernel.set_precompiled(true); |
| 29 | kernel.get_kernel_options() = options; |
| 30 | kernel.compile(hiprt_orochi_ctx, func_name_sets, true, true); |
| 31 | } |
| 32 | |
| 33 | void ThreadFunctions::load_scene_texture(Scene& parsed_scene, std::string scene_path, const std::vector<std::pair<aiTextureType, std::string>>& tex_paths, const std::vector<int>& material_indices, int thread_index, int nb_threads) |
| 34 | { |
nothing calls this directly
no test coverage detected