From 614502d183bd4b5891a8ce46f0fc525de6dbc014 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 31 Jan 2023 15:36:43 +0100 Subject: [PATCH] gobj: Add note to API doc about maximum stride value --- panda/src/gobj/geomVertexArrayFormat.I | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/gobj/geomVertexArrayFormat.I b/panda/src/gobj/geomVertexArrayFormat.I index 10fb6b8329..ec76a6dca7 100644 --- a/panda/src/gobj/geomVertexArrayFormat.I +++ b/panda/src/gobj/geomVertexArrayFormat.I @@ -48,6 +48,9 @@ get_stride() const { * Changes the total number of bytes reserved in the array for each vertex. * You may not reduce this below get_total_bytes(), but you may increase it * arbitrarily. + * + * You should avoid arrays with stride higher than 2048, which is the typical + * limit supported by graphics hardware. */ INLINE void GeomVertexArrayFormat:: set_stride(int stride) {