Blender V5.3
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
8
9#pragma once
10
11#define WB_RESOLVE_GROUP_SIZE 8
12
13/* Resources bind slots. */
14
15/* Textures. */
16/* Slot 0-1 are reserved by curves and pointcloud attributes. */
17#define WB_MATCAP_SLOT 2
18#define WB_TEXTURE_SLOT 3
19#define WB_TILE_ARRAY_SLOT 4
20#define WB_TILE_DATA_SLOT 5
21#define WB_CURVES_UV_SLOT 6
22#define WB_CURVES_COLOR_SLOT 7
23
24/* UBOs (Storage buffers in Workbench Next). */
25#define WB_MATERIAL_SLOT 0
26#define WB_WORLD_SLOT 1
27
28[[maybe_unused]] static constexpr int WORKBENCH_LIGHTING_STUDIO = 0;
29[[maybe_unused]] static constexpr int WORKBENCH_LIGHTING_MATCAP = 1;
30[[maybe_unused]] static constexpr int WORKBENCH_LIGHTING_FLAT = 2;
static constexpr int WORKBENCH_LIGHTING_MATCAP
static constexpr int WORKBENCH_LIGHTING_STUDIO
static constexpr int WORKBENCH_LIGHTING_FLAT