Blender V5.0
source_processor.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "source_processor.hh"
6
7namespace blender::ocio {
8
9void source_comment_out_uniforms(std::string &source)
10{
11 size_t index = 0;
12 while (true) {
13 index = source.find("uniform ", index);
14 if (index == -1) {
15 break;
16 }
17 source.replace(index, 2, "//");
18 index += 2;
19 }
20}
21
22} // namespace blender::ocio
void source_comment_out_uniforms(std::string &source)