Blender
V5.0
source
blender
imbuf
opencolorio
intern
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
7
namespace
blender::ocio
{
8
9
void
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
blender::ocio
Definition
BLF_api.hh:35
blender::ocio::source_comment_out_uniforms
void source_comment_out_uniforms(std::string &source)
Definition
source_processor.cc:9
source_processor.hh
Generated on
for Blender by
doxygen
1.16.1