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