diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-26 00:43:48 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-26 00:43:48 +0300 |
commit | f081e76037432cb926be45e980eac201d337032c (patch) | |
tree | dd1225521c12ea21c0b0c3d51ec1ae3f8730755f /source/blender/gpu/metal/mtl_common.hh | |
parent | fa2084ae58a77b1201289b6bedac427f73c762d1 (diff) | |
parent | 462f99bf38648a08226b1fba423315aec2bc577b (diff) |
Merge branch 'master' into geometry-nodes-iterative-cachegeometry-nodes-rigid-body-integration
Diffstat (limited to 'source/blender/gpu/metal/mtl_common.hh')
-rw-r--r-- | source/blender/gpu/metal/mtl_common.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/metal/mtl_common.hh b/source/blender/gpu/metal/mtl_common.hh index 8dda2c43585..44ba786f90f 100644 --- a/source/blender/gpu/metal/mtl_common.hh +++ b/source/blender/gpu/metal/mtl_common.hh @@ -4,8 +4,13 @@ #define __MTL_COMMON // -- Renderer Options -- +#define MTL_MAX_DRAWABLES 3 #define MTL_MAX_SET_BYTES_SIZE 4096 #define MTL_FORCE_WAIT_IDLE 0 #define MTL_MAX_COMMAND_BUFFERS 64 +/* Number of frames for which we retain in-flight resources such as scratch buffers. + * Set as number of GPU frames in flight, plus an additional value for extra possible CPU frame. */ +#define MTL_NUM_SAFE_FRAMES (MTL_MAX_DRAWABLES + 1) + #endif |