Blender
V3.3
source
blender
gpu
metal
mtl_common.hh
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#ifndef __MTL_COMMON
4
#define __MTL_COMMON
5
6
// -- Renderer Options --
7
#define MTL_MAX_DRAWABLES 3
8
#define MTL_MAX_SET_BYTES_SIZE 4096
9
#define MTL_FORCE_WAIT_IDLE 0
10
#define MTL_MAX_COMMAND_BUFFERS 64
11
12
/* Number of frames for which we retain in-flight resources such as scratch buffers.
13
* Set as number of GPU frames in flight, plus an additional value for extra possible CPU frame. */
14
#define MTL_NUM_SAFE_FRAMES (MTL_MAX_DRAWABLES + 1)
15
16
#endif
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1