Blender V5.0
vk_shader_compiler.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "gpu_shader_private.hh"
12
13#include "BLI_map.hh"
14#include "BLI_task.h"
15#include "BLI_vector.hh"
16
17#include "shaderc/shaderc.hpp"
18
19#include <mutex>
20
21namespace blender::gpu {
22class VKShader;
23class VKShaderModule;
24
32 public:
33 static bool compile_module(VKShader &shader,
34 shaderc_shader_kind stage,
35 VKShaderModule &shader_module);
36
37 static void cache_dir_clear_old();
38};
39} // namespace blender::gpu
static bool compile_module(VKShader &shader, shaderc_shader_kind stage, VKShaderModule &shader_module)