Blender V5.0
workbench_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
5#define WB_RESOLVE_GROUP_SIZE 8
6
7/* Resources bind slots. */
8
9/* Textures. */
10/* Slot 0-1 are reserved by curves and pointcloud attributes. */
11#define WB_MATCAP_SLOT 2
12#define WB_TEXTURE_SLOT 3
13#define WB_TILE_ARRAY_SLOT 4
14#define WB_TILE_DATA_SLOT 5
15#define WB_CURVES_UV_SLOT 6
16#define WB_CURVES_COLOR_SLOT 7
17
18/* UBOs (Storage buffers in Workbench Next). */
19#define WB_MATERIAL_SLOT 0
20#define WB_WORLD_SLOT 1