Blender V5.3
mtl_common.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
12/* Number of frames over which rolling averages are taken. */
13#define MTL_FRAME_AVERAGE_COUNT 15
14#define MTL_MAX_DRAWABLES 3
15#define MTL_FORCE_WAIT_IDLE 0
16
17/* Number of frames for which we retain in-flight resources such as scratch buffers.
18 * Set as number of GPU frames in flight, plus an additional value for extra possible CPU frame. */
19#define MTL_NUM_SAFE_FRAMES (MTL_MAX_DRAWABLES + 1)
20
21/* Display debug information about missing attributes and incorrect vertex formats. */
22#define MTL_DEBUG_SHADER_ATTRIBUTES 0