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