Blender V5.3
gpencil_defines.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#define GPENCIL_MATERIAL_BUFFER_LEN 255
12
13#define GPENCIL_LIGHT_BUFFER_LEN 128
14
15/* High bits are used to pass material ID to fragment shader. */
16#define GPENCIL_MATID_SHIFT 19u
17
18/* Textures */
19#define GPENCIL_SCENE_DEPTH_TEX_SLOT 2
20#define GPENCIL_MASK_TEX_SLOT 3
21#define GPENCIL_FILL_TEX_SLOT 4
22#define GPENCIL_STROKE_TEX_SLOT 5
23/* SSBOs */
24#define GPENCIL_OBJECT_SLOT 0
25#define GPENCIL_LAYER_SLOT 1
26#define GPENCIL_MATERIAL_SLOT 2
27#define GPENCIL_LIGHT_SLOT 3
28/* UBOs */
29#define GPENCIL_SCENE_SLOT 2
30
31#define GPENCIL_RENDER_FORMAT SFLOAT_16_16_16_16
32#define GPENCIL_ACCUM_FORMAT SFLOAT_16_16_16_16