Blender
V4.3
source
blender
gpu
vulkan
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
17
namespace
blender::gpu
{
18
class
VKShader;
19
34
class
VKShaderModule
{
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
;
59
Vector<uint32_t>
spirv_binary
;
60
67
bool
is_ready
=
true
;
68
69
~VKShaderModule
();
70
77
void
finalize
(
StringRefNull
name);
78
80
void
build_sources_hash
();
81
};
82
83
}
// namespace blender::gpu
blender::StringRefNull
Definition
BLI_string_ref.hh:111
blender::Vector
Definition
BLI_vector.hh:65
blender::gpu::VKShaderModule
Definition
vk_shader_module.hh:34
blender::gpu::VKShaderModule::compilation_result
shaderc::SpvCompilationResult compilation_result
Definition
vk_shader_module.hh:58
blender::gpu::VKShaderModule::vk_shader_module
VkShaderModule vk_shader_module
Definition
vk_shader_module.hh:51
blender::gpu::VKShaderModule::combined_sources
std::string combined_sources
Definition
vk_shader_module.hh:41
blender::gpu::VKShaderModule::build_sources_hash
void build_sources_hash()
Definition
vk_shader_module.cc:57
blender::gpu::VKShaderModule::~VKShaderModule
~VKShaderModule()
Definition
vk_shader_module.cc:18
blender::gpu::VKShaderModule::finalize
void finalize(StringRefNull name)
Definition
vk_shader_module.cc:28
blender::gpu::VKShaderModule::spirv_binary
Vector< uint32_t > spirv_binary
Definition
vk_shader_module.hh:59
blender::gpu::VKShaderModule::sources_hash
std::string sources_hash
Definition
vk_shader_module.hh:46
blender::gpu::VKShaderModule::is_ready
bool is_ready
Definition
vk_shader_module.hh:67
gpu_shader_private.hh
blender::gpu
Definition
blf_internal_types.hh:23
vk_common.hh
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0