Blender V4.3
vk_shader_module.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
9#pragma once
10
11#include "gpu_shader_private.hh"
12
13#include "vk_common.hh"
14
15#include "shaderc/shaderc.hpp"
16
17namespace blender::gpu {
18class VKShader;
19
35 public:
41 std::string combined_sources;
42
46 std::string sources_hash;
47
51 VkShaderModule vk_shader_module = VK_NULL_HANDLE;
52
58 shaderc::SpvCompilationResult compilation_result;
60
67 bool is_ready = true;
68
70
77 void finalize(StringRefNull name);
78
80 void build_sources_hash();
81};
82
83} // namespace blender::gpu
shaderc::SpvCompilationResult compilation_result
void finalize(StringRefNull name)