Blender V5.3
gpu_shader_dependency_private.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11
12#pragma once
13
14#include "BLI_string_ref.hh"
15#include "BLI_vector.hh"
16
18
19namespace blender {
20
22
24
25namespace gpu::shader {
26
27BuiltinBits gpu_shader_dependency_get_builtins(const StringRefNull source_name);
28Span<ShaderCreateInfo::SharedVariable> gpu_shader_dependency_get_shared_variables(
29 const StringRefNull shader_source_name);
30
31/* Returns true is any shader code has a printf statement. */
33
35
37 struct Block {
45 std::string fmt;
46 };
47
49 std::string format_str;
50};
51
53
55 StringRefNull source_name,
56 const GeneratedSourceList &generated_sources,
57 StringRefNull shader_name = "");
59
66
67} // namespace gpu::shader
68} // namespace blender
Vector< shader::GeneratedSource, 0 > GeneratedSourceList
Vector< StringRefNull > gpu_shader_dependency_get_resolved_source(const StringRefNull shader_source_name, const shader::GeneratedSourceList &generated_sources, const StringRefNull shader_name)
Span< ShaderCreateInfo::SharedVariable > gpu_shader_dependency_get_shared_variables(const StringRefNull shader_source_name)
const PrintfFormat & gpu_shader_dependency_get_printf_format(uint32_t format_hash)
BuiltinBits gpu_shader_dependency_get_builtins(const StringRefNull shader_source_name)
bool gpu_shader_dependency_force_gpu_print_injection()
StringRefNull gpu_shader_dependency_get_filename_from_source_string(const StringRef source_string)
Find the name of the file from which the given string was generated.
StringRefNull gpu_shader_dependency_get_source(const StringRefNull shader_source_name)
BMesh Iterators.
void gpu_shader_dependency_exit()
unsigned int uint32_t
Definition BKE_text.h:81
void gpu_shader_dependency_init()
enum blender::gpu::shader::PrintfFormat::Block::ArgumentType type