Forráskód Böngészése

gobj: Add note to API doc about maximum stride value

rdb 2 éve
szülő
commit
614502d183
1 módosított fájl, 3 hozzáadás és 0 törlés
  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.
  * 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
  * You may not reduce this below get_total_bytes(), but you may increase it
  * arbitrarily.
  * arbitrarily.
+ *
+ * You should avoid arrays with stride higher than 2048, which is the typical
+ * limit supported by graphics hardware.
  */
  */
 INLINE void GeomVertexArrayFormat::
 INLINE void GeomVertexArrayFormat::
 set_stride(int stride) {
 set_stride(int stride) {