浏览代码

gobj: Add note to API doc about maximum stride value

rdb 2 年之前
父节点
当前提交
614502d183
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      panda/src/gobj/geomVertexArrayFormat.I

+ 3 - 0
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) {