Blender V4.3
gpencil_defines.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#define GPENCIL_MATERIAL_BUFFER_LEN 256
6
7#define GPENCIL_LIGHT_BUFFER_LEN 128
8
9/* High bits are used to pass material ID to fragment shader. */
10#define GPENCIl_MATID_SHIFT 16u
11
12/* Textures */
13#define GPENCIL_SCENE_DEPTH_TEX_SLOT 2
14#define GPENCIL_MASK_TEX_SLOT 3
15#define GPENCIL_FILL_TEX_SLOT 4
16#define GPENCIL_STROKE_TEX_SLOT 5
17/* SSBOs */
18#define GPENCIL_OBJECT_SLOT 0
19#define GPENCIL_LAYER_SLOT 1
20#define GPENCIL_MATERIAL_SLOT 2
21#define GPENCIL_LIGHT_SLOT 3
22/* UBOs */
23#define GPENCIL_SCENE_SLOT 2