Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_repeat_zone.bsl.hh
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
#pragma once
6
7
#ifdef GPU_SHADER
8
9
# define REPEAT_BEGIN(count, var) \
10
for (int var##_i = 0; var##_i < count; var##_i++) { \
11
var = var##_i;
12
13
# define REPEAT_END() }
14
15
#else
16
21
[[
node
]]
22
void
REPEAT_BEGIN
(
int
dummy)
23
{
24
}
25
[[
node
]]
26
void
REPEAT_END
(
float
dummy)
27
{
28
}
29
30
#endif
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
REPEAT_END
void REPEAT_END(float dummy)
Definition
gpu_shader_material_repeat_zone.bsl.hh:26
REPEAT_BEGIN
void REPEAT_BEGIN(int dummy)
Definition
gpu_shader_material_repeat_zone.bsl.hh:22
Generated on
for Blender by
doxygen
1.18.0