Blender V4.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
20
22
23namespace blender::gpu::shader {
24
25BuiltinBits gpu_shader_dependency_get_builtins(const StringRefNull source_name);
26
27/* Returns true is any shader code has a printf statement. */
29
31
33 struct Block {
40 std::string fmt;
41 };
42
44 std::string format_str;
45};
46
48
51
58 const StringRefNull source_string);
59
60} // namespace blender::gpu::shader
void gpu_shader_dependency_init()
void gpu_shader_dependency_exit()
Vector< const char * > gpu_shader_dependency_get_resolved_source(const StringRefNull shader_source_name)
StringRefNull gpu_shader_dependency_get_filename_from_source_string(const StringRefNull source_string)
Find the name of the file from which the given string was generated.
const PrintfFormat & gpu_shader_dependency_get_printf_format(uint32_t format_hash)
BuiltinBits gpu_shader_dependency_get_builtins(const StringRefNull shader_source_name)
StringRefNull gpu_shader_dependency_get_source(const StringRefNull shader_source_name)
unsigned int uint32_t
Definition stdint.h:80
enum blender::gpu::shader::PrintfFormat::Block::ArgumentType type