Blender V5.3
utils.hh File Reference
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  blender::gpu::shader::parser::ErrorHandler
struct  blender::gpu::shader::parser::ErrorHandler::Error
struct  blender::gpu::shader::parser::IndexRange
struct  blender::gpu::shader::parser::MutableSpan< T >

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::gpu
namespace  blender::gpu::shader
namespace  blender::gpu::shader::parser

Functions

size_t blender::gpu::shader::parser::line_number (const std::string_view &str, size_t pos)
size_t blender::gpu::shader::parser::char_number (const std::string_view &str, size_t pos)
std::string blender::gpu::shader::parser::filename (const std::string_view &str, size_t pos)
std::string blender::gpu::shader::parser::line_str (const std::string_view &str, size_t pos)
static int blender::gpu::shader::parser::pad (int size, int align)

Detailed Description

Lite duplicates of blender utility types and other utility functions. They are duplicated to avoid pulling half of blender as a dependency.

Definition in file gpu/shader_tool/utils.hh.